insertRealtimeRandomData.sh 516 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. #host=39.104.80.229
  3. host=127.0.0.1
  4. pointCountArray=(50000 50000 50000)
  5. pointNamePrefixArray=("prefix1_" "prefix2_" "prefix3_")
  6. for(( i=0;i<${#pointCountArray[@]};i++))
  7. do
  8. echo "----client:${i+1} insert dataCountPerPoint:${pointCountArray[i]}"
  9. java -cp ./lib/tsdb.jar demo.allInsert.InsertRealtimeRandomData \
  10. --host=$host --pointNamePrefix=${pointNamePrefixArray[i]} --pointCount=${pointCountArray[i]} --seed=1 \
  11. --mean=10 --variance=1 --debug=0 2>&1 | tee -a ./log/tsdb/out.log &
  12. done