Help wanted!
The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable. You can also use the original English version as a reference.
ClickHouseでハードウェアをテストする方法
この命令を実行できますが基本的なClickHouse性能試験はサーバーなしでの設置ClickHouseパッケージ。
-
に行く “commits” ページ:https://github.com/ClickHouse/ClickHouse/commits/master
-
最初の緑色のチェックマークまたは緑色の赤十字をクリックします “ClickHouse Build Check” をクリックして “Details” 近くのリンク “ClickHouse Build Check”. いくつかのコミットにはそのようなリンクはありません。 この場合、このリンクを持つ最も近いコミットを選択します。
-
リンクをコピーする “clickhouse” amd64またはaarch64のバイナリ。
-
サーバーにsshし、wgetでダウンロードします:
# For amd64:
wget https://clickhouse-builds.s3.yandex.net/0/00ba767f5d2a929394ea3be193b1f79074a1c4bc/1578163263_binary/clickhouse
# For aarch64:
wget https://clickhouse-builds.s3.yandex.net/0/00ba767f5d2a929394ea3be193b1f79074a1c4bc/1578161264_binary/clickhouse
# Then do:
chmod a+x clickhouse
- ダウンロードconfigs:
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.xml
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/users.xml
mkdir config.d
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.d/path.xml -O config.d/path.xml
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.d/log_to_console.xml -O config.d/log_to_console.xml
- ダウンロードファイルのベンチマーク:
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/benchmark-new.sh
chmod a+x benchmark-new.sh
wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/queries.sql
- に従うダウンロードテストデータ Yandex.メトリカデータセット 命令 (“hits” 100万行を含むテーブル)。
wget https://datasets.clickhouse.tech/hits/partitions/hits_100m_obfuscated_v1.tar.xz
tar xvf hits_100m_obfuscated_v1.tar.xz -C .
mv hits_100m_obfuscated_v1/* .
- サーバーの実行:
./clickhouse server
- データを確認する:別の端末のサーバーへのssh
./clickhouse client --query "SELECT count() FROM hits_100m_obfuscated"
100000000
- 編集benchmark-new.sh,変更
clickhouse-client
に./clickhouse client
と追加–-max_memory_usage 100000000000
パラメータ。
mcedit benchmark-new.sh
- ベンチマークの実行:
./benchmark-new.sh hits_100m_obfuscated
- ハードウェア構成に関する番号と情報を次の宛先に送信します[email protected]
すべての結果をこちらに発表します:https://clickhouse.技術/基準/ハードウェア/