RabbitMQ node down: telling a dead broker apart from a partitioned one
A node has disappeared from your cluster view. The first question is not “how do I bring it back” but “what actually happened to it.” A dead broker (VM crashed, process killed, host gone) and a partitioned broker (Erlang node still running but cut off from its peers) look almost identical from one vantage point and completely different from another. The recovery steps are opposite: you restart a dead node, but restarting a partitioned node mid-partition can make split-brain worse.
The trap is that running=false from the management API is ambiguous. It can mean the Erlang VM is gone, or it can mean the node you are querying from cannot reach the peer. Similarly, running=true does not mean the node is part of the cluster: a partitioned node reports itself as running and will happily answer probes while serving a divergent view of the world.
This guide walks through the checks that separate the two cases, in the order you should run them during an incident.
What this means
RabbitMQ nodes communicate over the Erlang distribution protocol (port 25672 by default). When that link breaks, each node keeps running independently. From the majority side, the missing node looks down. From the missing node’s perspective, the rest of the cluster is down. Both are “running” locally.
Three facts drive the diagnosis:
- The
runningfield inGET /api/nodesreflects what the querying node believes, not ground truth on the target. - Each node maintains a
partitionsarray listing nodes it considers partitioned. This is the authoritative split-brain signal. - A node can be alive but non-service-impacting to lose, or alive and quorum-critical. Losing a quorum-critical node takes quorum queues and streams with it.
flowchart TD
A[Node alert fires] --> B{rabbitmq-diagnostics ping on the node itself}
B -->|fails| C{beam.smp process alive?}
C -->|no| D[Dead broker - VM crashed or host down]
C -->|yes| E[rabbit application stopped - VM alive, broker down]
B -->|succeeds| F{partitions array empty on all peers?}
F -->|no| G[Partitioned - running but isolated]
F -->|yes| H[Transient probe failure or management API issue]
G --> I{check_if_node_is_quorum_critical}
I -->|critical| J[Service-impacting - quorum queues at risk]
I -->|not critical| K[Redundant node loss]Common causes
| Cause | What it looks like | First thing to check |
|---|---|---|
| Erlang VM crash (OOM kill, process limit, atom exhaustion) | ping fails, beam.smp process gone from OS | pgrep -f beam.smp on the host, dmesg for OOM killer |
| Disk full blocking writes | VM may be alive but broker stuck; often preceded by disk alarm | df -h on the data partition |
| Management API timeout under heavy GC | Probe fails intermittently, node actually fine | Require sustained failure; check run_queue |
| Network partition (switch, firewall, NIC failure) | Node answers ping locally, peers list it in partitions | rabbitmq-diagnostics cluster_status from both sides |
GC pause exceeding net_ticktime (default 60s) | Transient false partition detection that self-heals | Correlate with Erlang run queue; check if it cleared within one interval |
| Firewall change blocking Erlang distribution port 25672 | Cluster link traffic drops to zero, partition follows | TCP connectivity to 25672 between nodes |
| Rolling restart or maintenance | Node intentionally stopped, uptime was recently reset | Uptime < 300s before the alert; check maintenance windows |
Quick checks
Run these from the affected node itself first, then from a healthy peer. All are read-only.
# 1. Is the Erlang node alive at all? Run on the affected node.
rabbitmq-diagnostics -q ping
# 2. Is the OS process there? Distinguishes VM crash from app stop.
pgrep -f beam.smp
# 3. Is the rabbit application running inside the VM?
rabbitmq-diagnostics check_running
# 4. What do the peers think? Run from a healthy node.
curl -s -u guest:guest http://localhost:15672/api/nodes | jq '.[] | {name, running, partitions}'
# 5. Cluster view from CLI on a healthy node.
rabbitmq-diagnostics cluster_status
# 6. How long was the node up before it vanished?
curl -s -u guest:guest http://localhost:15672/api/nodes | jq '.[] | {name, uptime_seconds: (.uptime / 1000)}'
# 7. Is losing this node service-impacting?
rabbitmq-queues check_if_node_is_quorum_critical
# or via API from a peer:
curl -s -u guest:guest http://localhost:15672/api/health/checks/node-is-quorum-critical
# 8. Is the AMQP data plane still alive even if management is dead?
# (TCP connect to 5672 from a client host; management on 15672 can be down independently)
A note on the tools: rabbitmq-diagnostics ping only proves the node runtime is up and CLI authentication works. It says nothing about whether the rabbit application is running, which is what check_running verifies. And the management API on port 15672 can be down while AMQP on 5672 keeps serving clients, so never treat a management API failure alone as proof of a dead broker. Conversely, /api/health/checks/is-in-service is a readiness/drain signal, not a liveness check: it intentionally returns 503 on a node paused for maintenance. Do not wire it to a “node dead” alert.
How to diagnose it
Rule out the alert artifact. If uptime was under 300 seconds before the node vanished, you are probably looking at a rolling restart or a crash-restart loop, not a steady-state failure. Check deployment and maintenance windows before touching anything.
Probe the node directly. Run
rabbitmq-diagnostics -q pingon the affected host. If it fails andpgrep -f beam.smpreturns nothing, the VM is dead: checkdmesgfor the OOM killer and the RabbitMQ log for crash reports. Ifbeam.smpis alive butpingorcheck_runningfails, the VM is up but the rabbit application is stopped or hung. A single failed probe proves nothing; the paging condition isrunning == falseor unreachable for more than 2 consecutive collection intervals, precisely because brief management API timeouts happen during heavy GC.Ask the cluster, not the node. From a healthy peer, pull
GET /api/nodesand inspectpartitionson every node. A non-empty array anywhere means split-brain: the “down” node is actually a live, isolated partition side. Cross-check withrabbitmq-diagnostics cluster_status, which shows the querying node’s view of running peers.Confirm with cluster link traffic. On a healthy peer, inspect the
cluster_linksfield inGET /api/nodes. Traffic (recv_bytes,send_bytes) dropping to zero between previously communicating peers, combined with a non-empty partitions array, confirms network isolation. Zero traffic alone is not enough: idle clusters legitimately show near-zero inter-node bytes between intervals.Classify the blast radius. Run
rabbitmq-queues check_if_node_is_quorum_critical(or the equivalent API health check). A non-zero exit means taking this node down leaves at least one quorum queue or stream without an online majority. That is the difference between a page-the-team service outage and a redundant-node loss you can fix during business hours. Also list queue states: quorum queues on the minority side will showstate: minority(read-only at best), classic queues mastered on the lost node showdown.If it is a partition, check whether it is real or self-inflicted. GC pauses exceeding
net_ticktime(default 60s) cause transient false partition detection that self-heals. Correlate with the Erlang run queue: a sustained run queue above the core count delays heartbeat processing and manufactures phantom partitions. A partition that appears and clears within one collection interval is usually this, not a network fault.
Metrics and signals to monitor
| Signal | Why it matters | Warning sign |
|---|---|---|
running field / ping reachability | Base availability; ambiguous without context | false or unreachable for >2 intervals with prior uptime >300s |
partitions array per node | The split-brain signal; tells you “isolated” vs “dead” | non-empty for >2 intervals on a cluster with size > 1 |
| Node uptime | Gates false positives from restarts and warm-up | unexpected reset; uptime < 300s at alert time |
Cluster link traffic (recv_bytes/send_bytes rates) | Corroborates partition with zero inter-node bytes | zero rate between peers plus partition detection |
Queue state per queue | Shows service impact: down, minority | quorum queues in minority; active queues down |
Erlang run_queue | Scheduler saturation causes heartbeat delays and false partitions | sustained above CPU core count |
| Quorum-critical health check | Separates service-impacting loss from redundant loss | check fails when node is lost or about to be stopped |
Fixes
If the broker is genuinely dead
Find out why before restarting. A VM that crashed from memory exhaustion will crash again on restart as queues repopulate, and restarts lose in-memory messages. Check the RabbitMQ log and dmesg for OOM kills, disk exhaustion on the data partition, or Erlang process/atom limit errors. Once the cause is understood and the host is healthy, start the node and let it rejoin. Expect a warm-up window: memory will spike as queues reload, and quorum followers need time to resync. Suppress resource alerts for that period rather than paging on warm-up noise.
If the node is partitioned
Do not restart it while the partition is active. Each side may be accepting writes independently, and premature intervention deepens divergence. First fix the connectivity: verify the path between nodes, including the Erlang distribution port 25672 (firewall rules, NAT timeouts, switch state). Then check the partition handling strategy in rabbitmq.conf (cluster_partition_handling) so you know what recovery will do: pause_minority freezes the minority side until it can see a majority; autoheal restarts the losing side when the network heals (non-replicated messages on those nodes are lost); ignore does nothing and leaves the cluster split until you act manually. After recovery, verify the partitions array is empty on every node and that quorum queues have left the minority state.
If it was a false partition from GC or scheduler saturation
Treat the run queue as the incident, not the partition. Sustained scheduler saturation delays heartbeats and triggers net_ticktime breaches. Reduce load, revisit TLS termination costs, or add capacity. Tuning net_ticktime upward to mask this trades slower real-partition detection for fewer false ones; fix the saturation first.
Prevention
- Alert with gating conditions. Page only when
running == falseor unreachable is sustained over more than 2 collection intervals AND prior uptime exceeded 300 seconds. This one change eliminates most cold-start and rolling-restart pages. - Alert on partitions separately and require persistence. GC pauses past
net_ticktimeself-heal; only a partition persisting across intervals deserves a page. - Probe both planes. Monitor management API reachability and actively probe the AMQP listener (TCP connect to 5672). They fail independently.
- Check quorum-criticality before any planned stop. Run
check_if_node_is_quorum_criticalbefore every rolling restart or decommission. It is the difference between a boring maintenance window and a self-inflicted outage. - Monitor the run queue as a partition precursor. Scheduler saturation is upstream of heartbeat timeouts; catch it before it manufactures a false split.
- Keep classic mirrored queues out of the picture. They are removed in current versions; on quorum queues a partition degrades to
minorityrather than divergent writes.
How Netdata helps
- Node availability with uptime context: Netdata tracks the
runningstate and uptime per node, so a down alert carries the warm-up context needed to distinguish a restart from a failure. - Partition detection per node: the
partitionsarray from/api/nodesis surfaced per node, letting you see at a glance which side of a split each node believes it is on. - Cluster link traffic rates: per-peer send/receive byte rates make the “zero traffic plus partition detected” correlation visible on one screen instead of two curl commands.
- Queue state tracking:
downandminorityqueue states are charted alongside node events, so you can see whether a node loss took quorum queues with it. - Run queue correlation: the Erlang run queue is collected next to partition events, which is how you spot GC-driven false partitions without pulling logs.
Related guides
- RabbitMQ channel leak and churn: the channel-per-message anti-pattern
- RabbitMQ connection blocked / blocking: publishers frozen by a resource alarm
- RabbitMQ connection in flow state: credit-based backpressure explained
- RabbitMQ connection storm: reconnect loops, FD pressure, and CPU spent on handshakes
- RabbitMQ consumer timeout: delivery acknowledgement timed out and the channel is closed
- RabbitMQ consumer_utilisation low: consumers attached but not keeping up
- RabbitMQ consumers connected but not acknowledging: the consumer black hole
- RabbitMQ disk free limit alarm: free disk space insufficient and publishing halted
- RabbitMQ disk_free_limit at the default 50MB: the production footgun
- RabbitMQ file descriptor exhaustion: fd_used near fd_total and refused connections
- RabbitMQ flow control vs resource alarms: the two throttling mechanisms operators confuse
- RabbitMQ head message age: the queue latency that depth alone cannot show






