未验证 提交 1d270ef1 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #10824 from taosdata/TS-922

[TS-922]<feature>: Turn off auto balance
...@@ -52,7 +52,7 @@ keepColumnName 1 ...@@ -52,7 +52,7 @@ keepColumnName 1
# telemetryReporting 1 # telemetryReporting 1
# enable/disable load balancing # enable/disable load balancing
# balance 1 # balance 0
# role for dnode. 0 - any, 1 - mnode, 2 - dnode # role for dnode. 0 - any, 1 - mnode, 2 - dnode
# role 0 # role 0
......
...@@ -161,7 +161,7 @@ bool tsdbForceCompactFile = false; // compact TSDB fileset ...@@ -161,7 +161,7 @@ bool tsdbForceCompactFile = false; // compact TSDB fileset
int32_t tsdbWalFlushSize = TSDB_DEFAULT_WAL_FLUSH_SIZE; // MB int32_t tsdbWalFlushSize = TSDB_DEFAULT_WAL_FLUSH_SIZE; // MB
// balance // balance
int8_t tsEnableBalance = 1; int8_t tsEnableBalance = 0;
int8_t tsAlternativeRole = 0; int8_t tsAlternativeRole = 0;
int32_t tsBalanceInterval = 300; // seconds int32_t tsBalanceInterval = 300; // seconds
int32_t tsOfflineInterval = 3; int32_t tsOfflineInterval = 3;
......
...@@ -55,6 +55,11 @@ system sh/cfg.sh -n dnode2 -c statusInterval -v 3 ...@@ -55,6 +55,11 @@ system sh/cfg.sh -n dnode2 -c statusInterval -v 3
system sh/cfg.sh -n dnode3 -c statusInterval -v 3 system sh/cfg.sh -n dnode3 -c statusInterval -v 3
system sh/cfg.sh -n dnode4 -c statusInterval -v 3 system sh/cfg.sh -n dnode4 -c statusInterval -v 3
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
print ============== step0: start tarbitrator print ============== step0: start tarbitrator
system sh/exec_tarbitrator.sh -s start system sh/exec_tarbitrator.sh -s start
......
...@@ -19,6 +19,12 @@ system sh/deploy.sh -n dnode5 -i 5 ...@@ -19,6 +19,12 @@ system sh/deploy.sh -n dnode5 -i 5
system sh/cfg.sh -n dnode5 -c maxVgroupsPerDb -v 4 system sh/cfg.sh -n dnode5 -c maxVgroupsPerDb -v 4
system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 1000 system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 1000
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
print =============== prepare data print =============== prepare data
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -44,6 +44,15 @@ system sh/cfg.sh -n dnode6 -c maxTablesPerVnode -v 4 ...@@ -44,6 +44,15 @@ system sh/cfg.sh -n dnode6 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode7 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode7 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode8 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode8 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
system sh/cfg.sh -n dnode6 -c balance -v 1
system sh/cfg.sh -n dnode7 -c balance -v 1
system sh/cfg.sh -n dnode8 -c balance -v 1
print ============== step1 print ============== step1
print ========= start dnode1 print ========= start dnode1
......
...@@ -44,6 +44,15 @@ system sh/cfg.sh -n dnode6 -c maxTablesPerVnode -v 4 ...@@ -44,6 +44,15 @@ system sh/cfg.sh -n dnode6 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode7 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode7 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode8 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode8 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
system sh/cfg.sh -n dnode6 -c balance -v 1
system sh/cfg.sh -n dnode7 -c balance -v 1
system sh/cfg.sh -n dnode8 -c balance -v 1
print ============== step1 print ============== step1
print ========= start dnode1 print ========= start dnode1
......
...@@ -32,6 +32,14 @@ system sh/cfg.sh -n dnode5 -c wallevel -v 1 ...@@ -32,6 +32,14 @@ system sh/cfg.sh -n dnode5 -c wallevel -v 1
system sh/cfg.sh -n dnode6 -c wallevel -v 1 system sh/cfg.sh -n dnode6 -c wallevel -v 1
system sh/cfg.sh -n dnode7 -c wallevel -v 1 system sh/cfg.sh -n dnode7 -c wallevel -v 1
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
system sh/cfg.sh -n dnode6 -c balance -v 1
system sh/cfg.sh -n dnode7 -c balance -v 1
print ============== step1 print ============== step1
print ========= start dnode1 print ========= start dnode1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
......
...@@ -19,6 +19,11 @@ system sh/cfg.sh -n dnode2 -c balanceInterval -v 1 ...@@ -19,6 +19,11 @@ system sh/cfg.sh -n dnode2 -c balanceInterval -v 1
system sh/cfg.sh -n dnode3 -c balanceInterval -v 1 system sh/cfg.sh -n dnode3 -c balanceInterval -v 1
system sh/cfg.sh -n dnode4 -c balanceInterval -v 1 system sh/cfg.sh -n dnode4 -c balanceInterval -v 1
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
print ========= start dnodes print ========= start dnodes
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -30,6 +30,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4 ...@@ -30,6 +30,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -24,6 +24,12 @@ system sh/cfg.sh -n dnode3 -c wallevel -v 1 ...@@ -24,6 +24,12 @@ system sh/cfg.sh -n dnode3 -c wallevel -v 1
system sh/cfg.sh -n dnode4 -c wallevel -v 1 system sh/cfg.sh -n dnode4 -c wallevel -v 1
system sh/cfg.sh -n dnode5 -c wallevel -v 1 system sh/cfg.sh -n dnode5 -c wallevel -v 1
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -28,6 +28,13 @@ system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 ...@@ -28,6 +28,13 @@ system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode6 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode6 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
system sh/cfg.sh -n dnode6 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4 ...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -24,6 +24,12 @@ system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4 ...@@ -24,6 +24,12 @@ system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -24,6 +24,12 @@ system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4 ...@@ -24,6 +24,12 @@ system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode5 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/cfg.sh -n dnode5 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -12,6 +12,9 @@ system sh/cfg.sh -n dnode2 -c wallevel -v 1 ...@@ -12,6 +12,9 @@ system sh/cfg.sh -n dnode2 -c wallevel -v 1
system sh/cfg.sh -n dnode1 -c monitor -v 1 system sh/cfg.sh -n dnode1 -c monitor -v 1
system sh/cfg.sh -n dnode2 -c monitor -v 0 system sh/cfg.sh -n dnode2 -c monitor -v 0
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -3,6 +3,9 @@ system sh/stop_dnodes.sh ...@@ -3,6 +3,9 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1 system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2 system sh/deploy.sh -n dnode2 -i 2
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
...@@ -91,6 +94,7 @@ endi ...@@ -91,6 +94,7 @@ endi
print ========== step6 print ========== step6
system sh/deploy.sh -n dnode4 -i 4 system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode4 -c mnodeEqualVnodeNum -v 3 system sh/cfg.sh -n dnode4 -c mnodeEqualVnodeNum -v 3
system sh/cfg.sh -n dnode4 -c balance -v 1
system sh/exec.sh -n dnode4 -s start system sh/exec.sh -n dnode4 -s start
sql create dnode $hostname4 sql create dnode $hostname4
...@@ -112,6 +116,7 @@ endi ...@@ -112,6 +116,7 @@ endi
print ========== step7 print ========== step7
system sh/deploy.sh -n dnode5 -i 5 system sh/deploy.sh -n dnode5 -i 5
system sh/cfg.sh -n dnode5 -c statusInterval -v 3 system sh/cfg.sh -n dnode5 -c statusInterval -v 3
system sh/cfg.sh -n dnode5 -c balance -v 1
system sh/exec.sh -n dnode5 -s start system sh/exec.sh -n dnode5 -s start
sql create dnode $hostname5 sql create dnode $hostname5
...@@ -154,6 +159,7 @@ endi ...@@ -154,6 +159,7 @@ endi
print ========== step9 print ========== step9
system sh/deploy.sh -n dnode7 -i 7 system sh/deploy.sh -n dnode7 -i 7
system sh/cfg.sh -n dnode7 -c maxTablesPerVnode -v 3000 system sh/cfg.sh -n dnode7 -c maxTablesPerVnode -v 3000
system sh/cfg.sh -n dnode7 -c balance -v 1
system sh/exec.sh -n dnode7 -s start system sh/exec.sh -n dnode7 -s start
sql create dnode $hostname7 sql create dnode $hostname7
...@@ -175,6 +181,7 @@ endi ...@@ -175,6 +181,7 @@ endi
print ========== step10 print ========== step10
system sh/deploy.sh -n dnode8 -i 8 system sh/deploy.sh -n dnode8 -i 8
system sh/cfg.sh -n dnode8 -c maxVgroupsPerDb -v 3 system sh/cfg.sh -n dnode8 -c maxVgroupsPerDb -v 3
system sh/cfg.sh -n dnode8 -c balance -v 1
system sh/exec.sh -n dnode8 -s start system sh/exec.sh -n dnode8 -s start
sql create dnode $hostname8 sql create dnode $hostname8
......
...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4 ...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4 ...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4 ...@@ -20,6 +20,11 @@ system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode3 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4 system sh/cfg.sh -n dnode4 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
system sh/cfg.sh -n dnode3 -c balance -v 1
system sh/cfg.sh -n dnode4 -c balance -v 1
print ========== step1 print ========== step1
system sh/exec.sh -n dnode1 -s start system sh/exec.sh -n dnode1 -s start
sql connect sql connect
......
...@@ -12,6 +12,9 @@ system sh/cfg.sh -n dnode2 -c mnodeEqualVnodeNum -v 0 ...@@ -12,6 +12,9 @@ system sh/cfg.sh -n dnode2 -c mnodeEqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 4 system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 4
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 4 system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c balance -v 1
system sh/cfg.sh -n dnode2 -c balance -v 1
$dbPrefix = br1_db $dbPrefix = br1_db
$tbPrefix = br1_tb $tbPrefix = br1_tb
$mtPrefix = br1_mt $mtPrefix = br1_mt
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册