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

return

system sh/exec.sh -n dnode1 -s start
sql connect

$num = 200
$i = 0
while $i < $num 
  $port = $i + 8000
  $i = $i + 1
  sql create dnode $hostname port $port
endw 

$i = 0
while $i < $num 
  $port = $i + 8000
  $i = $i + 1
  $name = dnode . $port
  system sh/deploy.sh -n $name -i 1
  system sh/cfg.sh -n $name -c serverPort -v $port
  system sh/exec.sh -n $name -s start
endw 

return 

sql create database db vgroups 1024 buffer 3;
sql use db;
sql create table if not exists stb (ts timestamp, c1 int, c2 float, c3 double) tags (t1 int unsigned);
sql create table ct1 using stb tags(1000);
sql create table ct2 using stb tags(1000) ;
sql select * from information_schema.ins_tables where db_name = 'db';
sql insert into ct1 values(now+0s, 10, 2.0, 3.0);