---
title: "Bonree replaces ZooKeeper with ClickHouse Keeper for drastically improved performance and reduced costs"
description: "Bonree migrated the coordination layer of its ClickHouse-based observability platform from five 3-node ZooKeeper clusters to a single ClickHouse Keeper cluster."
url: "https://swe.quest/articles/bonree-replaces-zookeeper-with-clickhouse-keeper-for-drastically-improved-6eee02db0b20c225"
canonical: "https://clickhouse.com/blog/bonree-replaces-zookeeper-with-clickhouse-keeper-for-drastically-improved-performance-and-reduced-costs"
source: "ClickHouse"
published: "2024-07-22"
difficulty: "hard"
kind: "Case study"
reading_minutes: 11
tags: ["analytics","consensus","distributed-systems","observability","cost-optimization"]
---

# Bonree replaces ZooKeeper with ClickHouse Keeper for drastically improved performance and reduced costs

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2024-07-22, 11 min read, Case study. Original: [https://clickhouse.com/blog/bonree-replaces-zookeeper-with-clickhouse-keeper-for-drastically-improved-performance-and-reduced-costs](https://clickhouse.com/blog/bonree-replaces-zookeeper-with-clickhouse-keeper-for-drastically-improved-performance-and-reduced-costs)

## Summary

Bonree migrated the coordination layer of its ClickHouse-based observability platform from five 3-node ZooKeeper clusters to a single ClickHouse Keeper cluster. The move cut CPU and memory use by more than 75% and improved performance nearly 8x, and it eliminated Java full-GC stalls and replica sync backlogs. The migration was automated with Ansible: ingestion and merges are stopped (e.g. SYSTEM STOP MERGES), fresh snapshots are taken and converted, then data is sampled and verified, bringing a 2-3 hour manual process down to minutes. Bonree also modified clickhouse-keeper-converter to merge snapshots from multiple ZooKeeper clusters into one, handled mixed ACL encryption states, and replaced slow ZooKeeper path reads with a path log, cutting verification of 9 million paths from about 9 hours to seconds.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Consensus](https://swe.quest/tags/consensus.md) (Distributed systems)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- ClickHouse replicated tables ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- ZooKeeper basics
- ZooKeeper ACLs

## Keywords

ClickHouse Keeper, ZooKeeper, ClickHouse, clickhouse-keeper-converter, Ansible, Bonree ONE

## Related posts

- [ClickHouse Keeper: A ZooKeeper alternative written in C++](https://swe.quest/articles/clickhouse-keeper-a-zookeeper-alternative-written-in-c-982cab848c27cdde.md): ClickHouse · 2023-09-27 · Medium · 16 min read · Consensus, Distributed systems, Performance engineering, Analytics & OLAP, C & C++
  ClickHouse Keeper is a C++ drop-in replacement for ZooKeeper with the same client protocol and data model.
- [How trip.com migrated from Elasticsearch and built a 50PB logging solution with ClickHouse](https://swe.quest/articles/how-trip-com-migrated-from-elasticsearch-and-built-a-50pb-logging-solution-with-079ade1f405efcf8.md): ClickHouse · 2024-06-12 · Medium · 16 min read · Analytics & OLAP, Observability, Scaling, Cost optimization, Databases
  Trip.com replaced its Elasticsearch-based centralized logging platform with ClickHouse after hitting stability, ingestion and cost limits at 4PB, and has since grown it toward 50PB.
- [How Lansweeper scaled IT, OT, and IoT insights with ClickHouse Cloud](https://swe.quest/articles/how-lansweeper-scaled-it-ot-and-iot-insights-with-clickhouse-cloud-8626be5e19fd7725.md): ClickHouse · 2025-07-11 · Easy · 5 min read · Analytics & OLAP, Cost optimization, Scaling, Search
  Lansweeper moved its asset-analytics layer from MongoDB plus Elasticsearch to self-hosted ClickHouse and then to ClickHouse Cloud as it grew to 50M assets, 1.4B software records and 5.5B vulnerabilities.
- [ClickHouse 22.3 LTS Released](https://swe.quest/articles/clickhouse-22-3-lts-released-3d54b5a68fa989fa.md): ClickHouse · 2022-04-12 · Medium · 9 min read · Analytics & OLAP, Databases, Testing, Storage systems
  ClickHouse 22.3 is a long-term support release (supported through March 2023) focused on maturity and reliability.
- [Observing in style: How Poizon rebuilt its data platform with ClickHouse Enterprise Edition](https://swe.quest/articles/observing-in-style-how-poizon-rebuilt-its-data-platform-with-clickhouse-fd5f014575f8d9e5.md): ClickHouse · 2025-03-31 · Medium · 9 min read · Analytics & OLAP, Observability, Scaling, Cost optimization, Cloud platforms
  Poizon moved its distributed-tracing observability store, which ingests petabytes of trace data daily, from self-hosted single-replica ClickHouse on cloud disks to ClickHouse Enterprise Edition on Alibaba Cloud.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
