insertRealtimeRandomData.sh 515 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # 插入实时数据功能
  3. ROOT=$(cd `dirname $0`/../../; pwd)
  4. cd $ROOT
  5. source $ROOT/shell/tsdb/common.sh
  6. for pointCount in 1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000
  7. do
  8. echo "----test insert dataCountPerPoint:${pointCount}"
  9. java -cp ./lib/tsdb.jar demo.allInsert.InsertRealtimeRandomData \
  10. --host=$host --pointNamePrefix=pointName_ --pointCount=${pointCount} --seed=1 \
  11. --mean=10 --variance=1 --debug=0 2>&1 | tee -a ./log/tsdb/out.log
  12. sleep 1 #1 second
  13. done