Results
RabbitMQ with amqplib
The measured numbers of this page are a study of rabbitmq 4.3.6, amqplib 2.2.0, Node 24.21.0 and kernel 6.17.0. The data comes from data file rabbitmq-2026-10-19.json of 2026-10-19, on rabbitmq 4.3.6, amqplib 2.2.0, Node 24.21.0 and kernel 6.17.0. The oldest data of this page is 35 days old at this build, on 2026-11-23. The age limit of this data is 30 days, from 2026-12-07. The engine has a pinned version, but the driver, the prober and the bands are code of this repository.
- Catalogs
- T01 · T11
- Date
- 2026-10-19
- Kernel
- Linux 6.17 · HZ 1000
- Cells
- 21
- Runs
- 231 runs
These are the results of the RabbitMQ cells, from 2026-10-19. The broker is RabbitMQ 4.3.6. The client is amqplib 2.2.0 on Node 24.21.0, with one connection and one channel at the defaults of amqplib.
- T01 is the direct pair. The client and one broker are in their own network namespaces, with a pair of veth devices between them. A border of O03 has a router between them. Each operation is an RPC of the channel: a passive declare of one queue, which the broker answers at once.
- T11 is a cluster of three nodes with one quorum queue. The members of the queue elect its leader by Raft, one member on each node. The client publishes a stream of sequence numbers with confirms through one node. When its connection ends, it connects to the next node after 1 s, as an application does. amqplib does not connect again by itself.
The machine documents give each band: amqplib and rabbitmq-connection for T01, and aten and ra-member for the cluster. Each fact comes from the source at its tag. The algebra composes the documents of T01 over Linux TCP.
CI started the cells at main in the run 39234193377, in 20 shards on the hosted runners of GitHub. The kernel is Linux 6.17, with HZ 1000. Each cell has 11 runs in 2 fresh environments, with one warm-up run in each environment. A fin stops the broker, thus each of its runs has its own environment.
Each of the 21 cells holds against the prediction of the algebra. The cells have 231 counted runs, and no run is void.
What the cells found
Section titled “What the cells found”T01: one broker
Section titled “T01: one broker”- The heartbeat of amqplib is the detector of a silent fault. At the defaults amqplib takes the heartbeat of the broker, 60 s. Its receive check counts the bytes of the broker each 60 s, and two checks with nothing end the connection. Behind a black hole, an idle connection ended 180.008 s after the last data from the broker. The band is 120 s to 180.03 s. A frozen broker ends an RPC in flight the same way, at 180.009 s.
- amqplib checks with a repeating timer of Node. Node counts each next interval from the time that the callback ran, thus the lateness of each check adds to the next one. Thus the band ends 30 ms after 3 heartbeats, and not 10 ms after them.
- A stopped broker resets its clients at once. RabbitMQ closes each socket with linger 0, thus its end of a connection is a reset, not a FIN. The reset came 50 µs after the broker stopped. A reset of an RPC in flight gives ECONNRESET in 0.7 ms, and a reset of the SYN refuses the first connect in 4.9 ms.
- The RTO after a stall holds the reply time of the broker. Linux counts the RTO from the smoothed round trip. Each sample of amqplib is the time to the reply of the broker, which ACKs the RPC. After a stall of 1 s, the reply came at the third firing of the RTO timer, with a median of 1.687 s.
- The kernel gives up on an unreachable host first. With
tcp_retries2= 3, an RPC in flight gets EHOSTUNREACH 3.120 s after the first retransmission. - amqplib tunes the smaller heartbeat of the two. A client that asks for 80 s against a broker that proposes 60 s gets 60 s. Thus the border of O03 outside sets the heartbeat at the broker too.
T11: the cluster
Section titled “T11: the cluster”- RabbitMQ polls its failure detector each 5 s. The detector, aten, finds a silent node 150 ms after its last heartbeat, at its next poll. By its own default it polls each 1 s, but RabbitMQ sets 5 s, for fewer false elections. A follower then waits 5 s to 6 s before its election. The first run of these cells measured the failover after 6.1 s to 10.4 s, against a band of 1.05 s to 4.0 s from the default of aten.
- A silent leader goes 6 s to 9 s after the fault. With the client on a follower, the first confirm after a freeze of the node of the leader came at 6.93 s. It came at 8.26 s after a black hole, and at 6.21 s after a complete partition. The band is 5.05 s to 12.0 s.
- The old leader steps down only when it sees the new term. A leader of Ra ignores the failure detector, thus in a minority it stays the leader and commits nothing. After a black hole of 20 s it stepped down 27.3 s after the fault: the link of the distribution retransmits after the heal.
- A step-down and a drain take milliseconds. A transfer of the leadership gave the first confirm 20 ms after the old leader gave the leadership away. A drain does not transfer the leadership: it stops the member of the leader. A follower then elects after its shortest timeout, and the first confirm came 48 ms after it saw the leader go down.
- A cut of one follower gives no new leader. The cut follower asks for pre-votes, and the other follower declines each one, because the log of the cut follower falls behind. The confirms go on: the next one came 18 ms after a cut in two directions, and 11 ms after a cut in one direction.
- With the client on the node of the leader, only the heartbeat of amqplib moves it. The queue fails over in 6 s to 8 s, but the connection of the client to the silent node stays open. The heartbeat of amqplib ends it after 3 minutes. The client then connects to the next node, and its first confirm came at 180.018 s after a freeze and at 180.015 s after a black hole.
- The queue kept each publish that it confirmed. No run of the cluster lost a confirmed publish.
The borders
Section titled “The borders”A border has two cells: a setting inside the border, and a setting outside it. Each chart shows the two cells on one axis of time. The dashed line is the border, and the mark above each track is the setting of its cell. The bar is the band of the prediction, and each dot is a counted run.
heartbeat against silent-drop router at 30 s, thus a heartbeat at 60 sInside, at 40 s, nothing ended it in the window of 2 min 30 s. Outside, at 80 s, it ended 4 min 0 s after the last segment with data from the broker.
heartbeat against give-up of the kernel at 51 sInside, at 15 s, it ended 45.0096 s after the last segment with data from the broker. Outside, at 60 s, it ended at 52.92 s.
- O03: the frames of the broker against a router that forgets an idle flow in silence, at 30 s: the Azure LB at 240 s, divided by 8. The broker sends a frame each half heartbeat, thus the border is a heartbeat of 60 s. At a heartbeat of 40 s, at the client and at the broker, the frames each 20 s keep the flow, and nothing occurs in 150 s. At 80 s the router forgets the flow first, and the heartbeat of amqplib ends it 240.013 s after the last data.
- O17: the heartbeat against the give-up of the kernel, behind a black hole with an RPC in flight and
tcp_retries2= 7. The kernel gives up 51 s to 108.2 s after its first retransmission. A heartbeat of 15 s ends the connection first, 45.010 s after the last data. At 60 s the kernel gives up first, with ETIMEDOUT 52.920 s after its first retransmission.
The cells that wait
Section titled “The cells that wait”The plan of R3 has more cells over these systems. The catalogs give a reason for each cell that waits:
- In T01, a hold of a reply by the broker needs a resource alarm, timed to the request. A restart of the broker at its own address, and a fault timed to a reply, need features that the harness does not have.
- A block of the event loop of Node waits for a document of how late the timers of Node are after it.
- Two writes before a read need a workload of the client. The client of the harness sends one RPC at a time.
- In T11, four cells need features that the harness does not have. They are a drain of a node of Kubernetes, a throttle of the CPU, a rolling upgrade, and a restart from an empty volume.
- The array stage gives each cell at the defaults a practice profile. In T01 no profile sets a knob of amqplib, of RabbitMQ, or of the Linux TCP that the cell reads. In T11 the profile DP42 sets the keepalive of the client. Linux sends no keepalive probe while data is in flight, thus that keepalive can end only some runs. Each array cell is thus an alias of its cell at the defaults, or it waits for the reason of that cell.
T01: the direct pair
Section titled “T01: the direct pair”At the defaults
Section titled “At the defaults”T01.defaults.134- Prediction
- 2 min to 3 min 0 s
- Median
- 3 min 0 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the heartbeat of amqplib ends the connection after two receive checks with no bytes of the broker, and the kernel stamps its FIN. The band is 120 s to 180.03 s after the last segment with data from the broker.
11 of the 11 counted runs are in the band of 119.999 s to 180.031 s. The median is 180.008 s, and its interval is 180.006 s to 180.009 s.
T01.defaults.135- Prediction
- 0 s to 2 ms
- Median
- 681 µs
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the reset answers the operation with ECONNRESET. The band is 0 s to 2 ms after the send of the operation.
11 of the 11 counted runs are in the band of −1 ms to 3 ms. The median is 681 µs, and its interval is 620 µs to 1.06 ms.
T01.defaults.136- Prediction
- 0 s to 12 ms
- Median
- 50 µs
- Runs
- 11 counted · 11 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the stopped broker resets the idle connection with ECONNRESET. The band is 0 s to 12 ms after the close of the socket of the broker.
11 of the 11 counted runs are in the band of −1 ms to 13 ms. The median is 50 µs, and its interval is 48 µs to 57 µs.
T01.defaults.137- Prediction
- 3 s to 3.329 s
- Median
- 3.12 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the retransmissions of the kernel give up with EHOSTUNREACH. The band is 3 s to 3.329 s after the first retransmission of the RTO timer.
11 of the 11 counted runs are in the band of 2.999 s to 3.33 s. The median is 3.12 s, and its interval is 3.12 s to 3.12 s.
T01.defaults.138- Prediction
- 2 min to 3 min 0 s
- Median
- 3 min 0 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the heartbeat of amqplib ends the connection after two receive checks with no bytes of the broker, and the kernel stamps its FIN. The band is 120 s to 180.03 s after the last segment with data from the broker.
11 of the 11 counted runs are in the band of 119.999 s to 180.031 s. The median is 180.009 s, and its interval is 180.004 s to 180.01 s.
T01.defaults.139- Prediction
- 1.604 s to 1.796 s
- Median
- 1.6868 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the reply comes back at the third firing of the RTO timer. The band is 1.604 s to 1.796 s after the send of the operation.
11 of the 11 counted runs are in the band of 1.603 s to 1.797 s. The median is 1.687 s, and its interval is 1.66 s to 1.698 s.
T01.defaults.140- Prediction
- silent for 5 min
- Median
- none
- Runs
- 11 counted
The algebra predicts that nothing detects the fault in a window of 300 s. The prediction has no failed operation or socket error after the fault.
Nothing detected the fault in the 11 counted runs, each of 300 s.
T01.defaults.142- Prediction
- 0 s to 22 ms
- Median
- 4.86 ms
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the reset of the SYN refuses the first connect with ECONNREFUSED. The band is 0 s to 22 ms after the start of the client.
11 of the 11 counted runs are in the band of −1 ms to 23 ms. The median is 4.86 ms, and its interval is 4.5 ms to 5.34 ms.
At the borders
Section titled “At the borders”T01.border-off.161- Prediction
- silent for 2 min 30 s
- Median
- none
- Runs
- 11 counted
The algebra predicts that nothing detects the fault in a window of 150 s. The prediction has no failed operation or socket error after the fault.
Nothing detected the fault in the 11 counted runs, each of 150 s.
T01.border-off.162- Prediction
- 2 min 40 s to 4 min 0 s
- Median
- 4 min 0 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the heartbeat of amqplib ends the connection after two receive checks with no bytes of the broker, and the kernel stamps its FIN. The band is 160 s to 240.03 s after the last segment with data from the broker.
11 of the 11 counted runs are in the band of 159.999 s to 240.031 s. The median is 240.013 s, and its interval is 240.01 s to 240.016 s.
T01.border-off.205- Prediction
- 30 s to 45.03 s
- Median
- 45.0096 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the heartbeat of amqplib ends the connection after two receive checks with no bytes of the broker, and the kernel stamps its FIN. The band is 30 s to 45.03 s after the last segment with data from the broker.
11 of the 11 counted runs are in the band of 29.999 s to 45.031 s. The median is 45.01 s, and its interval is 45.006 s to 45.013 s.
T01.border-off.206- Prediction
- 51 s to 108.288 s
- Median
- 52.92 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the retransmissions of the kernel give up with ETIMEDOUT. The band is 51 s to 108.288 s after the first retransmission of the RTO timer.
11 of the 11 counted runs are in the band of 50.999 s to 108.289 s. The median is 52.92 s, and its interval is 52.776 s to 53.104 s.
T11: a cluster of three nodes
Section titled “T11: a cluster of three nodes”A fault at the node of the leader is a freeze of its server, a black hole, or a partition from the other nodes. Each holds 20 s, or 200 s with the client on that node. The client is on a follower, or on the node of the leader. A step-down and a drain take their stamps from the log of the cluster. The stamp of a step-down is the NOTICE of the old leader. The stamp of a drain is the first follower that sees the leader go down.
T11.defaults.7- Prediction
- 0 s to 196 ms
- Median
- 20.2 ms
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the queue gets a new leader, and the first publish after the fault gets its confirm through it. The band is 0 s to 196 ms after the fault.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
elected | −1 ms to 39 ms | 4.9 ms | holds |
followed | no band | 5.45 ms | |
old-leader-steps-down | no band | 0 s | |
first-write | −1 ms to 199 ms | 20.2 ms | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of −1 ms to 197 ms. The median is 20.2 ms, and its interval is 11.9 ms to 34.2 ms.
T11.defaults.74- Prediction
- 5.051 s to 12.003 s
- Median
- 6.9347 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the queue gets a new leader, and the first publish after the fault gets its confirm through it. The band is 5.051 s to 12.003 s after the fault.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
elected | 5.05 s to 11.846 s | 6.933 s | holds |
followed | no band | 6.933 s | |
old-leader-steps-down | no band | 20.004 s | |
first-write | 5.05 s to 12.006 s | 6.935 s | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of 5.05 s to 12.004 s. The median is 6.935 s, and its interval is 6.292 s to 7.931 s.
T11.defaults.75- Prediction
- 5.051 s to 12.003 s
- Median
- 8.2555 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the queue gets a new leader, and the first publish after the fault gets its confirm through it. The band is 5.051 s to 12.003 s after the fault.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
elected | 5.05 s to 11.846 s | 8.253 s | holds |
followed | no band | 8.254 s | |
old-leader-steps-down | no band | 27.293 s | |
first-write | 5.05 s to 12.006 s | 8.255 s | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of 5.05 s to 12.004 s. The median is 8.255 s, and its interval is 7.336 s to 9.567 s.
T11.defaults.76- Prediction
- 5.051 s to 12.003 s
- Median
- 6.2104 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the queue gets a new leader, and the first publish after the fault gets its confirm through it. The band is 5.051 s to 12.003 s after the fault.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
elected | 5.05 s to 11.846 s | 6.209 s | holds |
followed | no band | 6.209 s | |
old-leader-steps-down | no band | 27.16 s | |
first-write | 5.05 s to 12.006 s | 6.21 s | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of 5.05 s to 12.004 s. The median is 6.21 s, and its interval is 5.435 s to 8.893 s.
T11.defaults.77- Prediction
- 0 s to 160 ms
- Median
- 17.5 ms
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the queue keeps its leader, and the next publish gets its confirm. The band is 0 s to 160 ms after the fault. The prediction has no new leader of the queue.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
followed | no band | 20.016 s | |
first-write | −1 ms to 163 ms | 17.5 ms | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of −1 ms to 161 ms. The median is 17.5 ms, and its interval is 12.4 ms to 54.2 ms.
T11.defaults.78- Prediction
- 0 s to 160 ms
- Median
- 11.4 ms
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the queue keeps its leader, and the next publish gets its confirm. The band is 0 s to 160 ms after the fault. The prediction has no new leader of the queue.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
followed | no band | 20.02 s | |
first-write | −1 ms to 163 ms | 11.4 ms | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of −1 ms to 161 ms. The median is 11.4 ms, and its interval is 5.75 ms to 53.7 ms.
T11.defaults.79- Prediction
- 1 ms to 294 ms
- Median
- 48.3 ms
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the queue gets a new leader, and the first publish after the fault gets its confirm through it. The band is 1 ms to 294 ms after the fault.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
monitor-down | no band | 0 s | |
elected | 0 s to 137 ms | 45.1 ms | holds |
followed | no band | 45.6 ms | |
first-write | 0 s to 297 ms | 48.3 ms | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of 0 s to 295 ms. The median is 48.3 ms, and its interval is 26.9 ms to 76.8 ms.
T11.defaults.74- Prediction
- 2 min 0.9 s to 3 min 1.2 s
- Median
- 3 min 0 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the heartbeat of amqplib ends the connection of the client, and the first publish on the next node gets its confirm. The band is 120.89 s to 181.162 s after the fault.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
elected | 5.05 s to 11.846 s | 6.439 s | holds |
followed | no band | 6.44 s | |
old-leader-steps-down | no band | 3 min 20 s | |
first-write | 2 min 0.9 s to 3 min 1.2 s | 3 min 0 s | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of 120.889 s to 181.163 s. The median is 180.018 s, and its interval is 180.012 s to 180.026 s.
T11.defaults.75- Prediction
- 2 min 0.9 s to 3 min 1.2 s
- Median
- 3 min 0 s
- Runs
- 11 counted · 2 warm-ups
- Prediction
- Counted run
- Warm-up, not counted
- Median
The algebra predicts that the heartbeat of amqplib ends the connection of the client, and the first publish on the next node gets its confirm. The band is 120.89 s to 181.162 s after the fault.
| Stage | Prediction | Median | Verdict |
|---|---|---|---|
elected | 5.05 s to 11.846 s | 7.444 s | holds |
followed | no band | 7.444 s | |
old-leader-steps-down | no band | 3 min 20.6 s | |
first-write | 2 min 0.9 s to 3 min 1.2 s | 3 min 0 s | holds |
The queue kept each publish that it confirmed.
11 of the 11 counted runs are in the band of 120.889 s to 181.163 s. The median is 180.015 s, and its interval is 180.004 s to 180.021 s.
Where the data comes from
Section titled “Where the data comes from”Each runner wrote a raw record of each of its cells. A record has the cell and the manifests of its environments. It also has each warm-up run, and each run with its kernel records and the lines of the client. A run of a cluster also has the log lines of each node.
The script packages/site/scripts/rabbitmq.ts reads each record with the code of the harness, and it stops when a verdict disagrees with the summary of the run. It also stops when a prediction disagrees with the catalog at HZ 1000. It writes the copy that this page shows, and that copy names no machine. The cells and their predictions are in the catalogs.