未验证 提交 1aefed87 编写于 作者: P Patrick Mackinlay 提交者: GitHub

chore(docs): tsbs load benchmark notes (#1010)

上级 c62f9e8f
#
# Running clickhouse with tsbs benchmark on amazon m5.8xlarge instance pim-ilp-perf-test
#
# install packages
sudo yum install yum-utils
sudo rpm --import https://repo.clickhouse.tech/CLICKHOUSE-KEY.GPG
sudo yum-config-manager --add-repo https://repo.clickhouse.tech/rpm/stable/x86_64
sudo yum install clickhouse-server clickhouse-client
# aws linux 2 package tested
rpm -ql clickhouse-server-21.4.3.21-2
# start clickhouse-server
sudo systemctl start clickhouse-server
# cli clieny
clickhouse-client
# data
sudo ls -latrh /var/lib/clickhouse/store/
sudo ls -latrh /var/lib/clickhouse/data/
# run benchmark
~/tmp/go/bin/tsbs_generate_data --use-case="cpu-only" --seed=123 --scale=4000 --timestamp-start="2016-01-01T00:00:00Z" --timestamp-end="2016-01-02T00:00:00Z" --log-interval="10s" --format="clickhouse" > /tmp/bigcpu
~/tmp/go/bin/tsbs_load_clickhouse --file /tmp/bigcpu --workers 4
# stop
sudo systemctl stop clickhouse-server
sudo systemctl disable clickhouse-server
sudo rm -rf /var/lib/clickhouse/data/ /var/lib/clickhouse/store/
#
# Running influx with tsbs benchmark on amazon m5.8xlarge instance pim-ilp-perf-test
#
# install
sudo yum install influxdb
# aws linux 2 package tested
rpm -ql influxdb-1.8.4-1.x86_64
sudo systemctl start influxdb
# cli
influx
# data
ls -latrh /var/lib/influxdb/data/
# run benchmark
~/tmp/go/bin/tsbs_generate_data --use-case="cpu-only" --seed=123 --scale=4000 --timestamp-start="2016-01-01T00:00:00Z" --timestamp-end="2016-01-02T00:00:00Z" --log-interval="10s" --format="influx" > /tmp/bigcpu
~/tmp/go/bin/tsbs_load_influx --file /tmp/bigcpu --workers 4
# stop
sudo systemctl stop influxdb
sudo systemctl disable influxdb
sudo rm -rf /var/lib/influxdb/data/
#
# Running timescale with tsbs benchmark on amazon m5.8xlarge instance pim-ilp-perf-test
#
# postgres client
sudo yum install postgresql.x86_64
# docker
sudo yum install docker
sudo systemctl enable docker
sudo systemctl start docker
# timescale in docker
sudo docker pull timescale/timescaledb:2.2.0-pg13
POSTGRES_PASSWORD=`dd if=/dev/urandom count=5 | sha1sum | awk '{print $1}'`
TIMESCALE_DOCKER_ID=`sudo docker run -d --name timescaledb -p 127.0.0.1:5432:5432 -e POSTGRES_PASSWORD=${POSTGRES_PASSWORD} timescale/timescaledb:2.2.0-pg13`
PGPASSWORD=${POSTGRES_PASSWORD} psql -h 127.0.0.1 -p 5432 -U postgres
# run tsbs
~/tmp/go/bin/tsbs_generate_data --use-case="cpu-only" --seed=123 --scale=4000 --timestamp-start="2016-01-01T00:00:00Z" --timestamp-end="2016-01-02T00:00:00Z" --log-interval="10s" --format="timescaledb" > /tmp/bigcpu3
~/tmp/go/bin/tsbs_load_timescaledb --pass ${POSTGRES_PASSWORD} --file /tmp/bigcpu3 --workers 4
# stop everything
sudo docker stop ${TIMESCALE_DOCKER_ID}
sudo docker rm ${TIMESCALE_DOCKER_ID}
sudo docker volume rm $(sudo docker volume ls -q)
sudo docker ps
sudo systemctl stop docker
sudo systemctl disable docker
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册