mqtt.sim 647 字节
Newer Older
S
TD-1310  
Shengliang Guan 已提交
1 2 3 4 5 6 7 8
system sh/stop_dnodes.sh

system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 2
system sh/cfg.sh -n dnode1 -c numOfMnodes -v 1
system sh/cfg.sh -n dnode1 -c mnodeEqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c maxTablesPerVnode -v 100000
system sh/cfg.sh -n dnode1 -c http -v 1
9 10 11 12
system sh/cfg.sh -n dnode1 -c mqtt -v 1

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

S
Shengliang Guan 已提交
13
sleep 3000
14 15
sql connect
sql create database mqttdb;
S
Shengliang Guan 已提交
16
sql create table mqttdb.devices(ts timestamp, value double) tags(name binary(32), model binary(32), serial binary(16), param binary(16), unit binary(16));
17

S
Shengliang Guan 已提交
18
sleep 1000
19
system sh/exec.sh -n dnode1 -s stop -x SIGINT