Skip to main content

Read-only ClickHouse cost & performance optimizer — local demo CLI

Project description

OptiHouse — local demo CLI

Read-only ClickHouse cost & performance optimizer you run on your own machine. Point it at a cluster and it reads system.* tables in read-only mode, estimates where storage and compute money is leaking, and shows you the top opportunities — without connecting your cluster to any service. Your credentials and data never leave your machine.

The full analysis (every finding, the exact $ figure, and ready-to-apply SQL fixes) lives at https://optihouse.io.

Install

pip install optihouse

To scan a real cluster, also install the driver:

pip install "optihouse[clickhouse]"

Try it in 10 seconds (no cluster needed)

optihouse scan --demo

Runs against a bundled synthetic cluster so you can see exactly what the tool produces before pointing it at anything real.

Scan your own cluster (read-only)

optihouse scan --host clickhouse.internal --user readonly --password '***'
# TLS:
optihouse scan --host ch.example.com --port 9440 --secure --user readonly --password '***'

Everything is SELECT-only against system.*. No writes, no agents, no data rows read, nothing sent anywhere.

What you get locally vs. on optihouse.io

Local demo CLI optihouse.io (free account)
Cluster summary & opportunity count
Every finding + its $ impact
Total $/month & $/year savings
Copy-paste ALTER/SELECT fixes 🔒
All 40 advisors (demo runs a slice) partial
Dashboard + before/after impact tracking

Prefer a UI over the terminal? The same analysis runs in the browser at https://optihouse.io — connect a cluster (read-only) and see figures measured on your own data.

Privacy & transparency

The CLI only issues read-only queries against ClickHouse system tables (table sizes, part counts, column codecs, aggregated query_log patterns). It does not read your data rows and does not transmit anything off the host.

Don't take our word for it — print every statement it would run, without connecting anything:

optihouse queries

The package is MIT-licensed, so the full source is auditable too.

Compatibility

Works on ClickHouse 22.x through 26.x (and back to 20.1 for the core scan). It only touches stable system.* views; version-specific checks (system.projections on 22.3+, system.data_skipping_indices on 20.3+) are skipped automatically on older servers instead of failing.

Project details


Download files

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

Source Distribution

optihouse-0.1.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optihouse-0.1.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file optihouse-0.1.2.tar.gz.

File metadata

  • Download URL: optihouse-0.1.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for optihouse-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d2dd3aa00f23bf3ff4378b97f430fc64ff99a2ab3c2e66d740adcdefb87c0c1a
MD5 c109adbb52c073448f581d172b9fc06d
BLAKE2b-256 c8460648e3b81cae3a484dc90ed97a3fa58513dc46d04cf2a1546b282e7c6c92

See more details on using hashes here.

File details

Details for the file optihouse-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: optihouse-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for optihouse-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8462ff9dfb35e39588eb600bafeb99237c7a2540ecc14029017b3b1df8d33703
MD5 b4239b0e831c8aca8e353e17a8d50542
BLAKE2b-256 dee660e011818f301f2fb70afeb11718e55964cb23d00b94fb4426bd1ffc41f7

See more details on using hashes here.

Supported by

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