1234567891011121314151617181920212223242526272829303132333435 |
- #!/usr/bin/env bash
- #host=39.104.80.229
- host=127.0.0.1
- #多点历史数据插入
- dataCountPerPointArray=(1000 2000 3000 5000 10000 20000 30000 50000 100000)
- pointCountArray=(2 3 5 10)
- #单点历史数据插入
- # dataCountPerPointArray=(1)
- # pointCountArray=(1000 2000 3000 5000 10000 20000 30000 50000 100000 200000 300000 500000 1000000)
- #某时刻插入N点数据
- #dataCountPerPointArray=(1)
- #pointCountArray=(500000)
- index=0
- for(( i=0;i<${#pointCountArray[@]};i++))
- do
- pointCount=${pointCountArray[i]}
- for(( j=0;j<${#dataCountPerPointArray[@]};j++))
- do
- index=`expr $index + 1`
- echo "[${index}] test"
- dataCountPerPoint=${dataCountPerPointArray[j]}
- pointNamePrefix="pointName${index}_"
- echo "----test insert pointCount:${pointCount} dataCountPerPoint:${dataCountPerPoint}"
- java -cp ./lib/tsdb.jar demo.allInsert.InsertHistoricalRandomData \
- --host=$host --pointNamePrefix=${pointNamePrefix} --pointCount=${pointCount} \
- --dataCountPerPoint=${dataCountPerPoint} --beginDate="2021-03-01 00:00:00" --period=7000 \
- --seed=1 --mean=10 --variance=1 --debug=0 2>&1 | tee -a ./log/tsdb/out.log
- done
- done
|