monitor.sim 953 字节
Newer Older
1 2 3 4 5 6
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c monitorfqdn -v localhost
system sh/cfg.sh -n dnode1 -c monitorport -v 80
system sh/cfg.sh -n dnode1 -c monitorInterval -v 1
system sh/cfg.sh -n dnode1 -c monitorComp -v 1
7
system sh/cfg.sh -n dnode1 -c uptimeInterval -v 3
8 9
#system sh/cfg.sh -n dnode1 -c supportVnodes -v 128

S
Shengliang Guan 已提交
10 11 12 13 14
#system sh/cfg.sh -n dnode1 -c telemetryReporting -v 1
#system sh/cfg.sh -n dnode1 -c telemetryInterval -v 1
#system sh/cfg.sh -n dnode1 -c telemetryServer -v localhost
#system sh/cfg.sh -n dnode1 -c telemetryPort -v 80

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

18
print =============== create database
19
sql create database db vgroups 2;
S
Shengliang Guan 已提交
20 21
sql use db;
sql create table db.stb (ts timestamp, c1 int, c2 binary(4)) tags(t1 int, t2 binary(16)) comment "abd";
22 23 24

print =============== create drop qnode 1
sql create qnode on dnode 1
25 26
#sql create snode on dnode 1
#sql create bnode on dnode 1
27