insertRealtimeRandomData.sh 571 B

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