insertHistoricalRandomDataPerPoint 973 B

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