Skip to content

Commit 3e71a51

Browse files
A script to benchmark self-managed ClickHouse variants in an unattended fashion
1 parent 7d32984 commit 3e71a51

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

clickhouse/combinations.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# A helper script to run all ClickHouse self-hosted benchmarks in an unattended fashion:
4+
5+
pushd "$(dirname "${BASH_SOURCE[0]}")/.."
6+
for BENCHMARK in clickhouse clickhouse-datalake clickhouse-parquet clickhouse-web
7+
do
8+
pushd "${BENCHMARK}"
9+
for MACHINE in c6a.metal c6a.4xlarge
10+
do
11+
aws ec2 run-instances --count 1 --image-id ami-0d1ddd83282187d18 --instance-type "${MACHINE}" --block-device-mappings 'DeviceName=/dev/sda1,Ebs={DeleteOnTermination=true,VolumeSize=500,VolumeType=gp2}' --key-name milovidov --security-group-ids sg-013790293e9640422 --instance-initiated-shutdown-behavior terminate --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=clickbench}]' --user-data file://cloud-init.sh
12+
done
13+
popd
14+
done
15+
popd

0 commit comments

Comments
 (0)