Quick start
Connect a ClickHouse cluster and get your first ranked recommendations in under five minutes. You only need a read-only user and network reachability between OptiHouse and your cluster.
Prerequisites
- A reachable ClickHouse cluster (version 20.1 or newer — see compatibility note below).
- A read-only ClickHouse user with
SELECTaccess tosystem.*. - Either direct network access, or an SSH bastion the platform can tunnel through.
projections needs 22.3, data_skipping_indices needs 20.3. Older versions simply skip those checks instead of failing.1. Create a read-only user
Run this in clickhouse-client against your cluster. It grants exactly what OptiHouse needs — read access to system tables — and nothing more.
CREATE USER dataeff IDENTIFIED WITH plaintext_password BY '<strong-random>';
GRANT SELECT ON system.* TO dataeff;
ALTER USER dataeff SETTINGS readonly = 1;Verify the grant: SELECT version() should work, and any INSERT should fail with a read-only error.
2. Add the connection
- 1Open ConnectionsIn the app sidebar, go to Connections and click Add connection.
- 2Fill in the hostEnter
host,port(9000 for the native protocol),usernameandpassword. For a VPC-locked cluster, expand Connect via SSH bastion — see the Connecting ClickHouse page. - 3Test itClick Test. OptiHouse opens a short-lived connection and runs
SELECT version(). A green check means you are ready to scan.
3. Run your first scan
A scan starts automatically right after the connection is saved, and then repeats every 15 minutes. You can also trigger one manually from the Dashboard. The first scan takes roughly 10–60 seconds depending on the size of query_log.
4. Apply a fix
Open any recommendation. Each one ships with a runbook: probable causes, diagnostic SQL you can paste, remediation steps and references. Apply the fix on your side, then either mark it applied — or let auto-apply detect it for you on the next scan (see Auto-apply & verification).