insertHistoricalRandomData.sh 661 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. source $ROOT/shell/tsdb/common.sh
  5. #for dataCount in 1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000 500000 1000000
  6. for dataCount in 1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000 500000
  7. do
  8. echo "----test insert dataCountPerPoint:${dataCount}"
  9. java -cp ./lib/tsdb.jar -Xmx8000m demo.allInsert.InsertHistoricalRandomData \
  10. --host=$host --pointNamePrefix=pointName_ --pointCount=1 --dataCountPerPoint=$dataCount \
  11. --beginDate="2017-06-01 00:00:00" --period=40000 \
  12. --seed=1 --mean=10 --variance=0.1 --debug=0 2>&1 | tee -a ./log/tsdb/out.log
  13. done