insertHistoricalRandomData.sh 716 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. #host=39.104.80.229
  3. host=127.0.0.1
  4. pointCountArray=(1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000 500000 1000000)
  5. for(( i=0;i<${#pointCountArray[@]};i++))
  6. do
  7. pointNamePrefixArray[i]="prefix$i_"
  8. done
  9. for(( i=0;i<${#pointCountArray[@]};i++))
  10. do
  11. echo "----test insert dataCountPerPoint:${pointCountArray[i]}"
  12. java -cp ./lib/tsdb.jar demo.allInsert.InsertHistoricalRandomData \
  13. --host=$host --pointNamePrefix=${pointNamePrefixArray[i]} --pointCount=${pointCountArray[i]} \
  14. --dataCountPerPoint=${pointCountArray[i]} --beginDate="2021-03-01 00:00:00" --period=1000 \
  15. --seed=1 --mean=10 --variance=1 --debug=0 2>&1 | tee -a ./log/tsdb/out.log
  16. sleep 1 #1 second
  17. done