scripts
This commit is contained in:
parent
ce90bbecf9
commit
8c0ba3b908
|
@ -8,7 +8,7 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 2
|
||||||
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 2
|
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 2
|
||||||
|
|
||||||
print ============== step1
|
print ============== step1
|
||||||
system sh/exec_up.sh -n dnode1 -s start
|
system sh/exec_up.sh -n dnode1 -s start -t
|
||||||
sleep 3000
|
sleep 3000
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ if $data2_1 != master then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print ============== step2
|
print ============== step2
|
||||||
system sh/exec_up.sh -n dnode2 -s start
|
system sh/exec_up.sh -n dnode2 -s start -t
|
||||||
sql create dnode $hostname2
|
sql create dnode $hostname2
|
||||||
|
|
||||||
$x = 0
|
$x = 0
|
||||||
|
@ -41,6 +41,17 @@ if $data2_2 != slave then
|
||||||
goto show2
|
goto show2
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
system sh/exec_up.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
system sh/exec_up.sh -n dnode2 -s stop -x SIGINT
|
||||||
|
system sh/exec_up.sh -n dnode3 -s stop -x SIGINT
|
||||||
|
system sh/exec_up.sh -n dnode4 -s stop -x SIGINT
|
||||||
|
system sh/exec_up.sh -n dnode5 -s stop -x SIGINT
|
||||||
|
system sh/exec_up.sh -n dnode6 -s stop -x SIGINT
|
||||||
|
system sh/exec_up.sh -n dnode7 -s stop -x SIGINT
|
||||||
|
system sh/exec_up.sh -n dnode8 -s stop -x SIGINT
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
print ============== step3
|
print ============== step3
|
||||||
sql_error drop dnode $hostname1 -x error1
|
sql_error drop dnode $hostname1 -x error1
|
||||||
print should not drop master
|
print should not drop master
|
||||||
|
|
Loading…
Reference in New Issue