123456789101112131415161718 |
- #!/usr/bin/env bash
- # 插入实时数据功能
- ROOT=$(cd `dirname $0`/../../; pwd)
- cd $ROOT
- source $ROOT/shell/tsdb/common.sh
- storagePath="root.test1.wf01.wt01"
- clear
- for pointCount in 1000 2000 3000 5000 10000 20000 30000 50000 100000
- do
- echo "----test insert dataCountPerPoint:${pointCount}"
- java -cp ./lib/iotdb.jar demo.insert.InsertRealtimeRandomData \
- --host $host --storagePath ${storagePath} --pointNamePrefix pointName1_ --pointCount $pointCount --seed 1 \
- --mean 10 --variance 1 --debug 0 2>&1 | tee -a ./log/iotdb/out.log
- sleep 1 #1 second
- done
|