Back to all use cases
ClickHouseMedia and publishing

Replication metadata has to move too

A media company's replicated ClickHouse tables depend on a ZooKeeper ensemble. Moving to ClickHouse Keeper is an offline change that needs a plan, so a review sizes Keeper and rehearses the cutover before anyone stops ingestion.

Challenge

ReplicatedMergeTree keeps parts, merges and the replication log in ZooKeeper or ClickHouse Keeper. ClickHouse accepts any ZooKeeper from 3.4.5, so nothing warns you when the ensemble sits on a line that has been end of life since 2020. ZooKeeper 3.4, 3.5 and 3.6 never received a fix for CVE-2023-44981, a critical SASL quorum authentication bypass. Without a configured coordination service, existing replicated tables are read-only, so the ensemble is as critical as the ClickHouse servers.

Keeper speaks the ZooKeeper client protocol, but its snapshot, log and interserver formats are different, so a mixed ZooKeeper and Keeper ensemble is impossible. The documented migration stops ingestion and background merges, stops ZooKeeper, converts its data with clickhouse-keeper-converter, copies the snapshot to every Keeper node and then starts Keeper. It is a planned change, not a rolling one.

The release matters too. On 1 November 2026 the supported ClickHouse releases are 26.10, 26.9, 26.8 and the 26.3 LTS. Every 25.x release is outside that list, so a cluster that is migrating its coordination layer is often running an unsupported release as well.

Environment

A sharded, replicated ClickHouse cluster serving audience and ad analytics, with a ZooKeeper ensemble that may be shared with other systems. Ingestion runs continuously from streaming sources, and dashboards read from the cluster during business hours.

There is a short maintenance window available overnight or on a weekend, and the business expects it to be used once. Replicated tables are read-only whenever coordination is unavailable.

Options

Stay on ZooKeeper and patch it. Right when the ensemble is shared with other systems that are not moving, and when no maintenance window is available this quarter.

Move to ClickHouse Keeper. Removes a separate system, speaks the same client protocol and uses Raft through the NuRaft library. It needs the offline cutover.

Move to a managed ClickHouse service. Moves the coordination layer out of your hands, and the data and queries have to move with it.

Patch ZooKeeper now and plan the Keeper move for later. Often the best order, because it removes the exposure before the window is chosen.

Approach

OSSeva Assure reviews the replication, sharding and coordination topology, audits the ensemble's ACLs, SASL settings and exposure, and writes a ClickHouse Keeper migration plan with a tested runbook. The review sizes the Keeper cluster, lists what has to stop and in what order, and defines the rollback point before the window opens.

OSSeva Patch covers the ensemble in the meantime, with patched ZooKeeper 3.4, 3.6 and 3.7 builds (3.5 as custom support scoped per engagement), and signed ClickHouse builds for releases outside the community window. The same on-disk format stays in place.

OSSeva Operate, Managed ClickHouse, runs the cutover in your maintenance window and then operates the result: 24/7 replication queue, merge and Keeper quorum monitoring, a 15-minute P1 response SLA, a named senior ClickHouse engineer, and patched builds of out-of-support releases.

What this delivers

A tested Keeper migration runbook, a sized Keeper cluster and a patched coordination layer before and after the cutover. The move happens once, inside a window the business has agreed, with ClickHouse running patched builds afterward. OSSeva for ClickHouse is priced per cluster, not per node, shard or replica. Book a discovery call for a quote.

Go deeper

Questions

Frequently asked questions

Book a 15-minute call

Can we move ClickHouse from ZooKeeper to Keeper without downtime?

No. ClickHouse documents the migration as an offline change. Ingestion and background tasks stop, ZooKeeper stops, its data is converted with clickhouse-keeper-converter, and Keeper starts from the converted snapshot.

Can ZooKeeper and ClickHouse Keeper run in one ensemble?

No. The interserver protocol and storage formats differ, so Keeper cannot join a ZooKeeper ensemble. The cutover replaces one with the other.

What happens to replicated tables if coordination is down?

Without a configured coordination service, existing replicated tables are read-only. That is why the ensemble needs patching and monitoring like the ClickHouse servers.

Do we have to move to Keeper at all?

No. ZooKeeper 3.4, 3.6 and 3.7 builds from OSSeva are patched today, with 3.5 as custom support scoped per engagement, so the ensemble can stay and be secured in place. Keeper is a choice, not a deadline.

See every EOL & CVE-patching use case

All use cases
Book a call