Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
哥们要飞
TDengine
提交
94c80160
T
TDengine
项目概览
哥们要飞
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
94c80160
编写于
5月 03, 2020
作者:
S
slguan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test scrpits
上级
cd662421
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
108 addition
and
141 deletion
+108
-141
tests/script/unique/dnode/balance2.sim
tests/script/unique/dnode/balance2.sim
+52
-67
tests/script/unique/dnode/balance3.sim
tests/script/unique/dnode/balance3.sim
+56
-74
未找到文件。
tests/script/unique/dnode/balance2.sim
浏览文件 @
94c80160
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/deploy.sh -n dnode5 -i 5
system sh/cfg.sh -n dnode1 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode2 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode3 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode4 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode5 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode1 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode3 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode4 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode5 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode1 -c mgmtEqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c mgmtEqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c mgmtEqualVnodeNum -v 4
...
...
@@ -63,16 +45,16 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
if $data
3_1 != 4
then
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
if $data
2_1 != 0
then
return -1
endi
if $data
3
_2 != 2 then
if $data
2
_2 != 2 then
return -1
endi
if $data
3
_3 != 2 then
if $data
2
_3 != 2 then
return -1
endi
...
...
@@ -88,16 +70,16 @@ show2:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
if $data
3
_1 != 2 then
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
if $data
2
_1 != 2 then
goto show2
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
goto show2
endi
if $data
3
_3 != 2 then
if $data
2
_3 != 2 then
goto show2
endi
...
...
@@ -116,20 +98,20 @@ show3:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
if $data
3_1 != 4
then
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
if $data
2_1 != 0
then
goto show3
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
goto show3
endi
if $data
3
_3 != 2 then
if $data
2
_3 != 2 then
goto show3
endi
if $data
3
_4 != 2 then
if $data
2
_4 != 2 then
goto show3
endi
...
...
@@ -143,20 +125,20 @@ sql insert into d3.t3 values(now+4s, 32)
sql insert into d3.t3 values(now+5s, 31)
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
if $data
3_1 != 4
then
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
if $data
2_1 != 0
then
return -1
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
return -1
endi
if $data
3_3 != 1
then
if $data
2_3 != 3
then
return -1
endi
if $data
3_4 != 1
then
if $data
2_4 != 3
then
return -1
endi
...
...
@@ -173,24 +155,24 @@ show5:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode5 openVnodes $data
3
_5
if $data
3_1 != 4
then
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
print dnode5 openVnodes $data
2
_5
if $data
2_1 != 0
then
goto show5
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
goto show5
endi
if $data
3
_3 != 2 then
if $data
2
_3 != 2 then
goto show5
endi
if $data
3
_4 != 2 then
if $data
2
_4 != 2 then
goto show5
endi
if $data
3
_5 != 2 then
if $data
2
_5 != 2 then
goto show5
endi
...
...
@@ -206,28 +188,31 @@ show6:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode5 openVnodes $data
3
_5
if $data
3_1 != 4
then
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
print dnode5 openVnodes $data
2
_5
if $data
2_1 != 0
then
goto show6
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
goto show6
endi
if $data
3
_3 != null then
if $data
2
_3 != null then
goto show6
endi
if $data
3_4 != 1
then
if $data
2_4 != 3
then
goto show6
endi
if $data
3_5 != 1
then
if $data
2_5 != 3
then
goto show6
endi
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
sql reset query cache
sleep 1000
print ========== step7
sql select * from d1.t1 order by t desc
...
...
tests/script/unique/dnode/balance3.sim
浏览文件 @
94c80160
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
...
...
@@ -14,20 +7,6 @@ system sh/deploy.sh -n dnode4 -i 4
system sh/deploy.sh -n dnode5 -i 5
system sh/deploy.sh -n dnode6 -i 6
system sh/cfg.sh -n dnode1 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode2 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode3 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode4 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode5 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode6 -c balanceMonitorInterval -v 1
system sh/cfg.sh -n dnode1 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode3 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode4 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode5 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode6 -c balanceStartInterval -v 10
system sh/cfg.sh -n dnode1 -c mgmtEqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c mgmtEqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c mgmtEqualVnodeNum -v 4
...
...
@@ -71,21 +50,21 @@ sql insert into d2.t2 values(now+4s, 22)
sql insert into d2.t2 values(now+5s, 21)
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
if $data
3_1 != 4
then
if $data
2_1 != 0
then
return -1
endi
if $data
3
_2 != 2 then
if $data
2
_2 != 2 then
return -1
endi
if $data
3
_3 != 2 then
if $data
2
_3 != 2 then
return -1
endi
if $data
3
_4 != 2 then
if $data
2
_4 != 2 then
return -1
endi
...
...
@@ -101,21 +80,21 @@ show2:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
if $data
3
_1 != 2 then
if $data
2
_1 != 2 then
goto show2
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
goto show2
endi
if $data
3
_3 != 2 then
if $data
2
_3 != 2 then
goto show2
endi
if $data
3
_4 != 2 then
if $data
2
_4 != 2 then
goto show2
endi
...
...
@@ -134,25 +113,25 @@ show3:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode5 openVnodes $data
3
_5
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
print dnode5 openVnodes $data
2
_5
if $data
3_1 != 4
then
if $data
2_1 != 0
then
goto show3
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
goto show3
endi
if $data
3
_3 != 2 then
if $data
2
_3 != 2 then
goto show3
endi
if $data
3
_4 != 2 then
if $data
2
_4 != 2 then
goto show3
endi
if $data
3
_5 != 2 then
if $data
2
_5 != 2 then
goto show3
endi
...
...
@@ -174,25 +153,25 @@ show4:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode5 openVnodes $data
3
_5
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
print dnode5 openVnodes $data
2
_5
if $data
3_1 != 4
then
if $data
2_1 != 0
then
goto show4
endi
if $data
3
_2 != null then
if $data
2
_2 != null then
goto show4
endi
if $data
3_3 != 1
then
if $data
2_3 != 3
then
goto show4
endi
if $data
3_4 != 1
then
if $data
2_4 != 3
then
goto show4
endi
if $data
3_5 != 1
then
if $data
2_5 != 3
then
goto show4
endi
...
...
@@ -209,16 +188,16 @@ show5:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode5 openVnodes $data
3
_5
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
print dnode5 openVnodes $data
2
_5
if $data
3_1 != 4
then
if $data
2_1 != 0
then
goto show5
endi
if $data
3
_2 != 2 then
if $data
2
_2 != 2 then
goto show5
endi
...
...
@@ -236,30 +215,33 @@ show6:
endi
sql show dnodes
print dnode1 openVnodes $data
3
_1
print dnode2 openVnodes $data
3
_2
print dnode3 openVnodes $data
3
_3
print dnode4 openVnodes $data
3
_4
print dnode5 openVnodes $data
3
_5
print dnode1 openVnodes $data
2
_1
print dnode2 openVnodes $data
2
_2
print dnode3 openVnodes $data
2
_3
print dnode4 openVnodes $data
2
_4
print dnode5 openVnodes $data
2
_5
if $data
3_1 != 4
then
if $data
2_1 != 0
then
goto show6
endi
if $data
3_2 != 1
then
if $data
2_2 != 3
then
goto show6
endi
if $data
3
_3 != null then
if $data
2
_3 != null then
goto show6
endi
if $data
3_4 != 1
then
if $data
2_4 != 3
then
goto show6
endi
if $data
3_5 != 1
then
if $data
2_5 != 3
then
goto show6
endi
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
sql reset query cache
sleep 1000
print ========== step7
sql select * from d1.t1 order by t desc
print $data01 $data11 $data21 $data31 $data41
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录