clickhouse-tools is a set of tools for administration and diagnostics of ClickHouse DBMS.
Project description
clickhouse-tools
clickhouse-tools is a set of tools for administration and diagnostics of ClickHouse DBMS.
Tools
clickhouse-tools consist of following components:
- chadmin - ClickHouse administration tool
- ch-monitoring - ClickHouse monitoring tool
- keeper-monitoring - ClickHouse Keeper / ZooKeeper monitoring tool
- ch-s3-credentials - ClickHouse S3 credentials management tool
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
Release history Release notifications | RSS feed
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
File details
Details for the file clickhouse_tools-2.1.71613250-py3-none-any.whl
.
File metadata
- Download URL: clickhouse_tools-2.1.71613250-py3-none-any.whl
- Upload date:
- Size: 112.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.12 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043c60b128bcd92f79517cc4f026b40e9ff39d67609ae1009558fd6398782dfc |
|
MD5 | 39a4e0cc7086b50828479227be045b97 |
|
BLAKE2b-256 | 14d4969a45bca6f769629110ab99f26fe08c7d3af12a7f347bd36de46e7a3a1d |