You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tubemq.apache.org by gx...@apache.org on 2020/05/22 11:29:27 UTC

[incubator-tubemq] branch master updated: [TUBEMQ-152] Modify the master.ini file's annotations (#92)

This is an automated email from the ASF dual-hosted git repository.

gxcheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tubemq.git


The following commit(s) were added to refs/heads/master by this push:
     new 17bab01  [TUBEMQ-152] Modify the master.ini file's annotations (#92)
17bab01 is described below

commit 17bab01d07f4a6f41f35285fa2b3364c8ccdc8e7
Author: gosonzhang <46...@qq.com>
AuthorDate: Fri May 22 11:29:21 2020 +0000

    [TUBEMQ-152] Modify the master.ini file's annotations (#92)
    
    Signed-off-by: Guangxu Cheng <gx...@apache.org>
---
 tubemq-server/src/test/resource/master.ini | 70 ++++++++++++++++++++----------
 1 file changed, 47 insertions(+), 23 deletions(-)

diff --git a/tubemq-server/src/test/resource/master.ini b/tubemq-server/src/test/resource/master.ini
index e97e6f4..b78eea6 100644
--- a/tubemq-server/src/test/resource/master.ini
+++ b/tubemq-server/src/test/resource/master.ini
@@ -5,9 +5,9 @@
 ; The ASF licenses this file to You under the Apache License, Version 2.0
 ; (the "License"); you may not use this file except in compliance with
 ; the License.  You may obtain a copy of the License at
-; <p>
-; http://www.apache.org/licenses/LICENSE-2.0
-; <p>
+;
+;    http://www.apache.org/licenses/LICENSE-2.0
+;
 ; Unless required by applicable law or agreed to in writing, software
 ; distributed under the License is distributed on an "AS IS" BASIS,
 ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,52 +16,76 @@
 ;
 
 [master]
-;Master对外服务的主机地址,必填项,必须在网卡中已配置,处于启用状态,非回环且不能为127.0.0.1的IP地址
+; host address of master, required; must be configured at network card, enabled,
+; non-loopback, and cannot be 127.0.0.1
 hostName=0.0.0.0
-;Master监听的端口,可选项,缺省值为8715
+; port that master listens to, optional; default is 8715
 port=8000
-;Master Web控制台的访问端口
+; port that master web console listens to
 webPort=8080
-;reblance周期,非必填项;默认30s
+; interval of re-balance, optional; default is 30000ms
 consumerBalancePeriodMs=30000
-;master启动后首次进行rebalance的时间,当集群规模较大时,请调大该值
+; delay of first re-balance after master start; turn up when cluster grown
 firstBalanceDelayAfterStartMs=60000
-;consumer心跳超时时间,非必填项;默认30s
+; timeout of consumer heartbeat, optional; default is 30000ms
 consumerHeartbeatTimeoutMs=30000
-;producer跳超时时间,非必填项;默认45s
+; timeout of producer heartbeat, optional; default is 45000ms
 producerHeartbeatTimeoutMs=45000
-;broker心跳超时时间,非必填项;默认25s
+; timeout of broker heartbeat, optional; default is 25000ms
 brokerHeartbeatTimeoutMs=25000
 ;configure modify authorization_token
 confModAuthToken=abc
 webResourcePath=E:\\GIT\\TubeMQ\\resources
 
 [zookeeper]
-;zk上的节点根目录路径
+; root path of TubeMQ znodes on ZK
 zkNodeRoot=/tubemq
-;zk服务器地址
+; connect string of ZK servers
 zkServerAddr=localhost:2181
-;zk心跳超时,单位毫秒,默认30秒
+; timeout of ZK heartbeat; default is 30000ms
 zkSessionTimeoutMs=30000
-;zk连接超时时间,单位毫秒,默认30秒
+; timeout of ZK connection; default is 30000ms
 zkConnectionTimeoutMs=30000
-;zk数据同步时间,单位毫秒,默认5秒
+; sync time on ZK; default is 5000ms
 zkSyncTimeMs=5000
-;缓存数据刷新到zk上的时间间隔
+; interval to commits data on ZK; default is 5000ms
 zkCommitPeriodMs=5000
 
-
-
-
 [bdbStore]
+;name of Berkeley DB, Java Edition(BDB-JE) replication group
 bdbRepGroupName=tubemqMasterGroup
+;name of node in BDB-JE replication group
 bdbNodeName=tubemqMasterGroupNode1
+;port for node to communicate to other nodes in replication group
 bdbNodePort=9001
+;home directory of node in replication group
 bdbEnvHome=e:/GIT/TubeMQ/tubemqMasterGroup/master_data
+;helperHost(and port) for node to join replication group the first time
 bdbHelperHost=10.2.121.42:9001
-;1 for SYNC,2 for NO_SYNC(if application or system fails,data may lost),3 for WRITE_NO_SYNC(if the system fails,data may lost)
+
+; config of commit file synchronization in BDB-JE
+; 1 for SYNC, will write and synchronously flush the log to disk upon transaction commit
+; 2 for NO_SYNC, do not synchronously flush the log upon transaction commit(if application or system fails,data may lost)
+; 3 for WRITE_NO_SYNC, synchronously written to the OS's file system buffers upon transaction commit, but the data is not
+;   actually forced to disk(if the system fails,data may lost)
+; commit file synchronization configuration of master node in replication group
 bdbLocalSync= 1
+; commit file synchronization configuration of replica node in replication group
 bdbReplicaSync= 3
-;1 for SIMPLE_MAJORITY , 2 for ALL , 3 for NONE
+
+; config of ReplicaAckPolicy in BDB-JE
+; 1 for SIMPLE_MAJORITY;
+; 2 for ALL
+; 3 for NONE
 bdbReplicaAck= 1
-bdbStatusCheckTimeoutMs=10000
\ No newline at end of file
+
+;interval for node status check task
+bdbStatusCheckTimeoutMs=10000
+
+
+
+
+
+
+
+