scripts
This commit is contained in:
parent
ac5d753611
commit
3d6e32dd59
|
@ -241,14 +241,14 @@ cd ../../../debug; make
|
||||||
./test.sh -u -f unique/account/user_create.sim
|
./test.sh -u -f unique/account/user_create.sim
|
||||||
./test.sh -u -f unique/account/user_len.sim
|
./test.sh -u -f unique/account/user_len.sim
|
||||||
|
|
||||||
#./test.sh -u -f unique/big/balance.sim
|
#liao wait ./test.sh -u -f unique/big/balance.sim
|
||||||
#slguan ./test.sh -u -f unique/big/maxvnodes.sim
|
#liao wait ./test.sh -u -f unique/big/maxvnodes.sim
|
||||||
./test.sh -u -f unique/big/tcp.sim
|
./test.sh -u -f unique/big/tcp.sim
|
||||||
|
|
||||||
#jeff ./test.sh -u -f unique/cluster/balance1.sim
|
./test.sh -u -f unique/cluster/balance1.sim
|
||||||
#jeff ./test.sh -u -f unique/cluster/balance2.sim
|
./test.sh -u -f unique/cluster/balance2.sim
|
||||||
#jeff ./test.sh -u -f unique/cluster/balance3.sim
|
./test.sh -u -f unique/cluster/balance3.sim
|
||||||
#./test.sh -u -f unique/cluster/cache.sim
|
./test.sh -u -f unique/cluster/cache.sim
|
||||||
|
|
||||||
./test.sh -u -f unique/column/replica3.sim
|
./test.sh -u -f unique/column/replica3.sim
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ print dnode2 $dnode2Vnodes
|
||||||
if $dnode1Vnodes != 2 then
|
if $dnode1Vnodes != 2 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $dnode2Vnodes != NULL then
|
if $dnode2Vnodes != null then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ print dnode2 $dnode2Vnodes
|
||||||
if $dnode1Vnodes != 3 then
|
if $dnode1Vnodes != 3 then
|
||||||
goto show4
|
goto show4
|
||||||
endi
|
endi
|
||||||
if $dnode2Vnodes != NULL then
|
if $dnode2Vnodes != null then
|
||||||
goto show4
|
goto show4
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -229,7 +229,7 @@ print dnode3 $dnode3Vnodes
|
||||||
if $dnode1Vnodes != 3 then
|
if $dnode1Vnodes != 3 then
|
||||||
goto show8
|
goto show8
|
||||||
endi
|
endi
|
||||||
if $dnode3Vnodes != NULL then
|
if $dnode3Vnodes != null then
|
||||||
goto show8
|
goto show8
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ if $dnode1Role != master then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
if $dnode3Role != NULL then
|
if $dnode3Role != null then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ print dnode3 $dnode3Vnodes
|
||||||
if $dnode1Vnodes != 3 then
|
if $dnode1Vnodes != 3 then
|
||||||
goto show2
|
goto show2
|
||||||
endi
|
endi
|
||||||
if $dnode2Vnodes != NULL then
|
if $dnode2Vnodes != null then
|
||||||
goto show2
|
goto show2
|
||||||
endi
|
endi
|
||||||
if $dnode3Vnodes != 3 then
|
if $dnode3Vnodes != 3 then
|
||||||
|
@ -194,7 +194,7 @@ print dnode4 ==> $dnode4Role
|
||||||
if $dnode1Role != master then
|
if $dnode1Role != master then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $dnode2Role != NULL then
|
if $dnode2Role != null then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $dnode3Role != slave then
|
if $dnode3Role != slave then
|
||||||
|
@ -231,7 +231,7 @@ endi
|
||||||
if $dnode4Vnodes != 3 then
|
if $dnode4Vnodes != 3 then
|
||||||
goto show4
|
goto show4
|
||||||
endi
|
endi
|
||||||
if $dnode3Vnodes != NULL then
|
if $dnode3Vnodes != null then
|
||||||
goto show4
|
goto show4
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -248,10 +248,10 @@ print dnode4 ==> $dnode4Role
|
||||||
if $dnode1Role != master then
|
if $dnode1Role != master then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $dnode2Role != NULL then
|
if $dnode2Role != null then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $dnode3Role != NULL then
|
if $dnode3Role != null then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -339,7 +339,7 @@ print dnode4 $dnode4Vnodes
|
||||||
$dnode5Vnodes = $data2_5
|
$dnode5Vnodes = $data2_5
|
||||||
print dnode5 $dnode5Vnodes
|
print dnode5 $dnode5Vnodes
|
||||||
|
|
||||||
if $dnode1Vnodes != NULL then
|
if $dnode1Vnodes != null then
|
||||||
goto show6
|
goto show6
|
||||||
endi
|
endi
|
||||||
if $dnode4Vnodes != 3 then
|
if $dnode4Vnodes != 3 then
|
||||||
|
|
|
@ -110,7 +110,7 @@ endi
|
||||||
if $dnode3Vnodes != 3 then
|
if $dnode3Vnodes != 3 then
|
||||||
goto show1
|
goto show1
|
||||||
endi
|
endi
|
||||||
if $dnode4Vnodes != NULL then
|
if $dnode4Vnodes != null then
|
||||||
goto show1
|
goto show1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ print dnode4 $dnode4Vnodes
|
||||||
if $dnode1Vnodes != 3 then
|
if $dnode1Vnodes != 3 then
|
||||||
goto show3
|
goto show3
|
||||||
endi
|
endi
|
||||||
if $dnode2Vnodes != NULL then
|
if $dnode2Vnodes != null then
|
||||||
goto show3
|
goto show3
|
||||||
endi
|
endi
|
||||||
if $dnode3Vnodes != 3 then
|
if $dnode3Vnodes != 3 then
|
||||||
|
@ -232,7 +232,7 @@ endi
|
||||||
if $dnode5Vnodes != 3 then
|
if $dnode5Vnodes != 3 then
|
||||||
goto show5
|
goto show5
|
||||||
endi
|
endi
|
||||||
if $dnode3Vnodes != NULL then
|
if $dnode3Vnodes != null then
|
||||||
goto show5
|
goto show5
|
||||||
endi
|
endi
|
||||||
if $dnode4Vnodes != 3 then
|
if $dnode4Vnodes != 3 then
|
||||||
|
@ -298,7 +298,7 @@ endi
|
||||||
if $dnode6Vnodes != 3 then
|
if $dnode6Vnodes != 3 then
|
||||||
goto show7
|
goto show7
|
||||||
endi
|
endi
|
||||||
if $dnode4Vnodes != NULL then
|
if $dnode4Vnodes != null then
|
||||||
goto show7
|
goto show7
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -4,26 +4,18 @@ 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 walLevel -v 0
|
system sh/cfg.sh -n dnode1 -c walLevel -v 0
|
||||||
system sh/cfg.sh -n dnode2 -c walLevel -v 0
|
system sh/cfg.sh -n dnode2 -c walLevel -v 0
|
||||||
system sh/cfg.sh -n dnode1 -c httpMaxThreads -v 2
|
system sh/cfg.sh -n dnode1 -c httpMaxThreads -v 2
|
||||||
system sh/cfg.sh -n dnode2 -c httpMaxThreads -v 2
|
system sh/cfg.sh -n dnode2 -c httpMaxThreads -v 2
|
||||||
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 http -v 1
|
system sh/cfg.sh -n dnode1 -c monitor -v 2
|
||||||
|
system sh/cfg.sh -n dnode2 -c http -v 1
|
||||||
system sh/cfg.sh -n dnode1 -c enableHttp -v 1
|
system sh/cfg.sh -n dnode1 -c enableHttp -v 1
|
||||||
system sh/cfg.sh -n dnode2 -c monitor -v 1
|
system sh/cfg.sh -n dnode2 -c monitor -v 1
|
||||||
system sh/cfg.sh -n dnode1 -c monitorInterval -v 1
|
system sh/cfg.sh -n dnode1 -c monitorInterval -v 1
|
||||||
system sh/cfg.sh -n dnode2 -c monitorInterval -v 1
|
system sh/cfg.sh -n dnode2 -c monitorInterval -v 1
|
||||||
|
|
||||||
system sh/cfg.sh -n dnode1 -c maxVnodeConnections -v 30000
|
|
||||||
system sh/cfg.sh -n dnode2 -c maxVnodeConnections -v 30000
|
|
||||||
system sh/cfg.sh -n dnode1 -c maxMgmtConnections -v 30000
|
|
||||||
system sh/cfg.sh -n dnode2 -c maxMgmtConnections -v 30000
|
|
||||||
system sh/cfg.sh -n dnode1 -c maxMeterConnections -v 30000
|
|
||||||
system sh/cfg.sh -n dnode2 -c maxMeterConnections -v 30000
|
|
||||||
system sh/cfg.sh -n dnode1 -c maxShellConns -v 30000
|
|
||||||
system sh/cfg.sh -n dnode2 -c maxShellConns -v 30000
|
|
||||||
|
|
||||||
system sh/exec.sh -n dnode1 -s start
|
system sh/exec.sh -n dnode1 -s start
|
||||||
sleep 3000
|
sleep 3000
|
||||||
sql connect
|
sql connect
|
||||||
|
@ -45,13 +37,20 @@ sleep 3000
|
||||||
system sh/exec.sh -n dnode2 -s start
|
system sh/exec.sh -n dnode2 -s start
|
||||||
sql create dnode $hostname2
|
sql create dnode $hostname2
|
||||||
|
|
||||||
sleep 20000
|
|
||||||
sql select * from log.dn_192_168_0_1
|
sleep 10000
|
||||||
|
|
||||||
|
sql show log.tables;
|
||||||
|
if $rows != 5 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
sql select * from log.dn1
|
||||||
print ===>rows $rows
|
print ===>rows $rows
|
||||||
print $data00 $data01 $data02
|
print $data00 $data01 $data02
|
||||||
print $data10 $data11 $data12
|
print $data10 $data11 $data12
|
||||||
print $data20 $data21 $data22
|
print $data20 $data21 $data22
|
||||||
if $rows < 20 then
|
if $rows < 10 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue