Pulsar Sentinel - Cluster Health and Fencing

Own solution In use

Starting point

Pulsar's built-in mechanisms are not enough to monitor broker clusters across network boundaries and to shut down faulty nodes.

Challenge

For Apache Pulsar broker clusters in critical production environments, the built-in mechanisms were not enough. The requirements were:

  • Heartbeat monitoring across network boundaries
  • Quorum checks per priority group
  • Automatic fencing of faulty nodes
  • Observability through Prometheus

A dedicated, lightweight tool was to close this gap.

Solution

Pulsar Sentinel was implemented as an independent tool in Go. It combines heartbeats, health checks and quorum logic with a clear fencing strategy.

KnotenUDP-Heartbeatmit Health-StatusHealth-CheckAdmin-APIVerlust nachToleranzzeitPulsar SentinelPulsar-BrokerSentinel aufden anderen KnotenQuorum jePrioritätsgruppeFencingShell-Kommando, z. B.Shutdown, Drain, NeustartPrometheusund Grafana
Heartbeat, quorum and fencing on every node. (Diagram labels in German.)
  • Heartbeat: The nodes exchange UDP messages cyclically, including the health status of the local brokers.
  • Quorum and priorities: Priority groups are configurable. A loss of quorum is detected and escalated.
  • Grace and cooldown: Tolerance periods prevent unnecessary fencing.
  • Fencing: Arbitrary shell commands can be run automatically, for example shutdown, Kubernetes drain or service restart.
  • Metrics: Status and error conditions are available at a Prometheus endpoint and shown in Grafana.
  • Configuration: Timeouts, ports, quorum sizes and logging are set through CLI flags.

Do you have a similar project in mind?

I am happy to contribute my experience and support your implementation end-to-end.

Arrange an initial call