Skip to main content
Upgrading to a ClickHouse Private release with a Keeper version newer than 26.4 requires a migration to snapshot format v8. The release’s chart supplies the compatible Keeper image and snapshot settings. No additional snapshot configuration or separate conversion step is required. The release combines three changes: upgrading Keeper beyond 26.4, switching to Keeper-in-Server mode, and enabling snapshot format v8.
This guide applies to existing clusters migrating from an older snapshot format. New clusters provisioned with a release that enables snapshot v8 use v8 from the start and do not need these migration preparation steps.
Keeper 26.2 cannot read v8 snapshots. After the upgrade writes a v8 snapshot, rolling back to Keeper 26.2 is not possible without manual steps.The upgrade is expected to proceed smoothly without manual intervention. The recovery files below are a precaution in case something goes wrong; they are not needed for the normal upgrade.

What to expect during the migration

The Operator rolls Keeper pods one at a time, preserving quorum while a member is replaced. The release may also include a ClickHouse Server upgrade, but a Server upgrade is not required for the Keeper migration. The new Keeper version writes v8 snapshots automatically. Existing snapshot files are not converted in place: new v8 snapshots replace older snapshots through normal snapshot creation and retention. For instances using compute-compute separation, the parent and its children share one Keeper cluster. Prepare recovery files once for that Keeper cluster, upgrade the parent and children according to the release procedure, and validate every instance. A Keeper failure affects the whole group.

Before upgrading

1. Complete a database backup

Take a full or incremental database backup and verify that it completes before upgrading.

2. Check health and prepare the release

Follow the upgrade checklist, including mirroring the target images and charts into your private registry. Retain the previous release’s images, charts, and Helm values too. Confirm that:
  • All three Keeper members are ready, with a leader and two synchronized followers.
  • All Server replicas are healthy and the instance reports Running.

3. Locate keeper snapshots in S3

Keeper stores snapshots and logs in S3 by default, using the cluster’s configured bucket and key prefix. Verify that this is enabled for your instance:
Expect keeperS3DiskEnabled=true. Use your cluster’s configured bucket and key prefix for the commands below. If the setting is missing or disabled, enable spec.featureFlags.keeperS3DiskEnabled on the ClickHouseCluster first. Wait for the Operator to apply the change and all Keeper members to be ready, then confirm that completed snapshots appear in each member’s S3 prefix before continuing. The newest snapshot remains local, so older snapshots appear in S3 as newer ones are created. For instances sharing Keeper, check and enable this setting on the parent instance. Each Keeper member stores snapshots under:
<member-id> is the Keeper pod index: 0, 1, or 2 for a three-member Keeper cluster. Use the bucket and prefix from your cluster configuration. List the available snapshots for each member:
You can back up completed snapshot objects with aws s3 cp, as shown below. Copy them outside the cluster’s active prefix.
The newest snapshot may still be on the Keeper pod’s local volume, so copying only an existing S3 snapshot may give you an older recovery point. Keeper can recover changes made after that snapshot by replaying the subsequent Raft logs.Keeper snapshots contain coordination metadata, not the actual table data. Copying Keeper snapshots leaves your cluster’s table data intact in object storage.

4. Copy existing v6 snapshots before changing versions

Before upgrading, copy all completed Keeper snapshots from each member’s S3 prefix to your backup location.
Or to a separate S3 bucket:

Perform the release upgrade

Follow Upgrade ClickHouse Private to perform the release upgrade.

Verify completion

Follow Validate the Upgraded Cluster to validate the upgrade.

If the upgrade fails

Keep the failing pod’s existing log files and persistent state intact during recovery. If the new Keeper cannot start, first investigate the failure with ClickHouse support. Simply rolling back to Keeper 26.2 and configuring snapshot format v6 is not sufficient: the upgraded Keeper may already have written v8 snapshots, which Keeper 26.2 cannot read.

Recover to 26.2 using a saved v6 snapshot

A Keeper member that fails to start must replay Raft logs to catch up with the other members once it restarts. During periods of heavy ingest or merge activity, the volume of new log entries can grow faster than the recovering member replays them, delaying or preventing it from rejoining the quorum. If possible, pause or reduce write-heavy workloads while recovering a member.
Recover one Keeper member at a time, keeping the other two healthy. Recovery requires compatible retained logs to replay changes after the saved v6 snapshot. Keep the member’s log files, persistent Raft state, PVC, and identity intact throughout this procedure.
  1. Roll back Keeper to the previous 26.2 version and its compatible configuration. The Operator starts the rolling rollback. A replacement pod that encounters a v8 snapshot fails to start with Unsupported snapshot version 8, and the rollout waits for that member to recover.
  2. Stop the failed member’s Keeper process for maintenance. Identify its index from the pod name, <cluster-name>-keeper-<member-id>, and use the backup for that same member. Pause reconciliation for both the ClickHouseCluster and its KeeperCluster before changing the pod:
    Use the failed Keeper pod as a temporary maintenance pod with its existing PVC. Confirm the StatefulSet uses OnDelete and save its original pod template. Edit these fields in the existing <cluster-name>-keeper StatefulSet, keeping its image, volume mounts, and other settings unchanged:
    This is a manifest fragment; apply the changes to the existing container. Recreate only the failed pod to pick up the temporary command:
    Wait for its container to be running. The maintenance pod stays unready. Keep the other two members running and ready before moving snapshot files.
  3. Move the failed member’s active snapshots aside in both locations.
    • Local: exec into the maintenance pod and move the snapshots to a holding directory on the same volume:
    • S3: move snapshots from s3://<bucket>/<key-prefix>/keepers/<member-id>/snapshots/ to a holding prefix outside the cluster’s active prefix:
  4. Restore the saved v6 snapshot for that member. Select a completed snapshot from the pre-upgrade backup, preserving its original filename. Do not use temporary files or a snapshot with an accompanying tmp_ marker. Copy it back to the member’s active S3 snapshot prefix:
    Verify that the restored object matches the saved backup before restarting Keeper.
  5. Restart the failed member on 26.2 and verify recovery. Restore the saved StatefulSet pod template. Recreate only that member’s pod. Keep reconciliation paused while it starts. Wait for it to become ready and catch up with the healthy peers.
  6. Resume the rolling rollback. Once the recovered member is healthy and synchronized, remove the maintenance annotations:
    The Operator can then continue with the next member. By default, it waits 300 seconds after a replacement becomes ready before replacing another member; this is controlled by spec.keeperStatefulSetUpdateRestSeconds on the KeeperCluster. Repeat steps 2–6 for each member that fails on a v8 snapshot, then validate the cluster and every instance sharing it.
Last modified on November 20, 2026