insertHistoricalRandomDataInertPerPoint.sh 629 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. #host=39.104.80.229
  3. host=127.0.0.1
  4. dataCountPerPoint=35040
  5. pointCount=300000
  6. index=1
  7. echo "[${index}] test"
  8. pointNamePrefix="pointName${index}_"
  9. beginDate="2018-06-01 00:00:00"
  10. echo beginDate:beginDate
  11. echo "----test insert pointCount:${pointCount} dataCountPerPoint:${dataCountPerPoint}"
  12. nohup java -cp ./lib/influxdb.jar -Xmx2000m demo.allInsert.InsertHistoricalRandomDataInsertPerPoint \
  13. --host $host --pointNamePrefix ${pointNamePrefix} --pointCount ${pointCount} \
  14. --dataCountPerPoint ${dataCountPerPoint} --beginDate "$beginDate" --period 3600000 \
  15. --seed 1 --mean 10 --variance 1 --debug 0 2>&1 &