1234567891011121314151617181920212223242526 |
- #!/usr/bin/env bash
- #host=39.104.80.229
- host=127.0.0.1
- clientCount=2
- for(( i=0;i<${clientCount};i++))
- do
- pointNamePrefixArray[i]="prefix${i}_"
- done
- for pointCount in 1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000 500000 1000000 1200000 1500000 2000000
- #for pointCount in 1000000 1200000 1500000
- #for pointCount in 1500000
- do
- for ((i=0; i<${clientCount}; i++))
- do
- resultFile=${i}.log
- echo "----test concurrent insert clientIndex:${i} dataCountPerPoint:${pointCount}" | tee -a ${resultFile}
- java -cp ./lib/tsdb.jar demo.allInsert.InsertRealtimeRandomData \
- --host=$host --pointNamePrefix=${pointNamePrefixArray[i]} --pointCount=$pointCount --seed=1 \
- --mean=10 --variance=1 --debug=0 1>> ${resultFile} 2>> ${resultFile} &
- done
- echo sleep 13
- sleep 13 #10 second
- done
|