Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
1d270ef1
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
1d270ef1
编写于
3月 21, 2022
作者:
M
Minglei Jin
提交者:
GitHub
3月 21, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #10824 from taosdata/TS-922
[TS-922]<feature>: Turn off auto balance
上级
4f29817f
f55c0337
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
107 addition
and
2 deletion
+107
-2
packaging/cfg/taos.cfg
packaging/cfg/taos.cfg
+1
-1
src/common/src/tglobal.c
src/common/src/tglobal.c
+1
-1
tests/script/unique/arbitrator/replica_changeWithArbitrator.sim
...script/unique/arbitrator/replica_changeWithArbitrator.sim
+5
-0
tests/script/unique/big/balance.sim
tests/script/unique/big/balance.sim
+6
-0
tests/script/unique/cluster/balance1.sim
tests/script/unique/cluster/balance1.sim
+9
-0
tests/script/unique/cluster/balance2.sim
tests/script/unique/cluster/balance2.sim
+9
-0
tests/script/unique/cluster/balance3.sim
tests/script/unique/cluster/balance3.sim
+8
-0
tests/script/unique/db/replica_reduce31.sim
tests/script/unique/db/replica_reduce31.sim
+5
-0
tests/script/unique/dnode/balance1.sim
tests/script/unique/dnode/balance1.sim
+5
-0
tests/script/unique/dnode/balance2.sim
tests/script/unique/dnode/balance2.sim
+6
-0
tests/script/unique/dnode/balance3.sim
tests/script/unique/dnode/balance3.sim
+7
-0
tests/script/unique/dnode/balancex.sim
tests/script/unique/dnode/balancex.sim
+5
-0
tests/script/unique/dnode/m2.sim
tests/script/unique/dnode/m2.sim
+6
-0
tests/script/unique/dnode/m3.sim
tests/script/unique/dnode/m3.sim
+6
-0
tests/script/unique/dnode/monitor_bug.sim
tests/script/unique/dnode/monitor_bug.sim
+3
-0
tests/script/unique/dnode/reason.sim
tests/script/unique/dnode/reason.sim
+7
-0
tests/script/unique/dnode/remove1.sim
tests/script/unique/dnode/remove1.sim
+5
-0
tests/script/unique/dnode/remove2.sim
tests/script/unique/dnode/remove2.sim
+5
-0
tests/script/unique/dnode/vnode_clean.sim
tests/script/unique/dnode/vnode_clean.sim
+5
-0
tests/script/unique/stable/balance_replica1.sim
tests/script/unique/stable/balance_replica1.sim
+3
-0
未找到文件。
packaging/cfg/taos.cfg
浏览文件 @
1d270ef1
...
...
@@ -52,7 +52,7 @@ keepColumnName 1
# telemetryReporting 1
# enable/disable load balancing
# balance
1
# balance
0
# role for dnode. 0 - any, 1 - mnode, 2 - dnode
# role 0
...
...
src/common/src/tglobal.c
浏览文件 @
1d270ef1
...
...
@@ -161,7 +161,7 @@ bool tsdbForceCompactFile = false; // compact TSDB fileset
int32_t
tsdbWalFlushSize
=
TSDB_DEFAULT_WAL_FLUSH_SIZE
;
// MB
// balance
int8_t
tsEnableBalance
=
1
;
int8_t
tsEnableBalance
=
0
;
int8_t
tsAlternativeRole
=
0
;
int32_t
tsBalanceInterval
=
300
;
// seconds
int32_t
tsOfflineInterval
=
3
;
...
...
tests/script/unique/arbitrator/replica_changeWithArbitrator.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec_tarbitrator.sh -s start
...
...
tests/script/unique/big/balance.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/cluster/balance1.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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 ========= start dnode1
...
...
tests/script/unique/cluster/balance2.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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 ========= start dnode1
...
...
tests/script/unique/cluster/balance3.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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 ========= start dnode1
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/unique/db/replica_reduce31.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/balance1.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/balance2.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/balance3.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/balancex.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/m2.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/m3.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/monitor_bug.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/reason.sim
浏览文件 @
1d270ef1
...
...
@@ -3,6 +3,9 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
@@ -91,6 +94,7 @@ endi
print ========== step6
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 balance -v 1
system sh/exec.sh -n dnode4 -s start
sql create dnode $hostname4
...
...
@@ -112,6 +116,7 @@ endi
print ========== step7
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 balance -v 1
system sh/exec.sh -n dnode5 -s start
sql create dnode $hostname5
...
...
@@ -154,6 +159,7 @@ endi
print ========== step9
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 balance -v 1
system sh/exec.sh -n dnode7 -s start
sql create dnode $hostname7
...
...
@@ -175,6 +181,7 @@ endi
print ========== step10
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 balance -v 1
system sh/exec.sh -n dnode8 -s start
sql create dnode $hostname8
...
...
tests/script/unique/dnode/remove1.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/remove2.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/dnode/vnode_clean.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
system sh/exec.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/stable/balance_replica1.sim
浏览文件 @
1d270ef1
...
...
@@ -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 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
$tbPrefix = br1_tb
$mtPrefix = br1_mt
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录