-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from ClickHouse/hardware-automated
Automated hardware benchmark
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# See the docs in clickhouse/cloud-init.sh | ||
|
||
BASE_URL='https://raw.githubusercontent.com/ClickHouse/ClickBench/main/hardware/' | ||
|
||
apt-get update | ||
apt-get install -y curl | ||
|
||
wget $BASE_URL/hardware.sh | ||
chmod +x *.sh | ||
|
||
./hardware.sh >> log | ||
|
||
echo $BASE_URL >> log | ||
curl 'http://169.254.169.254/latest/meta-data/instance-type' >> log | ||
|
||
RESULTS_URL="https://play.clickhouse.com/?user=sink&query=INSERT+INTO+data+FORMAT+RawBLOB" | ||
|
||
curl ${RESULTS_URL} --data-binary @log | ||
|
||
shutdown now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters