123456789101112131415161718192021222324252627 |
- #!/usr/bin/env bash
- ROOT=$(cd `dirname $0`/../../; pwd)
- cd $ROOT
- source $ROOT/shell/tsdb/common.sh
- #多点历史数据插入
- dataCountPerPointArray=(1000 2000 3000 5000 10000 20000 30000 50000 100000)
- pointCountArray=(2 3 5 10)
- index=1
- pointNamePrefix="pointName${index}_"
- for(( i=0;i<${#pointCountArray[@]};i++))
- do
- pointCount=${pointCountArray[i]}
- for(( j=0;j<${#dataCountPerPointArray[@]};j++))
- do
- dataCountPerPoint=${dataCountPerPointArray[j]}
- echo "----test insert pointCount:${pointCount} dataCountPerPoint:${dataCountPerPoint}"
- java -cp ./lib/tsdb.jar demo.allInsert.InsertHistoricalRandomData \
- --host=$host --pointNamePrefix=${pointNamePrefix} --pointCount=${pointCount} \
- --dataCountPerPoint=${dataCountPerPoint} --beginDate="2017-06-01 00:00:00" --period=7000 \
- --seed=1 --mean=10 --variance=1 --debug=0 2>&1 | tee -a ./log/tsdb/out.log
- done
- done
|