#!/usr/bin/env bash #host=39.104.80.229 host=127.0.0.1 dbDataDir=/home/sudb/sudb/lib/sudb-data resultFile=./log/tsdb/out.log for dataCount in 1000000 2000000 3000000 5000000 10000000 20000000 30000000 do echo "----test dataCountPerPoint:${dataCount}" | tee -a ${resultFile} echo delete all db data ./shell/tools/deleteAllDBData.sh diskSize=`du -sh ${dbDataDir}` echo before insert dataCountPerPoint:${dataCount} diskSize:${diskSize} | tee -a ${resultFile} java -cp ./lib/tsdb.jar demo.allInsert.InsertHistoricalRandomData \ --host=$host --pointNamePrefix=pointName_ --pointCount=1 --dataCountPerPoint=$dataCount \ --beginDate="2020-03-01 00:00:00" --period=1000 \ --seed=1 --mean=10 --variance=0.1 --debug=0 2>&1 | tee -a ${resultFile} systemctl stop sourcedb diskSize=`du -sh ${dbDataDir}` echo after insert dataCountPerPoint:${dataCount} diskSize:${diskSize} | tee -a ${resultFile} done