delete_writing1.sim 1.5 KB
Newer Older
S
slguan 已提交
1 2
system sh/stop_dnodes.sh

S
slguan 已提交
3 4 5 6
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
S
slguan 已提交
7

H
hjxilinx 已提交
8 9 10 11
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 dnode3 -c walLevel -v 0
system sh/cfg.sh -n dnode4 -c walLevel -v 0
S
slguan 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1

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
system sh/cfg.sh -n dnode4 -c mgmtEqualVnodeNum -v 4

system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode4 -c numOfTotalVnodes -v 4

print ========= start dnodes
system sh/exec.sh -n dnode1 -s start
S
scripts  
slguan 已提交
30
sleep 3000
S
slguan 已提交
31 32 33 34 35 36 37
sql connect

sql create database db 
sql create table db.tb (ts timestamp, i int)
sql insert into db.tb values(now, 1)

print ======== start back
S
scripts  
slguan 已提交
38
run_back general/db/back_insert.sim
S
slguan 已提交
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
sleep 1000

print ======== step1 
$x = 1 	
while $x < 20

    print drop database times $x
	sql drop database db -x step1
	step1:

	sql create database db 
	sql create table db.tb (ts timestamp, i int)

	sleep 3000
	
	$x = $x + 1
endw
S
scripts  
slguan 已提交
56 57

system sh/exec.sh -n dnode1 -s stop -x SIGINT