insertHistoricalRandomDataPerPoint.sh 1017 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../; pwd)
  3. cd $ROOT
  4. source $ROOT/shell/tsdb/common.sh
  5. dataCountPerPoint=1
  6. pointCount=1
  7. index=1
  8. #存在插入数据太长将导致连接被断开而退出的问题
  9. #出现AutoResizingBuffer告警,可能和iotdb配置缓存区大小相关。
  10. echo "[${index}] test"
  11. pointNamePrefix="pointName${index}_"
  12. storagePath="root.test1.wf01.wt01"
  13. beginDate="2017-06-01 00:00:00"
  14. echo beginDate:beginDate
  15. # 单点插入
  16. for dataCountPerPoint in 1000 2000 3000 5000 10000 20000 30000 50000 100000
  17. do
  18. for pointCount in 2 3 5 10
  19. do
  20. echo "----test insert pointCount:${pointCount} dataCountPerPoint:${dataCountPerPoint}"
  21. nohup java -cp ./lib/iotdb.jar -Xmx8000m demo.insert.InsertHistoricalRandomData \
  22. --host ${host} --storagePath ${storagePath} --pointNamePrefix ${pointNamePrefix} --pointCount ${pointCount} \
  23. --dataCountPerPoint ${dataCountPerPoint} --beginDate "$beginDate" --period 7000 \
  24. --seed 1 --mean 10 --variance 1 --debug 0 2>&1 | tee -a ./log/iotdb/out.log
  25. done
  26. done