CLI utility to initialize ClickHouse + Grafana for benchmark pipeline. More...
Go to the source code of this file.
Namespaces | |
namespace | scripts |
namespace | scripts.setup |
Functions | |
scripts.setup.log (str msg) | |
Prints an info message to stdout. | |
scripts.setup.err (str msg) | |
Prints an error message to stdout. | |
scripts.setup.run_command (str cmd) | |
Executes a shell command with logging. | |
Client | scripts.setup.wait_for_clickhouse () |
Waits for ClickHouse server to become ready, retries for up to 30 attempts. | |
scripts.setup.setup_clickhouse (Client client) | |
Creates the ClickHouse database and performance table if they don't exist. | |
scripts.setup.load_db_to_clickhouse (Client client, Path db_path) | |
Wipes previous data and loads data from a Parquet file into ClickHouse. | |
scripts.setup.main () | |
CLI entrypoint. | |
CLI utility to initialize ClickHouse + Grafana for benchmark pipeline.
This script handles the full setup flow for the benchmark environment:
schema_to_clickhouse.py
samples/db_sample.parquet
)db/db.parquet
)--docker-compose
— Start ClickHouse and Grafana with Docker Compose --setup-clickhouse
— Explicitly create the ClickHouse database and performance table --load-from-sample
— Load data from samples/db_sample.parquet
(overwrites DB) --load-from-db
— Load data from existing db/db.parquet
file .env
via scripts/config.py
--docker-compose
is usedclickhouse-driver
, polars
, and Docker CLI to be installed Definition in file setup.py.