Troubleshoot ZooKeeper Ensembles Easily with Ivory
A new plugin for Ivory, a system monitoring tool, has been introduced to simplify troubleshooting for Apache ZooKeeper ensembles. The plugin, currently in beta, provides a consolidated view of ZooKeeper's operational state, including leader status and znode management, addressing a common diagnostic challenge for administrators of distributed systems.
Ivory, a platform designed for system monitoring, has added a plugin specifically for Apache ZooKeeper, a coordination service critical to distributed systems. ZooKeeper enables functions like ClickHouse table replication and leader election for high-availability tools. Its quiet operation means issues often go unnoticed until a system fails, such as ClickHouse tables becoming read-only, with the root cause potentially several steps removed from the immediate symptom.
The new plugin aims to streamline the diagnostic process by interacting directly with ZooKeeper using its native 'four-letter-word' commands, `mntr` and `conf`, on the client port. This method requires administrators to ensure these commands are included in ZooKeeper's `4lw.commands.whitelist`. When a command is refused, Ivory explicitly quotes ZooKeeper's reply, rather than making assumptions about the reason.
Ivory provides specific insights, such as immediately flagging nodes configured into different ensembles because 'every node reports the ensemble it's configured into.' The tool prioritizes accurate reporting; for example, it does not display replication lag per follower because ZooKeeper itself does not provide this metric, adhering to the principle that 'a wrong lag is worse than no lag.' Similarly, it avoids guessing membership lists in single-host templates where client port information is unavailable.
For deeper troubleshooting, Ivory includes a console for managing `znodes`, ZooKeeper's data nodes, allowing commands like `ls`, `get`, `create`, `set`, `delete`, and `exists`. It also integrates with host-level metrics, such as CPU, memory, network, and process data, via SSH. This is particularly useful as 'ZooKeeper is very sensitive to slow disks and long GC pauses,' making host performance a critical diagnostic area. For Docker deployments, a dedicated tab offers container logs and controls.
Additionally, Ivory supports integration with AI tools like Claude, Cursor, or Codex through its built-in MCP server. This allows users to pose natural language questions about system states, such as 'Which ZooKeeper node is the leader?' or 'Is anything wrong with the machine behind zookeeper2?'. These queries are processed through Ivory, leveraging its monitoring data with user permissions. The ZooKeeper support is currently in beta, with developers actively seeking feedback.
Share this article
Related reading
6 stories
Musk says Google is interested in renting more computing capacity from SpaceX
Poster says Gemini 4 Neon draws praise while early GPT-6.2 Astra reception is muted

Hold Space to talk and more this week in RexIDE

OpenAI cuts the data Codex pulls from the Responses API by about 80%

Li Auto is coming to Singapore, but do we need another Chinese EV brand?

