queryDataAtNowMultiClient.sh 577 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. #host=39.104.80.229
  3. host=127.0.0.1
  4. clientCount=3
  5. pointCountArray=(1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 5000 10000 20000 30000 50000 100000)
  6. for(( j=0;j<${#pointCountArray[@]};j++))
  7. do
  8. for ((i=0; i<${clientCount}; i++))
  9. do
  10. echo "----test concurrent realtime query clientIndex:${i} pointCount:${pointCountArray[j]}"
  11. java -cp ./lib/tsdb.jar demo.query.QueryDataAtTime \
  12. --host=$host --pointNamePrefix=pointName_ --pointCount=${pointCountArray[j]} \
  13. --showQueryResult=3 2>> ${i}.log &
  14. done
  15. echo sleep 6
  16. sleep 6
  17. done