Skip to main content

clickhouse-tools is a set of tools for administration and diagnostics of ClickHouse DBMS.

Project description

license tests status

clickhouse-tools

clickhouse-tools is a set of tools for administration and diagnostics of ClickHouse DBMS.

Tools

clickhouse-tools consist of following components:

All of these tools must be run on the same host as ClickHouse server is running.

Local development (using poetry)

sudo make install-poetry
# or to install in user's home directory
make POETRY_HOME=~/opt/poetry install-poetry

# lint
make lint

# unit tests
make test-unit
make test-unit PYTEST_ARGS="-k test_name"

# integration tests (rebuild docker images using a .whl file)
make test-integration
make test-integration BEHAVE_ARGS="-i feature_name"

# integration tests (supply a custom ClickHouse version to test against)
CLICKHOUSE_VERSION="1.2.3.4" make test-integration
# If you want to have containers running on failure, supply a flag:
# BEHAVE_ARGS="-D no_stop_on_fail"

# For building deb packages
make prepare-build-deb
make build-deb-package  

Please note: base images for tests are pulled from chtools Dockerhub. If you want to build base images locally, run

docker buildx bake -f tests/bake.hcl

If you want to build base images for multiple versions of ClickHouse, run:

CLICKHOUSE_VERSIONS='1.2.3.4, 5.6.7.8, latest' docker buildx bake -f tests/bake.hcl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

clickhouse_tools-2.1.71613250-py3-none-any.whl (112.8 kB view details)

Uploaded Python 3

File details

Details for the file clickhouse_tools-2.1.71613250-py3-none-any.whl.

File metadata

File hashes

Hashes for clickhouse_tools-2.1.71613250-py3-none-any.whl
Algorithm Hash digest
SHA256 043c60b128bcd92f79517cc4f026b40e9ff39d67609ae1009558fd6398782dfc
MD5 39a4e0cc7086b50828479227be045b97
BLAKE2b-256 14d4969a45bca6f769629110ab99f26fe08c7d3af12a7f347bd36de46e7a3a1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page