Skip to content

QueenMQ changelog: releases since 2.0

Every release since 2.0.0, which replaced PostgreSQL with a Raft log on local disk: the broker, the clients, the Laravel driver and the supervisor, newest first.

Updated View as Markdown

Before 2.0.0 (2026-10-03), QueenMQ kept its data in PostgreSQL. 2.0 replaced that with its own log, replicated with Raft, on each node’s local disk, and a 2.0 node does not read a 1.x database. This page lists every release since 2.0.0, newest first. The 1.x entries are in CHANGELOG.md on GitHub.

2.10.0 - 2026-11-20

Upgrading from 2.9.x: a rolling restart. 2.10.0 keeps the data format of 2.9.0 (cluster version 8), and nodes of the two releases replicate to each other while the roll runs. The PHP client moves to 2.10.0 and pins supervisor 0.10.0, which carry the last two entries below. The JavaScript client stays at 2.9.2, the Python, Go, Rust and C++ clients at 2.9.0, queen-protocol at 1.7.0 and queenctl at 2.7.1: their code did not change, and they talk to a 2.10.0 broker as to 2.9.0. Jepsen ran the whole suite, 568 tests, on b0d3a5c67, the code of this release before the LMDB fix below, and all were valid; on 2.10.0 itself (930578e2b) it ran the 59 tests of the gate, all valid.

Server: openraft 0.10.0. The consensus library moves from the 0.10.0-alpha.37 prerelease to the 0.10.0 release, pinned exactly as before. It brings the fixes openraft made in between; three of them are on paths QueenMQ takes, all needing rare timing that no Jepsen campaign showed: a stale replication stream could send an old term’s entries with a later commit point, a late reply on a pipelined stream could confirm a linearizable read for a leader already replaced, and two membership changes made from one configuration in two terms could both commit. The frames between nodes keep their 2.9.0 form, so nodes of this release and 2.9.0 nodes replicate to each other during a rolling restart (the conflict hint 0.10.0 adds to append answers is not sent). Two things behave differently. A leader elected a moment ago refuses a membership change until it has committed an entry of its own term; the refusal is 409 in_flight, as for a change in progress: retry it. And while the cluster runs both releases, a leadership transfer between a node of each, the hand-off on SIGTERM among them, counts as an ordinary election, which can wait up to an election timeout for the old leader’s lease to run out.

Server: a member wiped in place gets its entries again. A member back with an empty data directory (the same node id, its disk lost) could stay at the snapshot it was sent and receive no further entry until the leader changed. The leader’s stream to it, planned before the leader found its log gone and connected late, asked for entries the purge had passed since; the member, back on its snapshot, answered with success each heartbeat sent in their place, and that stream never ended, so the one planned after the snapshot never started. Such a stream now ends at its second request below the purge point. CI saw it as an_empty_member_gets_the_whole_state_with_its_indexes failing now and then; a test now holds the leader’s stream across exactly that, and fails every time without the fix.

Kafka facade: a leader cut off from the others stops answering as the leader. When a network partition cut the raft leader off, it went on calling itself the leader to the Kafka clients that still reached it, until the partition healed: raft keeps a leader in its role until it hears of a newer term, and none reaches it. Its state stopped where the partition began, while the leader elected on the other side went on. So a consumer that had read further on the new leader, and then took its metadata from the old one, fetched past the end of that old state, was answered OFFSET_OUT_OF_RANGE, and went back to the offset auto.offset.reset names (earliest: the start of the partition). Nothing was lost or changed, but the consumer read everything again. A node now counts as the leader for Kafka clients only while a quorum has acknowledged it within raft’s leader lease (twice QUEEN_RAFT_ELECTION_MS, 2 s by default), the time in which no other node can be elected and past which raft refuses its writes too: past it, Metadata names no leader, Fetch and Produce answer NOT_LEADER_OR_FOLLOWER, and the client asks another node. Jepsen’s Kafka workload found it, once in a campaign, under a partition that cut the leader off.

Server: a transaction waits for a cursor that another one holds. A transaction that acks messages or sets consumer-group positions holds each cursor it moves, from the moment the leader checks it until its entry commits, and the leader’s checkpoint holds a cursor while it writes the cursor’s last change. A second transaction on one of those cursors was refused at once with reserved, nothing written, although the hold lasts one commit. The docs say to retry it, but no SDK does: the JS client throws it, so the handler failed and the consumer nacked its message, spending one of the message’s retries, and a Kafka transaction got a fatal error (next entry). It happened when two writes on one partition and group overlapped: a handler that commits the messages of one popped batch in parallel, an ack not awaited before the next transaction, a lease renewal in flight while the handler commits. The leader now prepares such a transaction again: it waits 2 ms first, and twice as long each time after, up to 50 ms between tries, until 100 ms before the request’s deadline (QUEEN_STMT_TIMEOUT_MS, 30 s by default). Only a cursor held for that whole time is answered reserved, as before, with nothing written. The dashboard’s ack counts no longer count the positions of a try that was refused. Tests hold a cursor the way a transaction in flight does, on one node and through a follower, and fail every time without the change.

Kafka facade: a commit that the broker asks to retry no longer kills the producer. EndTxn answered INVALID_TXN_STATE, which the Java client treats as fatal (the producer must be closed), whenever the broker refused the commit with a reason that means “retry”: reserved (above) or unavailable. Kafka never refuses such a commit. Now the transaction stays open with its records and offsets, EndTxn answers CONCURRENT_TRANSACTIONS, and the client sends it again on its own, as every Kafka client does. Jepsen’s Kafka workload found it: at the end of a test, ten transactional producers committed one consumer group’s offsets on the same partitions at the same moment, and six of them were refused. Nothing was lost or written twice: each refused commit wrote nothing.

Server: no crash when a store closes while a thread that read it exits. The store and the trace store kept an LMDB reader slot on every thread that had ever read them, until the thread exited, and LMDB frees such a slot from a hook that runs as the thread exits. When a thread exited while its store was closing, that hook could write into the store’s lock file after the close had unmapped it, and the process died of SIGSEGV. The broker process never closes its store while it runs (installing a snapshot restarts it), so it was not exposed; an application that embeds the broker and restarts it in its own process was, and so were the broker’s test binaries, which open and close hundreds of stores: 3 times in about 100 CI runs. Both stores now hold a reader slot only while an LMDB read lasts (LMDB’s MDB_NOTLS), so no slot is left for a thread’s exit to free. That mode takes a lock inside LMDB at the start of each LMDB read, so the store’s reads, all served from RAM, now open no LMDB read at all; the LMDB reads left are the load at boot, the background scrub, a snapshot’s copy and trace queries. One thing behaves differently: after a fatal LMDB error, reads go on answering from RAM, as writes already did, where before every read failed. The gauge queen_raft_store_readers{kind="used"}, the most reader slots in use at once since boot, now stays at a few instead of growing with the threads that had read. Tests let as many threads read once and stay alive as there are reader slots, then read once more: before the change that read was refused, every time.

PHP client 2.10.0 and supervisor 0.10.0: pools of queen:consume handlers. A supervisor pool can name 'handlers' => [queue => HandlerClass::class] instead of 'queues'. For each queue, both engines, the Rust master and the PHP one, then run queen:consume <queue> <handler> workers, with the scaling, restart backoff, prefork, drain, status and dashboard of a queue:work pool: one master runs every consumer of the application. The workers pop with --subscription-mode=all, so a group the pool opens reads the backlog the master scales on. A pool of handlers is refused with balance off, the time strategy, a connection other than queen, queues beside the handlers, a lease_renewal other than the one in config/queen.php, a shutdown_grace shorter than the timeout plus the 10 s long poll, or a class without handle(). A queen:consume that a supervisor runs stops for queue:restart and exits 0. The fork server speaks protocol 2, whose request names the command (queue:work or queen:consume), and still protocol 1 to an older master.

PHP client: a comma-separated QUEEN_URLS works in the container’s client too. The queue connector split 'urls' => env('QUEEN_URLS') on commas, but the client that the service container builds took the string as it was, so the Queen facade and queen:consume failed at boot with “urls must be a non-empty array”. That client splits it the same way now.

JS client 2.9.2 - 2026-11-18

JS client: it works on Node 26. On Node 26 the JS client up to 2.9.1 sent no request at all: every call failed with fetch failed (UND_ERR_INVALID_ARG, invalid onError method) before it reached the broker, and consume() took that for a lost connection and polled again without end, so a consumer looked like it had nothing to do. The client keeps an undici Agent of its own, so that close() can release its sockets, but it sent its requests through Node’s global fetch, which is the undici Node bundles: 7 in Node 24, 8 in Node 26. undici changed, between those majors, the handler that fetch hands the Agent, and an undici 6 Agent, what the client’s ^6.21.0 installed, takes only the old one. fetch, Agent and Response now all come from the client’s own undici, so both sides of a request are always one undici, whatever Node bundles, and the dependency moves to undici ^8.12.4. A browser bundle, where undici cannot be imported, uses the global fetch as before.

JS client: consume() stops on a request undici refuses to send. fetch failed with UND_ERR_INVALID_ARG fails the same way on every pop, so consume() now rejects with it instead of waiting it out in silence. CI runs the whole unit suite on Node 24 and Node 26 (js-client-unit); until now it ran part of it, on Node 24 only. An application that cannot upgrade yet makes 2.9.0 and 2.9.1 work on both Nodes with "overrides": { "undici": "^7.0.0" } in its package.json: undici 7 takes both handlers. The broker and the other clients stay at 2.9.0.

JS client 2.9.1 - 2026-11-18

JS client: TypeScript declarations (#158). queen-mq now ships .d.ts files next to its modules, so TypeScript code gets typed APIs with nothing else to install: import { Queen } from 'queen-mq', and import type { Message, QueueConfig } from 'queen-mq' for the shapes. queen.queue<T>() types the payload of pushes, pops, consumers and reads; without a type argument the payload is any, as in JavaScript. A consume handler gets one message with .each() and the popped array without it, and the types follow that. Broker answers without a documented shape, most queen.admin calls among them, are unknown. The README said the package had TypeScript definitions; until this release it shipped none. No file of the client’s JavaScript changed: the runtime is the same as 2.9.0. npm run check:types checks the declarations against a strict and a loose TypeScript consumer and against the modules they describe, and CI runs it in the js-client-types job. The broker and the other clients stay at 2.9.0.

2.9.0 - 2026-11-17

Upgrading from 2.8.1: a rolling restart; the new features turn on by themselves once every node runs 2.9.0 (cluster version 8). Until then a where, a reading queue, headers and link are refused with cluster_version, and nothing a node writes changes form. Once the version moves, a 2.8.1 node no longer starts on the data: to keep the way back open while 2.9.0 proves itself, set QUEEN_RAFT_CLUSTER_VERSION_MS=0 on every node, and remove it when you stay. The JavaScript, Python, Go, Rust, PHP and C++ clients move to 2.9.0 and queen-protocol to 1.7.0; queenctl stays at 2.7.1 and the supervisor at 0.9.0, unchanged. The Jepsen campaign ran on the code of 2.9.0: 568 tests, every one the harness has, the standby failovers among them, all valid: 561 at their first run, 5 after the fixes below, and 2 with wrong answers under clock jumps of minutes counted, not judged (benchmark-queen/2026-11-16-jepsen-29).

Rust: request types gained fields (breaking for struct literals). queen-protocol 1.7.0, which the Rust client takes and re-exports, adds headers to PushItem, TxnPushItem, TimerOperation and SinkPushItem, and the variant KvReason::Expired. Code that writes one of those types as a struct literal no longer compiles: build it with new(...) and its setters (.partition(), .transaction_id(), .headers()), which work on 2.8.1 too, or add headers: None; a match on KvReason needs an arm for Expired. The Rust tutorials now build them that way.

Routing without copies: filtered groups, reading queues and link. A consumer group can take only the messages a where takes (.group('billing').where('data.kind', '=', 'order.paid')), fixed at its first pop. A queue can read other queues (config({ from: 'orders', where: "data.country = 'IT'", partitionBy: 'same' })): it gets a link to every message its where takes, in the same commit as the push, with its own leases, retries, dead-letter queue, groups and token; partitionBy: 'data.customerId' gives the same messages another order, from: [...] merges queues in commit order, start: 'all' starts with history. A transaction can forward the message it holds into another queue with link, without sending its payload again. A link is written once at the source and costs about 20 to 80 bytes, whatever the payload weighs; the source keeps the message, and its completed retention waits for its readers. Why: a reader that wanted some of a queue read and acked all of it, and routing meant a router process that copied every message and added a commit per batch.

A stream’s .to() writes a link when its result is its input message unchanged ({ link: false } writes copies), and the feed shows a reading queue’s and a link target’s messages read through their links. A link a partition already holds is a no-op, not a duplicate rollback. Every pop of a filtered group says "filtered": true, an empty one too, so a client stops on a broker that would ignore its where; group listings show a filtered group under its queue with its where, and a queue’s page shows its readers’ ages, its holders and a catch-up’s progress.

A queue its consumers popped first can become a reading queue. from on an ordinary queue is accepted while no message was ever pushed to it, and refused once it holds messages. Why: a pop of a queue that does not exist creates it, so a consumer that started before the configure call made the name an ordinary queue, which could never become the reading queue it was waiting for (found by the Jepsen tests).

Lag and backlog with filtered groups, and unread. A filtered group’s lag and depth count only the messages its where took, on the partitions it took them from, under its queue’s name (the group listings, /depth?group=, queen_consumer_group_lag_*). A queue’s pending is, partition by partition, the most that one of its groups, its own or filtered, has not consumed, plus every unread message. unread is new: the messages on partitions that no group of the queue reads and no reader’s where can take (messages.unread on the queue list and the overview, totals.unread and each partition’s unread on a queue’s page, unread on /depth); the console marks such a queue “No reader”. A filtered group’s own storage shows in no listing, chart or metric, and a pop by namespace or task hands a filtered group’s messages out once. Why: a filtered group that counted the whole queue as its lag would look behind for ever, and the partitions nothing reads are the gap worth seeing.

Headers. A message can carry headers, a map of strings stored in clear beside its payload (headers: { type: 'order.paid', traceparent: '...' }), returned by pop, fetch, the feed and the message browser, readable by a where without the payload (so on an encrypted queue too). A timer takes them and its message fires with them; a dead letter keeps them and its replay sends them again. Kafka records keep their headers as before, and their UTF-8 ones are also stored as Queen headers. A refused push item now says why, as error. Why: without headers, trace context and routing facts lived inside payloads.

A MySQL source, in the broker. The broker streams MySQL tables into queues by reading the binlog the way a replica does, with no other process: PUT /api/v1/connectors/:name with "engine": "mysql". Each committed row change is a message in the partition named after the row’s key, in commit order, shaped like the PostgreSQL source’s with gtid in place of lsn and xid; the rows already there are copied first (snapshot: "initial") while the binlog streams, with no lock. A MySQL transaction’s changes and the GTID set the source reached commit as one QueenMQ transaction, so after a crash nothing is lost and nothing is sent twice. A rename stops the source, an ALTER is followed, and text is read in its column’s charset. It needs MySQL 8.0 or later (8.0, 8.4 and 9.7 tested; not MariaDB) with GTIDs on and binlog_row_metadata=FULL, and QUEEN_ENCRYPTION_KEY, which seals the stored password. Why: getting changes out of MySQL usually means Debezium, a Kafka Connect cluster and Kafka.

One planner on every thread: the footprint scheduler. The leader’s lanes (pid % 8) and its one control step are gone. Before a cycle is planned, every command names what it reads and writes (a partition, a queue’s settings, a KV key, a timer, a cursor); commands that share none of these plan at the same time on QUEEN_PLANNER_THREADS threads (8 by default, QUEEN_LANES is still read), and the entry holds every command in batch order, as one thread would have planned it. A check after planning compares what each group touched with what the others wrote, and plans that part of the batch again on one thread when they met. Transactions that ack, push and write KV or timers, KV calls, timers, pushes to queues that others read and first pushes to new partitions no longer wait for one thread. Followers apply the entries as before: no cluster version, a rolling restart. Why: the control step was the transaction ceiling, about 70 µs a transaction on one thread whatever the machine’s size.

Connections, commits and transactions a second. Prometheus gets queen_connections, queen_connections_max, queen_connections_accepted_total and queen_connections_refused_total by listener (broker is PORT, proxy is the embedded proxy’s own port), queen_raft_committed_entries_total (one log entry is one commit; take the max over the nodes, never the sum) and queen_process_transactions_total by outcome (committed, rolled_back, refused, error). The console’s Cluster page charts the three for each node, the cluster chip in the band shows the commits a second, and the Overview lists commits and connections. Each node’s entry in GET /api/v1/raft/members carries the same figures as work. Why: how many clients a node holds, and how many commits and transactions it does in a second, showed nowhere.

The sign-in page has the console’s look. It opens in the theme and the areas the console’s theme chip saved in this browser; with nothing saved, in the console’s first look, Soft with Tone areas. Its colours are the console’s, and its sign-in button is white, as the console’s main buttons are. Why: the page still wore the old dashboard’s colours and yellow button after the console replaced that design, so signing in and out jumped between two designs.

Fixed: maxWaitTimeSeconds and a short retention on a busy partition. A partition that took more than 1,000 pushes inside its dedup window stopped removing messages when the queue said: maxWaitTimeSeconds, retentionSeconds and completedRetentionSeconds then removed a message only about when its dedup row left, an hour later by default. Retention now starts at the oldest message the partition still keeps. Why: a step read its 1,000 rows from the oldest dedup row, and on a busy partition those were all rows of messages already removed (found by the Jepsen tests, in 2.8.1 too).

Fixed: a KV write with a TTL that is committed late. A put or putIfAbsent with ttlSeconds now answers expiresAt, and one the cluster committed after its lifetime was over answers applied: false with reason: "expired". A lock acquire in that state is made again inside the call; a renew answers lost. Why: a TTL is counted from when the leader plans the write. A write committed seconds later, across a leader change, was answered applied: true although it had already expired, and the next putIfAbsent or lock acquire won at once: two holders (found by the Jepsen tests, in 2.8.1 too). A transaction’s KV operations are answered as before: the transaction committed. The Rust SDK’s KvReason gets Expired (a Rust client older than this release cannot parse that answer and returns an error for it) and the Go SDK KVReasonExpired.

Fixed: a transaction’s KV reads answer what was there at its place in the log. A get or getMany in a transaction’s kv now sees every write committed before the transaction and the transaction’s own writes, and nothing written after it, as a POST /api/v1/kv call’s reads already did. A transaction that only reads now takes a place in the log too. Why: the reads were answered once the transaction’s log entry had applied on the node, and by then the commands planned after it could have applied as well. Two transactions sent together, each reading the key the other writes, each saw the other’s write, which no order of the two explains (found by the new Jepsen test W32, Elle on /api/v1/transaction, in 2.8.1 too). What a transaction writes and the conditions on its writes were never affected: those are decided in the log’s order.

Fixed: a pop nobody waits for takes no lease. When a node stops or dies, the leader drops the long-poll pops that node had forwarded to it, and a PostgreSQL sink’s worker that stops no longer leaves its pop running. Why: such a pop went on waiting, took the next messages and answered nobody, and their partitions stayed leased until the lease ran out: 60 seconds of nothing written for a sink after a restart (found by the Jepsen tests, in 2.8.1 too).

Fixed: a log line that cannot be written no longer kills the broker. When the broker’s output could not be written (its log file on a disk that filled up, a pipe whose reader was gone), the process aborted at its next log line and left no message. Such a line is now dropped and the broker goes on; a node whose disk is full stops the way the recovery page says. Why: the logging library reported the failed write on stderr, that write failed too, and the failure counted as a crash. In the Jepsen disk-full tests 13 of the 21 nodes a full disk took out had died this way, with no acknowledged write lost (in 2.8.1 too).

Fixed: a node a full disk stopped starts again. Restarted after its disk was freed, such a node could refuse to start for good (raft storage failed to open: ... Failed to get log entries), so the recovery page’s “grow the volume and restart it” did not work. Why: the raft log writer saved the commit point that came after a group of entries even when that group had failed to reach the disk, so the point said more than the disk held, and at start the node looked for entries it never wrote. The writer now saves no commit point once a write has failed, and at start a commit point past the last entry on disk counts as unknown: the leader sends it again. Nodes already left in that state start again with this release. No acknowledged write was lost: the other nodes held the entries. Found by the Jepsen disk-full tests on 2.9.0-beta.1.

Fixed: deleting a queue with filtered groups deletes it. The delete answered deleted: true, but only the first of its filtered groups’ hidden queues went: the queue itself stayed, with its id and its messages, and a push of a transactionId it held came back duplicate. Deleting a filtered group could leave its hidden queue the same way. Why: the delete sent each hidden queue’s delete and then the queue’s own under the request’s one id, and the broker answers a request id it has seen as the replay of that command, without running it. Each one now goes as a command of its own. Plain, encrypted and normal-group queues were not affected.

Fixed: a dead letter always carries its message. A message dead-lettered by a failed ack that spent its last retry, or by a dlq ack, could be filed without its payload: the DLQ listed it with its transaction id and data: null, on every node. Such an ack is now refused with a 503 (the SDKs send it again) and nothing moves, and the retry files the message whole. Why: the node that takes an ack copies the message from its own log into the dead letter, and a node that had not applied that message yet (a follower serving its own clients, or a leader just elected, while its read barrier failed) sent the copy empty, and the leader filed it. Found by the Jepsen DLQ tests during a graceful restart of the leader (2 of 10,418 dead letters; in 2.8.1 too).

Fixed: a node that receives a snapshot while it starts restarts to load it. A node that came back after a long absence and was sent a snapshot before it had finished starting logged FATAL: raft storage failed to open: ... installing the snapshot at ... and exited with code 1. It now exits with code 75, like a running node that receives a snapshot, and its next start loads the snapshot. Why: the start treated the restart the snapshot asks for as a failure to open. No data was involved, but a FATAL that reads like a broken disk could send an operator to the recovery page, and a supervisor that restarts on 75 only left the node down. Found by the Jepsen membership tests (in 2.8.1 too).

Fixed: a change of voters finishes even when its request goes away. A membership change, such as promoting a standby, is made in two steps, and the second ran inside the request: a change whose request ended first (its timeoutMs, the operator’s connection closing, or the follower that forwarded it restarting to load a snapshot) stopped between the two. The group stayed joint and refused every later change with 409 in_flight until an operator finished it, and after a deadline the leader paused its writes for up to two minutes. The change now runs on its own until both steps are taken; a request that ends first answers 504, and the leader goes on. Found by the Jepsen standby test (in 2.8.1 too).

Fixed: an ephemeral partition that moves loses no message and hands none out twice. While a partition moved to another node (a restart, a rolling restart, a node joining or leaving), the new owner could take a push before the old owner’s ring arrived. Its new ring knew only the consumer groups that had popped there, and freed a message as soon as they had taken it, so a group whose cursor was on its way in the old ring never got it. And when the old ring landed in one that already held messages, every group was handed again what it had already taken on the old owner: a commitOnDelivery group got messages twice. A ring created while partitions may still be moving now keeps what its groups take until the old ring lands, or for 10 seconds, and each group’s place, with what it already took, travels with the ring, also when it moves twice. Found by the Jepsen ephemeral tests (restart, kill, partition and pause), in every campaign since 2026-11-14; in 2.8.1 too.

Fixed: an acquire takes one permit and answers it as new, even when a node’s clock runs ahead. When the clock of the node that took an acquire ran ahead of the leader’s by more than the lock’s lifetime, a lock could be answered already: true for a permit the call had just taken, and a semaphore could give the same owner a second slot, whose next acquire was then answered already with the first. Why: that node judged the acquire’s own write expired, read the slots again, judged its own row expired too, and went on to another slot. The acquire now writes the slot it landed in again first, and the leader judges that write on the clock that stamped its lifetime. Found by the Jepsen lock and semaphore tests under clock faults far past the 500 ms the cluster allows; 2.8.1 does not have it (it came with the fix above that answers a late write as expired).

Fixed: a busy broker with a long dedup window no longer stops after a few minutes. The memory the leader gives to finding duplicates fast (QUEEN_RAFT_DEDUP_FRONT_MB) now defaults to a quarter of the broker’s memory (its cgroup limit, else the machine’s RAM), never under the 4 GiB it was before, and the broker logs a warning, at most once a minute, when that memory runs out. Why: past 4 GiB a busy partition checked every message it was pushed against its whole dedup window, about half a second a push, and stayed that way while it was written to. Three raft groups at 4 million messages a second with a 15-minute window, on 90 GB nodes, went from 4 million messages a second to none after 8.5 minutes, with 45 GB in use and nothing in the log (in 2.8.1 too).

2.8.1 - 2026-11-11

Upgrading from 2.8.0: a rolling restart, nothing else. Nothing in the raft log or on disk changes form (cluster version 7): the new proxy rows (px.keys.policy, px.keys.previous, px.blocks) are KV rows like the others. A 2.8.0 node knows no scoped key and no client token and refuses both, so make scoped keys once every node runs 2.8.1. The JavaScript, Python, Go, Rust, PHP and C++ clients move to 2.8.1 and queen-protocol to 1.6.0; queenctl stays at 2.7.1 and the supervisor at 0.9.0, unchanged.

Devices and browsers get a token of their own: scoped keys and client tokens. A scoped API key holds grants instead of scopes: some queues, partitions, consumer groups, KV keys and timers, each with what may be done there (produce, consume, read, write), where {sub} stands for the client. Your backend mints a client token per device or user with it (POST /api/v1/tokens, {sub, ttlSeconds}): a qt_ token that reaches the key’s grants with {sub} filled in, an hour by default and never longer than the key’s ceiling (token_ttl_max_s, a day by default). The proxy hands the token’s scope to the broker, which checks every name a push, pop, ack, transaction, KV call or timer call touches, and answers 403 scope_denied naming the one outside it; other routes answer 403 forbidden. Revoking or narrowing the key reaches its tokens within a second on every node; blocking one client (px.blocks) refuses its tokens with 403 client_blocked; a key rotates in place, its tokens untouched, the old secret kept for a grace of up to 7 days. A scoped key can cap its clients’ rate, all together and each one (limits, 429 client_rate_limited). A second, verify-only signing key (QUEEN_PROXY_JWT_PREV_SECRET or QUEEN_PROXY_JWT_ED25519_PREV_PUB_PEM) changes the proxy’s key without ending sessions or tokens. Why: a device in the field cannot hold an API key, and one leaked device must not read another’s data.

The console makes and manages them. Settings › Access makes a scoped key from a form of grants, edits its grants, limits and token ceiling, rotates any key with a grace, and lists, blocks and unblocks clients. The control plane gains the same calls (PUT /api/cp/keys/:id/policy, POST .../rotate, POST .../blocks, DELETE .../blocks/:sub, GET /api/cp/clusters/:id/blocks).

Every client takes a token function, and mints. In JavaScript, Python, Go, Rust, PHP and C++, the bearer token can be a function that fetches one: the client calls it before its first request, again 30 s before a client token’s exp, and once after a 401, when it sends the request again. One fetch at a time, shared by every HTTP client the SDK makes; a function that fails ends the request unsent, without blaming the node. tokens.mint() calls POST /api/v1/tokens. queen-protocol gains the grant and token types (scope). Why: a token that expires every hour must be replaced without the application noticing.

A queue’s page moves its consumer groups. Its Consumer groups tab opens a group beside the list, in the same panel as Queues › Consumer groups, with the same actions: skip what waits, seek to a time, move one partition, delete it here or everywhere. One partition can now go back to a time as well as to its newest message (the broker’s partition seek always took {timestamp}), and “Seek one partition…” reaches any partition, not only one behind. Why: the queue’s page is where you look when a queue misbehaves, and you had to leave it to act.

A message opens in a panel about half the page wide. On a queue’s page and in Queues › Messages an open message takes a little more than half the width and stays in view while the list scrolls; its payload takes the height the window leaves, never less than before. On a busy queue’s page it no longer closes when it leaves the newest 20. Why: a payload is read, and a 360-pixel box made it scroll inside itself.

On a phone, the bottom of every console page is in reach. The console was as tall as the window with the browser’s bars hidden (100vh), so while they showed, the bottom of the page sat under them; it is now as tall as the window you see (100dvh).

The Overview shows how the cluster runs, under what needs you. Where the traffic is: the busiest namespaces by arrivals over the last hour, each with its rate in and acked, and one click to the Queues page filtered to it. The cluster underneath: each node with its disk and how far it is behind (or how long it has been up), the version they run and where a disk stops writes. In this cluster gains the streams and the connectors, each saying how many need you. The page stays one screen down to 1280x720: a shorter window shows two of each list, the rest behind “more”. Why: the Overview said what was wrong, but not where the work was or how the nodes under it were.

A namespace’s row on Queues adds up its queues. What waits, the oldest, what arrived and was acked in the last hour, the dead letters, the partitions, the consumer groups and one traffic line for the whole namespace. Why: with dozens of queues in a namespace, you read the namespace first.

The audit log keeps its order. Settings › Audit log lists the newest entry first, but logouts, and a scoped key’s policy, rotation and block entries, were stamped by a second clock and could list below an entry recorded just before them. Every entry now reads one clock.

2.8.0 - 2026-11-08

Upgrading from 2.7.1: a rolling restart, nothing else. Nothing on disk changes (cluster version 7), so 2.7.1 and 2.8.0 nodes run side by side during the roll. The tenant feed (POST /api/v1/feed, served by followers) is new: a node still on 2.7.1 does not have it, so start feed readers once every node runs 2.8.0. The JavaScript, Python, Go, Rust and C++ clients move to 2.8.0; the PHP client stays at 2.7.0, queenctl at 2.7.1 and queen-protocol at 1.5.0, unchanged.

Feed streams deliver their results in batches: .foreachBatch(). .foreachBatch(fn, { maxItems, maxWaitMillis }) ends a feed stream like .foreach(), but calls fn with up to maxItems results at once (1000 by default), each { value, ctx, id }: value and ctx are what .foreach() gets, and id is the id a .to() output of that result would have. By default a batch is what one read brought; with maxWaitMillis it also waits for the next reads, until it is full or its first item has waited that long, and nothing commits while it waits. The position moves in the commit right after fn returns, so a crash before then delivers the batch again with the same ids. A batch that throws is tried again whole (retries), then item by item, so onPoison meets only the item that fails (‘stop’ commits nothing of the batch); stop() delivers the batch that waits. In JavaScript, Python (.foreach_batch()), Go (.ForeachBatch()) and Rust (.foreach_batch()), checked by 12 new cases of clients/conformance/feed; metrics() gains batches and pendingBatch. Why: a database or an API takes a thousand rows in one call much faster than in a thousand calls, and a position saved before the call returns could lose them.

The console knows that a feed stream reads a queue, and its rates count quiet minutes. A feed stream reads without a consumer group, so the Queues page, a queue’s page, the Overview and the Workload page called every queue it reads “No reader” and counted all its messages as waiting. Now each queue a feed stream reads (by the queues its description names, patterns too, and its table joins) says so: State “Feed stream” while one of its streams runs, “Feed stopped” when their processes stopped them, and “Feed down” when none runs. “Feed down” needs you, like “No reader”, only while the queue holds messages. Waiting shows “–” for a queue only feed streams read, since no group acks it, and a queue’s page names its streams and links them. The rates a second on the Overview, the Queues page, a queue’s page and the Streams page also counted only the minutes that had traffic: a two-minute burst read as its own rate for five minutes after, and an hour later on a quiet queue. A quiet minute now counts as 0, and a chart’s “In a second” is its window’s mean. Why: a queue a stream processes is not a queue nobody reads, and a rate that ignores the quiet minutes is not the rate.

The feed through the proxy. The proxy used to block POST /api/v1/feed (an API route it had no rule for), so queen.feed() and Stream.fromFeed() could not run behind it. It is now a consume route, like /api/v1/fetch: a Viewer cannot read every queue’s messages through it. A cluster’s leader answers a feed read 421 and names its followers, which nothing behind the proxy can reach, so the proxy sends x-queen-feed-relay: 1 on every feed read, and a leader that gets that header hands the read to a follower and passes its answer back. The relay names the tenant the leader resolved, never the one the caller sent, and proves it to the follower with the cluster token. A client that talks to the brokers directly still gets the 421 and goes to a follower itself, so the leader does no feed work for it. Why: behind the proxy a feed read landed on any node, and on the leader it failed.

Feed streams in the Python, Go and Rust clients, with the JavaScript engine and its records. Stream.from_feed (Python), streams.FromFeed (Go) and Stream::from_feed (Rust) run what Stream.fromFeed runs: routing, windows, patterns, joins, gathers, table joins, event time, any number of stateful steps, snapshots and replay, one runner per queryId with standbys, the poison policy, shards and live state; client.feed(), q.Feed() and queen.feed() read the tenant feed and go to a follower by themselves. The position record, the snapshots, the state, the output ids, <queryId>#about and the live-state questions mean the same in every client, so a stream can stop (or die) in one client and go on in another with the same queryId, and Stream.view in any client asks a runner of any client. clients/conformance/feed checks it: a broker in memory over HTTP, 52 cases plus 9 on a real broker, run against each client and with the clients taking turns inside one case; the JavaScript client’s results are the expected ones. The Rust client adds the flate2 dependency (deflate, for the snapshots). Why: a stream belongs with the service that owns its data, in that service’s language, and moving it must not lose its state or send a result twice.

The console lists feed streams, and a feed stream’s records say what the console needs. The Streams page shows feed streams (Stream.fromFeed) beside queue streams. It reads their keys in queen-feed and their locks, never the running process: whether a runner holds the stream (its host and pid, per shard), how far behind its last commit was, what each step holds, the state it saved, and why it stopped, with the message, the error and the tries when it stopped on a message that kept failing. A stream with no runner, a runner that holds its lock and writes nothing for a minute, and a poison stop are marked as needing you; a runner that has not committed yet is found by its lock. For this the JavaScript runner writes <queryId>#about (what the stream reads, its steps, where its results go) in its first commit after it becomes active, and its position record gains readTo (the feed time the position is at), caughtUp, open and held per step, and stopped ({reason: 'poison', error, attempts, position, queue, partition, offset} or {reason: 'stop'}); a poison stop and a stop asked by stop() now always commit, so the record says so. Why: a feed stream runs in a process the broker does not know; before this, only raw KV keys showed it.

The tenant feed: every push of a tenant’s queues in one order, read from followers. POST /api/v1/feed answers the pushes to a tenant’s queues (all of them, or names and * patterns) in the order the log committed them, each with its position: the log entry that wrote it, one number across every queue, shared by the pushes of one transaction. A read starts at a position, now or earliest, can keep only since a time, some partitions, or the messages a where holds for (data.country = IT, data.total > 100, partition prefix booking-), long-polls with maxWaitMs, and answers next, caughtUp and resolvedTs. Nothing is leased or moved: every consumer group still gets its messages. It reads the queue logs on disk, never past the answering node’s applied index, and only followers serve it: the leader of a cluster answers 421 feed_on_leader with the followers to ask (QUEEN_FEED_ON_LEADER=true lifts it on a test cluster), so readers add no load to the node that orders the writes. The JavaScript client has queen.feed(options), an async iterator that goes to a follower by itself, and Stream.fromFeed(queen, { queues }) with .where() sent to the broker (ops include !prefix): a stream whose position lives in KV (queen-feed) and commits with its output in one transaction. Not yet: kinds other than push (acks, KV writes, timers). Why: a router, a mirror or an audit over many queues needed a consumer group per queue and saw no order across them. Stream.fromFeed fails run() with no_feed_route on a broker without the feed, and says its cycle errors on the console when no onError is given.

Feed streams: routing, windows, patterns and joins, one process per queryId, and a policy for a message that keeps failing. .to() takes a list of queues or a function that picks per result (.to((o) => `orders-${o.country}`)), and every output commits with the position; a stream’s outputs carry ids with its own prefix, and its reads leave them out, so it never reads back what it wrote. Tumbling, sliding, session and cron windows with reduce/aggregate and keyBy run on the log’s clock, the commit time every queue shares: a window closes once that clock passes its end, nothing of it can arrive later, and on a quiet feed the stream writes its position at the window’s end so the broker’s clock moves and the window closes on time. .pattern({ start, then, within, onMatch, onTimeout }) waits per entity for a second message (“an order and no payment within 15 minutes” sends the reminder at the deadline) and .join({ left, right, within, select }) pairs two messages of an entity in either order; the entity is the partition name, so it spans queues. A chain whose stateful steps changed is refused while state is stored, unless reset (true, or a string to start over once). Each queryId has a lock (queen-feed/<queryId>): one process runs, another one waits and takes over from the stored position when the first stops or dies (lockTtl, 15 s), and every commit is guarded by the lock. A message whose function throws is retried 3 times from the state before it, then onPoison: 'stop' (the default: what came before commits, the stream stops at the message and names it), 'skip', or a dead-letter queue that gets the message and the error in the same commit. Commits come at once when caught up and every commitEveryMillis (1 s) while catching up. Why: two copies of a feed stream ran its .foreach() twice, a throwing function retried its page forever and stopped the stream, and a router, a window or a reminder over several queues had no clock they share.

Feed streams: two positions instead of the state at every commit, many steps, joins of many queues, gather, table joins, shards and live state. A stream’s record holds its committed position and the position of its last snapshot, the whole state written now and then (snapshotEveryMillis, 60 s, snapshotMaxEntries, 200,000 messages and at least as many as the state has keys, and at a stop) in deflated chunks under <queryId>#snap#..., named by the commit that moves the position; a new stream’s first snapshot is its start, with no chunk, and a state that did not change moves the snapshot’s position at no cost. A restart loads the snapshot and reads the feed again up to the committed position, sending nothing, so the state has no size limit but memory (the 2 MiB of KV buckets is gone; an old bucket record is read once and carried on). A stream chains any number of stateful steps, windows, patterns, joins, gathers and table joins, each step’s results being the next one’s messages, on one clock: a result happens when its window closed or its deadline passed, on every run and every replay. .join({ sides: { order: 'orders', paid: 'payments', sent: 'shipments' } }) joins any number of queues and names the missing sides at the deadline; .gather({ steps | count }) collects the parts of a run and remembers a finished one until its deadline; .joinTable({ queue, on, select }) joins every message with the latest row of a table queue as of the message’s own position; keep(msg, value) says what a waiting message keeps; .name() names a step. run({ shards: N }) splits a stream by partition hash, which the broker filters before reading payloads (shard: { count, index, queues? } on POST /api/v1/feed), each shard with its own position, snapshots and lock, or by any key with shardBy; the shard layout is kept and another one is refused unless reset, and every commit checks it, so a process on the old layout stops. A replay leaves out what the poison policy left out (kept with the position until the next snapshot). runner.state(step) reads the live state in process and Stream.view(queen, queryId).get(step, key) from anywhere, over ephemeral queues. from: 'now' is now the position when run() resolves, and stop() cancels the long poll in flight instead of waiting it out (5 s by default). Why: writing every window at every commit capped the state and cost a write per window, one process per stream was the ceiling, and joins of three queues, fan-in, lookups and “what does the stream hold now” each needed a second system.

Feed streams on event time: every stateful step can run on the time its messages carry. eventTime on a pattern, a join (of two sides or more) or a gather puts its deadlines on the messages’ own times, as windows already could. The step keeps a watermark (the latest event time seen, minus allowedLateness) and takes its messages in event-time order: each one that concerns it waits until the watermark reaches its time, so a comment that arrives before its issue still answers it. Sessions on event time take their messages in that order too; tumbling, sliding and cron windows take them as they come. Messages a pattern’s, join’s or gather’s tests do not take need no event time and move nothing. A message older than the watermark is dropped and counted (onLate: 'include' takes it at once). idle, on the first step on event time, lets the feed’s clock move the watermark on after a quiet spell, so a quiet feed closes its windows and passes its deadlines, and a finished import does too. A step after a step on event time runs on event time: a window’s result carries the time of its last millisecond, a timeout its deadline’s, a match the time of the message that made it (eventTime: false keeps a step on the feed’s clock), and its watermark follows that step’s, up to the oldest time that step can still send, so nothing it sends is late and every step closes in turn. Windows take allowedLateness as a duration too. The watermark and the held messages are in the snapshot, so a replay closes the same things at the same times: a day of 340,284 issues and comments pushed out of order, read by two streams killed with SIGKILL halfway, gave all 200,000 verdicts and 1,613 hourly counts once each, equal to the same day computed in batch. metrics().steps shows each step’s clock, watermark and held messages. A feed session window now closes the millisecond after its last message plus gap, so a message exactly gap later stays in the session; before, it did only with a gracePeriod. Why: history pushed today has today’s commit times, so on the feed’s clock a day of issues imported in five minutes was all “answered within the hour”, and a producer that sends late counted in the wrong hour.

Feed streams: snapshots that cost what changed, and metrics that cost the same at any size. A snapshot is a full layer, then deltas of the keys set or deleted since the layer before, and a full layer again when the deltas weigh as much as it or there are 16. A layer is written and read in pieces of about 256 KB of JSON, compressed off the main thread: no string holds the whole state (one JSON of it failed above about 3.9M window keys, at V8’s string limit), and the process keeps its lock and answers live reads while a big layer goes (a shard of 2.65M keys used to lose its own 5 s lock). snapshotMaxEntries no longer waits for as many messages as the state has keys. Snapshots of the old format still load, and the next one is a full layer. Windows, waits and runs that end at the same time close 2,000 at a time with the event loop turning between batches, in the same order, and a loaded state is indexed again in batches, so a shard of millions of keys keeps its lock through a load or a mass close. Their results no longer wait for one commit: once maxPendingOutputs results wait, they commit in the middle of the close, and the position record counts the closes made (units), so a process that takes over replays to that count and closes the rest, each result once (8M windows closing at one time made one transaction far over the broker’s 64 MiB body limit). runner.metrics() and Stream.view().status() read counts kept as the state changes instead of walking every key twice (at 4M keys, reading them every 50 ms had slowed a stream to 5.4k msg/s). On the broker, a feed read with a shard reads only that shard’s records of each sealed queue-log file, through the file’s index, instead of walking every record of the log (the file still being written is read through); and a long-polling feed read no longer sleeps to its one-second re-read when its watch was armed while the entry it waits for was being applied, or when the queue it names did not exist yet. Why: on three c4-standard-24 brokers, the state of one shard was the first limit feed streams hit, every shard paid for the whole log, and about 1% of caught-up reads at 200k msg/s woke a second late.

JavaScript client: one push across many partitions, and a buffer that holds under any load. An item may name its own partition (push([{ partition: 'hotel-1', data }, ...])); without one it takes .partition(), or Default, as before, and a bare object stays its own payload. A buffer now holds a whole queue, not one partition: each message keeps its partition and one batch carries them all, each partition in its own order. The client holds at most bufferMaxMessages (100,000) buffered messages before a buffered push waits, a buffered push gives the event loop a turn every 256 messages, and a message the broker refuses inside a batch is sent again, up to five times, then dropped and reported to onBufferError (else the console) where it used to vanish. Why: a producer that buffered pushes to 100 queues x 1,000 partitions in a while (true) loop made 100,000 buffers, each with its own bound, and never let Node run a flush timer: it ran out of memory in ten seconds without sending a request. The same loop now sends about 38,000 messages a second with a 373 MB peak.

2.7.1 - 2026-11-03

Upgrading from 2.7.0: a rolling restart, nothing else. Nothing on disk or on the wire changes (cluster version 7), so 2.7.0 and 2.7.1 nodes run side by side during the roll. The leader exports five more Prometheus families, the consumer group lag below; on a cluster whose groups hold more than 200,000 partition positions in all, they stay off (queen_consumer_group_lag_complete 0) until QUEEN_METRICS_GROUP_LAG_MAX_CURSORS is raised. The C++ client 2.7.1 changes its API (its README maps each 2.7.0 call to its new form); the JavaScript, Python, Go, Rust and PHP clients stay at 2.7.0, and queenctl moves to 2.7.1 for dlq redrive (next section).

Console: Refresh now, the Raft term and the store on Cluster, Expand all, and pages that fit a phone. The band has a Refresh now button beside the time window (or press R): every read on the page runs again at once, past the 25 to 60 s a read is kept, where before only the 30 s tick refreshed a page. Cluster says which node leads in which term, and a Log and store table lists each node’s last applied entry, its Raft log (size and files), how much of its store’s map is used (from 85% a node refuses writes) and its readers; the charts add the log’s size and the map’s use. Queues and Consumer groups have Expand all and Collapse all for the namespaces. Workload’s switch is Namespace or Task, and the whole tenant is the first two lines of its list, All namespaces (or All tasks) and All queues: the Queue option they replace showed the same list as Namespace, and the same rows once a namespace was picked. In the Tone look, the Overview’s cards and a hovered or picked row are rounded like every other area. On a phone, the account, time window, cluster and theme panels open inside the screen, the band keeps the same two rows on every page, the rail fits without scrolling (Settings moves to the account menu), and the Cluster, Streams and queue tables show the columns that fit. Why: there was no way to ask for fresh numbers now, the term and the store were a click per node away (the 2.6 System page showed them), and on a phone the account menu, so Sign out, opened off the screen.

Consumer group lag in Prometheus, with a Grafana board and alert rules (queen-mq/queen#146). At every metrics bucket (METRICS_FLUSH_MS, 60 s) the raft leader exports, per queue and consumer group, queen_consumer_group_lag_messages (what the group has not consumed), queen_consumer_group_lag_seconds (how old the oldest of those is) and queen_consumer_group_partitions_behind. A group counts on every partition of its queue from its subscription start, also on a partition it has never read, so a new entity’s messages while every consumer is down are lag, and messages from before the group subscribed are not (the consumer groups list counts only the partitions a group has read from). One pass over every group’s position per bucket, capped by QUEEN_METRICS_GROUP_LAG_MAX_CURSORS (200,000; 0 turns it off): past it the leader exports queen_consumer_group_lag_complete 0 and no per-group series rather than a part. deploy/grafana/queen-consumer-lag.json is a board on these series and deploy/prometheus/queen-consumer-lag.rules.yml three alerts, at the console’s lines (one minute needs you, five minutes failing). Why: teams coming from Kafka watch consumer lag every day, and until now nothing could alert on a group’s backlog.

The console replays a partition’s dead letters in order (queen-mq/queen#147). Replay on Dead letters sends each partition’s rows oldest first, one at a time, with partitions side by side; it sent four rows at a time, so one partition’s replays could land out of order. queenctl dlq redrive (queenctl 2.7.1, next section) replays the same way, many rows at once. Why: a partition is one entity’s order, and a replay that shuffles it breaks what the queue promised.

The console lists the PostgreSQL connectors (queen-mq/queen#155). A Connectors page, after Streams in the rail: every source and sink with its state (Streaming, Snapshot, Running, Standby and the node that runs it, Failing), what it moves where, what it has moved, a source’s slot lag and its last commit; a row opens its error and what it says, its slot and pointer or its group and mode, and its document as stored, never the password. Read-only, from GET /api/v1/connectors; behind the proxy it needs the admin role. Why: a connector was visible only through the API.

RustFS for the S3 sink (queen-mq/queen#144). The sink’s tests against a real S3 server pass on RustFS 1.0.4, and deploy/compose/rustfs/compose.yaml starts RustFS, creates a bucket and copies a queue into it as Parquet; the S3 page says how, and what RustFS’s S3 Tables (Iceberg) are not. No code changed. Why: teams moving off MinIO asked whether Queen’s lake works on RustFS.

C++ client 2.7.1: the API of the Go and Rust clients, a connection pool, and HTTPS. A breaking change: the C++ client now has the shape of the other SDKs. queen::Queen (QueenClient stays as an alias) hands out typed values: pop() returns std::vector<Message>, push() takes one payload (push(payload, transactionId) with the dedup key, push_many, push_items) and answers one PushResult per message, and ack(message) reads the consumer group and the lease from the message and answers an AckResult, with nack, ack_with(AckStatus::Retry | Dlq) and ack_all. consume() hands over one message per call and consume_batch() the whole batch; limit() counts across the workers, concurrency(n) runs n threads (it was capped at the number of cores), a Cancel stops the loop, and it returns a ConsumeSummary. A transaction pushes to a partition and answers a TransactionResult. New: admin() (seek a group, retry a dead letter, the queue and group routes), every QueueConfig option (only the ones set are sent), KV get_many and get_prefix, timer peek and list, the affinity load balancing of the other SDKs (now the default), and locks that renew in the background (is_lost()). Fixed: an https:// URL was sent as plain HTTP, bearer token included; every request opened a new TCP connection (now a keep-alive pool: half the time per call over a 1 ms network, and no accept and close per request on the broker); a timeout under one second failed every request; pop() and the dead-letter reader answered an empty result for any failure; and every client installed SIGINT and SIGTERM handlers that exited without flushing or ignored SIGTERM (now opt-in, ClientConfig::handle_signals). nlohmann/json is vendored in clients/client-cpp/third_party/, clients/server/ is gone, and the CMake target queen::client finds or fetches cpp-httplib. The client’s README lists every change. Why: the C++ client was the one SDK whose programs called raw routes for common steps, and it could not reach an HTTPS endpoint at all.

queenctl 2.7.1 - 2026-11-03

queenctl dlq redrive: replay many dead letters with one command (queen-mq/queen#147). It takes the filters of dlq drain (--queue, --cg, --partition, --from, --to), reads every match first, then replays each row by its id, as the console’s Replay does: each partition’s messages go back oldest first, one at a time, so they keep their order among themselves, and partitions run side by side (--parallel, 4). --dry-run prints the plan, --yes is required, and it refuses more than --max rows (10,000). A second run replays only what the first left (each replay is dlq:<row id>), a message several groups dead-lettered needs --cg (one replay reaches every group), and it stops at the first refusal that would repeat (401, 403, 429). queenctl 2.7.1 is built against Go client 2.6.1, like 2.6.1, and its archives for Linux and macOS (x86_64 and arm64) and Windows (x86_64) are on the GitHub release queenctl 2.7.1. Why: after an incident a team replays hundreds of messages, and dlq retry takes one; the reason given for leaving bulk replay out (the route was not idempotent) no longer held.

2.7.0 - 2026-10-31

Before upgrading: what 2.7.0 refuses, trims or removes that 2.6 kept. Most of what 2.7.0 adds is a limit on something a client could grow without end; each is in the entries below and on Limits. Four can change what an application sees. Dead letters are removed oldest first past 100,000 rows, 1 GiB or 14 days in a queue (QUEEN_DLQ_MAX_ROWS_PER_QUEUE, QUEEN_DLQ_MAX_BYTES_PER_QUEUE, QUEEN_DLQ_MAX_AGE_S; 0 turns one off). A pop answers at most 10,000 messages and 64 MiB, and a push of more than 10,000 messages is refused too_many_items. A name whose store keys would pass LMDB’s 511 bytes is refused name_too_long, where 2.6 stopped every node. And a node near its memory limit answers 503 memory_pressure: page reads past 80 %, writes that grow the stored state past 90 %. Stream runners use claims once every node runs 2.7.0 and they restart (the last entry says why). Why: a broker that runs out of memory or stops on one bad key loses every client, so it now refuses the request first.

Streams: a window on a quiet partition closes, also after a restart and with several runners (issue #153). A stream’s idle flush used to know only the partitions its own process had read in the last five minutes, and it wrote with no lease. A window open when a runner restarted never closed (its result was never sent, and its state kept the partition from being cleaned up), and two runners could send one window twice or delete a window the other had just extended. The broker gains POST /streams/v1/claim, which leases idle partitions of a stream’s source queue with an empty batch: only when nobody holds them and the stream’s group has read all of them. A cycle that acks that empty batch (count: 0) closes the windows under the lease, and is refused whole when the lease is gone, like every cycle. POST /streams/v1/state/partitions lists the partitions holding a query’s state, so a starting runner finds the windows nobody tracks. The Rust, Go, JavaScript and Python clients use both: each keeps when every open window ends, claims the partition then, closes on the broker’s clock, and on an older broker falls back to the old flush; stop() waits for a close in flight. In Go, JavaScript and Python a processing-time session now closes on its messages’ createdAt, as in Rust, not on the process clock, so a backlog no longer splits it. On a cluster, a claim that reaches a follower is forwarded to the leader, where the leases live. Also fixed: a cycle naming a lease on a partition its group never read, or one that is gone, skipped the ack and committed its state and pushes with no lease; it is now refused (bad_lease). Why: a session per visit or per trace ends with silence, so closing it cannot wait for the next message.

Broker: no client request can stop the cluster. A store key longer than LMDB accepts (511 bytes) fails in apply on every node, and a restart replays the entry and fails again, until an operator skips it by hand. Several client names reached apply in longer keys than any receiver checked: a Streams state key over 485 bytes, an ephemeral/configure queue name, the consumer group of a seek, timers sent inside a transaction (their due index is 8 bytes longer than the key that was checked), quota and tenant names, and names whose 0x00 bytes are stored twice. The planner now measures every key each command makes apply write, derived keys and escaping included, and refuses a long one as name_too_long (4xx) before anything is written; the routes answer the same first. An admin command that carried one effect per row (DLQ purge, seek, group delete, a streams reset, a queue or tenant delete) is sent in chunks of at most 4,096 effects, and one over QUEEN_RAFT_ENTRY_MAX_BYTES is refused. Why: one request with a long key stopped every node.

Broker: one request can no longer use gigabytes of a node’s memory. A pop takes at most QUEEN_POP_MAX_BATCH (10,000) messages and stops at QUEEN_POP_MAX_BYTES (64 MiB, always at least one message); a fetch without maxBytes totals at most QUEEN_FETCH_MAX_BYTES (50 MiB); a push carries at most QUEEN_PUSH_MAX_ITEMS (10,000) messages. The message, dead-letter and trace pages write payloads as stored, with no JSON tree, up to QUEEN_READ_PAGE_MAX_BYTES (16 MiB) a page; a trace’s data is at most QUEEN_TRACE_MAX_BYTES (1 MiB). A zstd payload is decompressed with a limit, and a binary push is admitted at its inflated size. /depth and /consumer-groups/lagging list at most ?limit (1,000, up to 10,000) partitions, /status counts dead letters without reading their payloads, /messages refuses an offset past 10,000. Why: a read built many times its size in memory, and a few at once took a node down.

Broker: a KV read no longer builds a JSON tree of each value it answers. Reads are answered on the apply path, so they see the state at their entry; each stored value was parsed into a tree there and printed again by the route. The KV routes and the in-process Kafka facade now put each value’s stored text into the answer, checked without building a tree; the answer is the same, byte for byte. Why: a client reading large values made apply build them, and every write waited.

Broker: a memory guard and connection limits. Each node reads its cgroup memory limit and its anonymous memory every 250 ms. Past QUEEN_MEMGUARD_SOFT_PCT (80 %) heavy reads answer 503 memory_pressure with a Retry-After; past QUEEN_MEMGUARD_HARD_PCT (90 %) writes that grow the stored state do too. Acks, deletes, pops, renewals, health and Raft are never refused. At most QUEEN_HEAVY_READS_MAX (32) heavy reads run at once. The HTTP port holds at most QUEEN_MAX_CONNECTIONS (20,000) connections and closes one that sends no request headers within QUEEN_HTTP_HEADER_READ_TIMEOUT_MS (120 s); at most QUEEN_MAX_PARKED_POPS (50,000) long polls wait at once. Why: a broker that runs out of memory loses every client, so it now refuses work first.

Broker: state that clients grow has a bound. Dead letters: at most QUEEN_DLQ_MAX_ROWS_PER_QUEUE (100,000) rows, QUEEN_DLQ_MAX_BYTES_PER_QUEUE (1 GiB) and QUEEN_DLQ_MAX_AGE_S (14 days) per queue, oldest removed first. dedupWindowSeconds is at most QUEEN_MAX_DEDUP_WINDOW_S (7 days). The KV expiry sweep keeps going while it has expired rows (it removed at most 512 a second). A Streams cycle carries at most QUEEN_STREAMS_MAX_STATE_OPS (10,000) state ops; QUEEN_STREAMS_STATE_TTL_S removes state rows not written for that long (off by default). KV operations inside a transaction (a once() gate, a kv rider) take the tenant’s KV quota as POST /api/v1/kv does, and their own rate, QUEEN_KV_TXN_WRITE_RATE (10,000 a second, burst QUEEN_KV_TXN_WRITE_BURST 20,000); the Kafka facade’s own commit row takes neither. The Raft log cache counts each entry’s real size, and the retention scan finishes its rounds while partitions grow fast: a round is paced from the larger of the previous round and what it has visited so far. At 1,000 new partitions a second for ten minutes, one node held 63,000 to 69,000 partitions and deleted every one within 60 seconds of the end, where 2.6.0 kept 594,000 of 595,000 unless QUEEN_RAFT_RETENTION_SCAN_PER_S=40000 was set. Why: every row lives in memory on every node and is reloaded at start, so state that only grows ends in a node that cannot start.

Kafka facade: bounded requests. Before a client authenticates its frames are at most 512 KiB, and a frame or an idle connection times out. A produce batch’s record and header counts are checked against its bytes before they are decoded; fetches are clamped to QUEEN_KAFKA_FETCH_MAX_BYTES (50 MiB) and pass stored payloads through; a metadata answer lists at most QUEEN_KAFKA_METADATA_MAX_PARTITIONS (100,000) partitions and a request auto-creates at most 16 topics; offset requests are checked against their limits before anything is built; a group holds at most QUEEN_KAFKA_GROUP_MAX_MEMBERS (1,000) members; token checks are cached. Why: a client could make the broker reserve memory from counts it declared.

Kafka facade: one transactional id never waits for another. The transaction coordinator held one lock over every transactional id across its KV and commit calls, so one slow commit stalled every transactional producer, and the timeout sweep inside the 100 ms tick stalled group session expiry with it. Each id now has its own lock, the sweep runs on its own task and skips an id that is in a call, and an id idle for 10 minutes leaves memory (its row brings it back). The row keeps the producer’s transaction timeout, and expires 7 days after its last write, as Kafka’s transactional.id.expiration.ms. Why: a client minting transactional ids grew memory and KV rows without end, and one slow commit held back every other producer.

Ephemeral queues, proxy and PG connectors: bounded. An implicit inbox is removed after QUEEN_EPHEMERAL_IMPLICIT_TTL_S (600 s) idle even when it still holds messages, at most QUEEN_EPHEMERAL_MAX_QUEUES (100,000) queues exist, a pop answers at most QUEEN_EPHEMERAL_POP_MAX_BYTES (16 MiB), and messages and queues are charged their overhead. Long-poll wake gates are freed again when idle. The proxy reads no request body before the caller authenticates: a KV batch, read up to 16 MiB to tell the Kafka facade’s own batches apart, was read before authentication, so a caller with no credential made a node hold 16 MiB per open request. It is now read after, and only its names are scanned; a KV batch with no credential gets 401 where it got 403 feature_gated. Requests with no credential, or with one refused 401, share a per-address limit (QUEEN_EDGE_ANON_RPS_PER_IP, 20 a second); any Authorization header used to skip it. A PG source snapshot reads chunks of at most QUEEN_PG_SNAPSHOT_CHUNK_MAX_BYTES (64 MiB) and at most 10,000 rows; at most QUEEN_CONNECTORS_MAX (256) connectors exist. Why: each of these grew with what clients sent.

Broker and dashboard: network, disk and Raft traffic. System charts what each node moves per second: its network in and out (Linux), its disk reads and writes, and the bytes of its Raft port by channel: replication, forwarding, snapshots, the standby link and control. The Raft table gains a Traffic column, each node’s last minute, with the channels on hover. The same counters are on /metrics/prometheus: queen_raft_traffic_bytes_total{channel,direction}, queen_network_bytes_total{direction} and queen_process_disk_bytes_total{direction}. Why: a follower falling behind, a snapshot sent for minutes or a disk writing twice as much shows there before it shows as latency.

Dashboard: the Overview flags the cell, not only the queues. For an operator, the verdict and the Open issues list now include what is wrong under the queues, each row linked to System: a member being sent a snapshot, a follower behind or silent, voters unreachable or quorum lost, and a node’s disk, memory or CPU past its line. They are the lines that already coloured the top bar, which now also shows the bytes on the Raft port’s wire beside Raft, and per node in its panel.

Dashboard: dark cards stay near-black, the logo is smaller. The contrast pass keeps its brighter text and 11px floor, but the dark theme’s cards, inputs and borders are back to their earlier values; the Queen wordmark is 34px, centred in its row.

Dashboard: a list beside every page, and one place for each queue. The rail is a fixed column of icons, without Consumer groups. Each page lists what it holds in a second column, searched from its top, and picking a row opens that row without changing the list. A queue’s page has tabs: Overview, Messages, Consumer groups, Supervisors, Dead letter, Timers and Alerts, the last showing what needs you on that queue now and the lines it is judged by. The Messages, Dead letter and Timers pages are now those tabs, and the queue list filters by namespace. The Overview lists a summary card, open issues, the cell, throughput, backlog, consumer groups and dead letters. System lists Overview, Raft, Storage, CPU and memory, Disk and Network, picks a node on the views that chart one, and shows the broker version. Selects and checkboxes are the dashboard’s own in both themes, the side column is a sheet on a phone, and the rail and top bar are soft greys in dark and near the page’s white in light. Why: a list that stays put is faster to scan, and everything about a queue was spread over five pages.

Dashboard: one rule for what needs you, and each number said once. A queue whose acks fail over the last hour needs you, by its own ack lines: the verdict, the issues, the rail’s mark, the queue list and the queue’s Alerts tab all read the same rule, from one read of /api/v1/analytics/workload by queue every 30 seconds. The tenant’s ack failures are an issue of their own only when no queue’s acks explain them. The Summary is one status card (the verdict, five numbers and what needs you, each naming its queue), the counts (queues, partitions, consumer groups, messages stored, each with what it means now), and four charts of the range. Cell is a view of the Overview, and Backlog lists the deepest queues. A queue’s Dead letter tab says why its messages failed: the broker’s error signatures over its newest 200 rows, each with its share and its full text. List rows are plain, the picked one on the yellow tint, and zero counts are left out. Why: a queue failing every ack read “Nothing needs attention” under a Failing verdict, and one number was on the page up to four times.

Dashboard: charts in colour, and System’s nodes in one place. A chart with several lines draws the first in ink and the others in blue, aqua, violet and magenta, a set checked for colour-blind separation and contrast in both themes; Workload colours each namespace by name, the rest grey. System’s Overview holds every node (role, version, uptime and load, its addresses on hover) and four charts per node; Storage draws each node’s log and store over time, Disk the data disk’s use, and CPU and memory the workers’ event loop and the cell’s rows per batch. Why: three grey lines read as one, and a disk filling up showed only as a number.

Dashboard: a new console. Every page is redrawn around one question each, in one frame: an icon rail, and a band with search (⌘K), the cluster with its nodes’ CPU, memory, disk and network, the time window (live, a preset, a from-to, or a drag across any chart) and the theme. The Overview says what needs you and why (a cause, still happening or not, how a backlog spreads over partitions), on one screen. A queue’s page holds its groups, partitions, messages, dead letters, timers and options. Queues lists them by namespace and never re-sorts under you, beside every consumer group (with seek, skip and delete), the workers that publish their pools (the former Supervisors page), the newest messages of every queue, and each ephemeral queue. Dead letters groups them by cause across queues, with replay, discard and download. Streams, Workload, Entities (a traced entity’s timeline across queues), State (keys, locks, timers), Cluster and Settings (access, alert lines, users and tenants, with adding users and changing their roles) complete it. Every action shows what changes, the cluster and the HTTP call before it runs, and the broker’s answer after. Colour only says what will not fix itself (amber) or is failing (red); charts are white and grey. Themes dark, soft and light; areas by tone (the default) or by lines; IBM Plex, served with the app, and no font from Google. The previous design is gone: its addresses (/consumers, /messages, /supervisors, /ephemeral, /system, /kv, /users, /classic/…) open the new pages. Why: the console should say what needs you and why before you open anything, and show the call behind every button.

Broker: GET /streams/v1/queries lists a tenant’s streams. Each registered stream with its source and sink queues, its config hash, and what its state holds now: the partitions with state, the open windows, and the windows that ended more than five minutes ago and never closed (with the oldest). Read-only; one read counts at most 200,000 state rows, past which a stream’s counts are a floor ("exact": false). Why: the console had no way to list streams, and a window that never closes is a result that was never sent.

Broker: each node records its disk use. Every minute’s sample of a node now carries its data disk’s used and total bytes, as the write gate measures them, served by /api/v1/analytics/system-metrics as disk.used_bytes and disk.total_bytes. The history starts at the upgrade; older rows read as missing, and a node rolled back keeps them. Why: the dashboard can draw a disk filling up only from a history.

Broker: large stream states and fetches no longer use many times their size in memory. POST /streams/v1/state/get and POST /api/v1/fetch parsed every stored state and payload into a JSON tree and copied the tree two more times before printing it: a read held 19 to 25 times what it returned. POST /streams/v1/cycle held about 10 times its body. Window states of tens of megabytes, read on every cycle and every idle flush, took a leader past its memory limit, and then each new leader. These routes now check each stored document with the same JSON rules and write it into the answer as stored, so a read holds about its own size. The answers are the same JSON. A fetched payload keeps the producer’s key order, spacing and number digits, as a pop always returned it, and a cycle stores its state and sink payloads as the SDK sent them.

Broker: a stream state value above 16 MiB is refused. A Streams cycle with a state value larger than QUEEN_STREAMS_MAX_STATE_BYTES (16 MiB by default) answers 413 state_too_large and stores nothing, its pushes and ack included. Why: a window’s state is read and written whole on every cycle of its partition. A delete is never refused.

Broker: a long poll of a partition by name wakes when the partition has work again. After a pop that named the partition (.partition(...) in the SDKs), a long poll of that partition that was already waiting was not woken by a push, by the end of a failed ack’s retryDelay, or by the end of a delayedProcessing or windowBuffer hold: it answered empty at its timeout, and the next pop got the message. A retry could so wait the SDKs’ 30 s poll timeout instead of retryDelay (1 s by default). On 2.6.0 such a long poll with a 3 s timeout answered empty after 2.7 s; it now gets the failed message after about retryDelay. Long polls of the whole queue, and those after a pop of the whole queue, were not affected. The push case is older than 2.6.0: 2.5.0 has it too.

Docs: rebuilt from the little book of QueenMQ. The site now follows the book, chapter by chapter: introduction, writing applications, patterns, integrations, managing clusters and architecture, with every example in JavaScript, Python, Go, Rust, PHP and C++, cut from programs that run against a broker and check their results (examples/tutorials/run.sh). The book is a free PDF at queenmq.com/book. Every page of the old tree redirects to the page that now answers its question.

JavaScript and Python clients: a consumer waits out a broker that cannot answer, instead of stopping. While a cluster elects a leader, pops are answered 503 (timeout, “the request deadline elapsed”, or no_leader) for seconds to minutes. consume() retried only a 429 and a refused connection: any other error stopped it, and a process that stayed up consumed nothing until it was restarted. A pop answered 408, 429 or any 5xx, a timeout, or a dropped connection now waits and polls again, for as long as it takes: the broker’s Retry-After when it sent one, otherwise 1 s doubling up to 30 s, ±20 %. Each failed pop logs a warning (pop-failed-retrying) and the first answered one logs pop-recovered. A 4xx and a 503 raft_phase1_unsupported still stop the consumer. The Go, Rust and PHP consumers already polled again after a 503.

Go client: a guarded step no longer rolls back while its lock is held, after a slow renew. The background renew gives up after RenewEvery (a third of the lifetime by default). A renew slower than that could still land on the broker: the lock’s token moved and the handle kept the old one, so a step with Guard(lock) rolled back, Success: false with no error, until the next renew answered. The step now renews with the token it has, which the broker carries through for the same owner, and is sent again with the current token.

Supervisor fixes made after supervisor 0.8.1, which PHP client 2.5.0 pins: they ship with the next supervisor release.

Clients 2.7.0. The JavaScript, Python, Rust, Go, PHP and C++ clients are 2.7.0 and talk to any 2.x broker. PHP client 2.7.0 pins supervisor 0.9.0, which carries the supervisor fixes below, and the Rust client takes queen-protocol 1.5.0, with the stream claim types. Stream claims need a 2.7.0 broker: on an older one a runner falls back to 2.6’s idle flush of recently read partitions.

Laravel and supervisor: a SIGTERM during a broker call reaches the workers sooner. A SIGTERM that arrived while the master waited on the broker, for a heartbeat, a depth read or a status publish, reached the workers only after the rest of that pass, http_timeout per URL for each call, so a node drain during a broker outage could outlast terminationGracePeriodSeconds. The Rust master now runs those calls on a thread that a stop abandons, so its workers get SIGTERM at once; a request that panics on that thread is not taken for a stop. The PHP master signals its workers from its signal handler, which PHP runs once the call in progress returns: at most one http_timeout later.

Laravel and supervisor: a pool is refilled at once after a deploy, and a clean exit is replaced while a probe runs. A worker that exited counted as a scale-up step, so an auto pool that lost most of its workers at once, as at queue:restart, came back one balance_max_shift per balance_cooldown; and while a crash held the restart circuit, no worker was replaced, so workers that stopped at --max-time left the pool shrinking to the probe. In both engines a worker that left as expected (at queue:restart, its memory limit or Laravel’s job timeout, or after it ran stable_after) is now replaced outside the budget and whatever the circuit says, up to the size the pool had. Any other exit, even with status 0, waits for both as before: Laravel’s worker exits 0 when it loses its database, every second through an outage. A scale-down that stops the probe keeps the circuit’s failure count.

Laravel and supervisor: a master that is PID 1 reaps the orphans it inherits. In a container with no init process, as a Kubernetes pod is, a process a job started and left behind, or the lease helper of a killed worker, reparents to the master, and its zombie kept a pid until the container had none left to start a worker with. On Linux, both engines now reap every zombie child they do not track when they are PID 1, and the Rust master also when it is a child subreaper; their own workers and fork servers keep their exit statuses.

Laravel and supervisor: a status that cannot be written no longer drains every worker. One failed write of status.json, on a full or failing disk, stopped the master and drained every worker. The workers now keep running and the write is retried every pass, while the probes see the status grow stale; the master stops once the writes have failed for heartbeat_timeout. A failure of the state directory’s ownership or generation still stops it at once.

Laravel and supervisor: a fork server that failed to boot is not booted again at every exit. After queue:restart each worker that stopped for it asked for a new fork server, and one that failed to boot was booted again each time, blocking the master for up to a minute per boot. After a failed boot the next one now waits 60 seconds, doubling to 15 minutes; the requests meanwhile share one boot, and workers are spawned in the meantime. With prefork on and the exit markers disabled, the Rust master’s warning now says that queue:restart goes unseen.

Supervisor: a SIGTERM during start-up, and a closed stderr, no longer cost the workers. The signal handler was installed after the configuration export, which runs Artisan and may take a minute; a master that is PID 1 ignores a signal it does not handle, so a SIGTERM during the export was lost and the workers it then started were killed at the platform’s deadline. The handler now comes first, and a stop during the export ends the master before it starts a worker. And the master logged with eprintln!, which panics when stderr is a pipe whose reader is gone; the panic ended the master and, through PR_SET_PDEATHSIG, every worker. A line it cannot write is now dropped.

Supervisor: a bad control request is discarded instead of stopping the master. A control document that was expired, malformed or dated in the future by a clock step made the Rust master drain every worker and exit. It is now removed with one log line and supervision goes on, as in the PHP engine; one that cannot be removed still stops the master, as a fault of the state directory.

The cluster version stays 7. Nothing in 2.7.0 raises it: its log entries and stored rows are those of 2.6.0, so a cluster rolls from 2.6 to 2.7.0 one node at a time, and back. During the roll a stream runner whose claim reaches a 2.6 node turns claims off and keeps 2.6’s idle flush until it restarts: restart stream runners once every node runs 2.7.0. Tested on three GCP VMs under load, from the released 2.6.0 to 2.7.0-beta.2 and back, with a 2.6.0 node leading a directory 2.7.0 wrote, and the Jepsen campaign ran on 2.7.0’s code: 226 tests, 2.6.0’s without its 31 standby failovers, all valid at their first run (benchmark-queen/2026-10-30-jepsen-27).

queenctl 2.6.1 and Go client 2.6.1 - 2026-10-24

queenctl: binaries for 2.6, on a release of their own. queenctl 2.6.1 is built against Go client 2.6.1. Its archives for Linux and macOS (x86_64 and arm64) and Windows (x86_64) are on the GitHub release queenctl 2.6.1; the last ones were attached to the 2.3.0 broker release. Each CLI version now has its own release on its own tag, clients/client-cli/vX.Y.Z, so a CLI release no longer creates a vX.Y.Z tag that belongs to the broker, or renames a broker release. With Go, go install github.com/smartpricing/queen/clients/client-cli/v2/cmd/queenctl@latest installs the same version: the module keeps its smartpricing path, and a path under github.com/queen-mq/queen resolves to the whole repository, which the Go proxy refuses as too large. queenctl docs opens the pages of the rebuilt site.

Go client: QueueConfig sets the dedup window, the retry delay and the max wait. QueueConfig{DedupWindowSeconds: 60} now sends dedupWindowSeconds, as the JS, Python, PHP and Rust clients already could; until now a Go caller had to spell it with Option(). RetryDelayMillis sends retryDelay (milliseconds, enforced from broker 2.6.0) and MaxWaitTimeSeconds sends maxWaitTimeSeconds. A zero is omitted like every other field, so turning deduplication off or redelivering at once still goes through Option("dedupWindowSeconds", 0) and Option("retryDelay", 0). queenctl 2.6.1 accepts the three keys in an apply manifest’s config: block; 2.3.0 refused them as unknown fields.

2.6.0 - 2026-10-22

The Kafka facade is a translation layer onto Queen, rewritten from scratch. The first facade kept its own registry, fences, producer windows, group coordinator, transaction stages and config mirror beside the broker. 2.6’s maps each Kafka request onto what Queen already does, inside the broker process: a produce is a push, a fetch reads at an offset without a lease, a committed offset is the Queen consumer group’s position. In a cluster the raft leader leads every partition and coordinates every group and transaction, and the other nodes point clients at it. A group’s membership lives in the leader’s memory: after a leader change the members rejoin and resume from their committed offsets, and a group with no members leaves that memory ten minutes after its last member did. An idempotent producer’s records carry the transaction id k<producer id>.<epoch>.<sequence>, so a batch sent again inside the topic’s dedup window writes nothing: topics the facade creates get a window of 15 minutes (QUEEN_KAFKA_DEDUP_WINDOW_SECONDS). A transaction is held on the leader and committed as one Queen transaction, its pushes and its offsets together. CreateTopics applies retention.ms and cleanup.policy to the topic’s queue, and refuses a value it cannot apply with INVALID_CONFIG. The leader writes each group’s members to the key-value store every 15 seconds and at once when they change, which is how the broker’s group listing and the console see Kafka groups. Measured against 2.5.0’s facade on three 24-vCPU nodes (2026-10-20): both carry 500,000 msg/s of 1 KB records (2.6 end-to-end p50/p99 10.1/15.0 ms); at 1,000,000 msg/s 2.6 pushes 30% less, because it takes produce on the leader only, where 2.5.0’s followers relayed theirs. Not offered in 2.6: AlterConfigs, IncrementalAlterConfigs, OffsetDelete, DescribeLogDirs, the ACL calls and a TLS listener (terminate TLS in front of the Kafka port). The standalone facade binary is gone, and so are the settings only the first facade read: QUEEN_KAFKA_PIPELINE, QUEEN_KAFKA_RELAY, QUEEN_KAFKA_COALESCE, QUEEN_KAFKA_OFFSET_STORE, QUEEN_KAFKA_NODE_ID, QUEEN_KAFKA_CLUSTER, QUEEN_KAFKA_CLUSTER_HEARTBEAT_MS, QUEEN_KAFKA_CLUSTER_TTL_MS, QUEEN_KAFKA_MAX_PARTITIONS, QUEEN_KAFKA_MAX_PRODUCER_STATES, QUEEN_KAFKA_GROUP_MIN_SESSION_TIMEOUT_MS, QUEEN_KAFKA_GROUP_MAX_SESSION_TIMEOUT_MS, the QUEEN_KAFKA_TXN_MAX_* limits, QUEEN_KAFKA_TLS_KEY and QUEEN_KAFKA_FORWARD_SNI_HOST. New: QUEEN_KAFKA_AUTO_CREATE, QUEEN_KAFKA_DEDUP_WINDOW_SECONDS, QUEEN_KAFKA_MAX_REQUEST_BYTES and QUEEN_KAFKA_PEERS. Topics and their records are queues and do not move; during the upgrade Kafka clients reconnect, groups rejoin and transactions open on the old facade abort.

A member that comes back recovers from the leader’s log or from a delta, not from the whole state. The leader keeps its log for a member that is away (QUEEN_RAFT_MEMBER_HOLD_S, 6 hours by default, ended sooner by QUEEN_RAFT_MEMBER_HOLD_DISK_PCT, the disk’s low mark), so a member that restarts, or is moved by a node upgrade, catches up from the log. When the log no longer reaches it, the leader first asks where the member’s log stands (POST /raft/v1/snapshot/basis) and, with the same queue-log layout, sends the store and only the records above that point, which the member appends byte for byte. A snapshot carries the sealed files’ indexes, so the receiver no longer reads every file to rebuild them, and a boot maps the indexes without reading them and checks them in the background. The leader builds nothing for a member that is down, refuses at once a member that is still starting instead of waiting on it, and backs off its reconnects (50 ms doubling to 1 s) instead of opening about 4,000 a second. On three GCP nodes holding 521 GB each (2026-10-20), a member away for five minutes came back with a 1.14 GB delta, appended in 1.3 s, and was healthy 28 s after it started, where 2.5.0 sent it the whole state (566 GB, 15 minutes). On stage under a Kafka load (2026-10-21), a killed leader’s cluster was whole again in 47 s (141 s on 2.5.1), and none of six restart and kill tests needed a snapshot.

A restart refills the dedup rows from a sidecar per file, not from the files. On those nodes nine tenths of a restart went into reading the queue logs for the hash lists behind the dedup rows: 310 GB read in 300 s for lists under a gigabyte. Every sealed file now gets a sidecar, r<id>.qhsh (each message record’s offset, partition, base, count, stamp and hashes, with checksums), built off the log writer’s path and written in steps it waits for; a boot reads a sidecar that is whole and matches its file, and the file otherwise. Paired cold restarts of 254 GB nodes (2026-10-21): the refill took 20 s reading 0.7 to 1.4 GB with sidecars, against 171 to 201 s reading 185 to 217 GB without, and the node was healthy after 30 to 33 s against 186 to 240 s. The sidecars cost about 16 bytes a message on disk (147 to 163 in the 3,000,000 msg/s benchmark), and latencies are 2.5.0’s. QUEEN_QLOG_HASH_SIDECARS=0 turns them off. The first boot of 2.6.0 still reads every sealed file once, and writes their sidecars.

Raft: three fixes found while testing the recovery above. A node binds its raft port at the start of its boot and listens only once its raft core exists, and a port another process already holds fails the open instead of leaving the node up and deaf. A member’s 404 to the snapshot question is read from the answer’s status: a member that refuses it is a node before 2.6 and gets the whole state. A replication stream that asks for entries the leader purged since it chose them now sends a heartbeat instead of entries that do not follow their prev_log_id; only a member back with an empty data directory could start that race, and in a release build the member refused the request.

Empty partitions can go within the hour: PARTITION_CLEANUP_SECONDS. PARTITION_CLEANUP_DAYS counts whole days, at least one, so a workload that opens a partition per entity kept a day of empty ones in memory and in every retention round. PARTITION_CLEANUP_SECONDS, when set, replaces it (at least 60), and whatever the setting a partition is never deleted inside its queue’s dedup window, so a repeated push is still recognized. The cleanup’s check for a stream query’s state seeks each query instead of reading all of them, which a short age makes matter. On a production cluster with one partition per trace, 3600 took the partitions from 520,857 to 151,120 within 40 s of the first 2.6 leader.

A queue log no longer fills its disk with raft entries nothing needs. The queue logs are the write-ahead log: each entry is written to the logs of the queues it touches. A sealed file was rewritten once half of its message bytes were dead, and its entries did not count. In production a stream query wrote its whole state, up to 15 MB, on every commit (2026-10-22): one shared log (QUEEN_QLOG_SHARDS) grew about 40 GB an hour, most of each file was those entries, and the few messages beside them, of a queue kept 2 days, held every file for days. The entries now count as dead: a file reclaim may touch is below the point recovery and the cluster need, and a rewrite keeps only messages. And while the last reclaim pass left work, a pass gets QUEEN_QLOG_RECLAIM_BOOST (4) times its budget (256 files, 200 ms, one rewrite), rewrites included; passes go back to the small budget once one finds nothing left. Judging and copying stay off the log’s write lock, so appends do not wait for them.

A queue’s status can be read without its partitions. GET /api/v1/status/queues/:queue with includePartitions=false answers the queue’s totals, its partition count and consumed total included, without per-partition rows or the dead-letter scan; the default answer is unchanged. The console’s queue page asks for it on large queues and draws aggregate seeds, so a queue with 100,000 partitions no longer sends 44 MB to every refresh (835 bytes with the summary). From queen-mq/queen#141 by albertovincenzi.

Every SDK reads a partition by offset and lists the partitions written since a time. Two queue methods wrap POST /api/v1/fetch and POST /api/v1/partitions/changed, which only the Kafka facade, the S3 sink and hand-written HTTP calls used until now. fetch(partitions) (Go Fetch) reads every record of the named partitions, from the oldest one still kept or from given offsets, up to where each partition ended when the call first read it: 1000 partitions per request, asked again until each one is read. Each partition answers its records with their offsets, transaction ids, payloads and push times, its high watermark, its log start, and the offset to start from next time. changedSince(since) (changed_since in Python, Rust and C++, ChangedSince in Go) lists the partitions written at or after a time, every page of them, in creation order, with the answer’s safeTime to pass as the next since. Neither takes a lease, moves a cursor or needs an ack. A loop that reads a partition from offset 0 by hand reads nothing once retention has moved the partition’s start, because the broker answers an offset below logStartOffset with OFFSET_OUT_OF_RANGE and no records; fetch goes on from logStartOffset. The methods ship in the 2.6.0 clients (all six, PHP included). Any 2.x broker serves both routes; one before 2.3.0 ignores the byte ceiling of a request.

Server: the consumer-group listing reports a Kafka group by its members. GET /api/v1/consumer-groups gives a group the Kafka facade’s rows name kind: "kafka", and every row three new fields, null on a native group: liveMembers, lastSeenAt and inactiveSeconds (0 while the queue is read for the group, else the seconds since it was last seen read). With presence, a Kafka group’s state is Stable or Lagging (past 300 s of lag) while members read the queue and Empty when none does; a group whose members died is Empty three intervals after its last presence write, judged on the broker’s clock. A Kafka group without presence (a facade before 2.6) is reported as before. The group detail and the lagging list carry the same kind, and GET /api/v1/resources/queues marks a queue the facade created with kafkaTopic: true. The broker reads the facade’s rows when it answers: no replicated row or command changes, and a native group’s row only gains the three null fields.

Server: retryDelay is enforced. After a failed ack that leaves retries, the message comes back once the queue’s retryDelay (milliseconds) has passed, and its partition waits with it for that consumer group, so nothing behind the message overtakes it; a pop that names the partition waits too. Every version up to 2.5.0 stored the option, echoed it, and redelivered at once. A queue created by a push, or by /configure without the option, stores 1000: after the upgrade a failed message comes back about a second later there, and retryDelay: 0 keeps the old behaviour. A retry ack, an expired lease and a dead-lettered message do not wait, and a failed ack inside a transaction waits from the commit. The wait lives in the leader’s memory: after a leader change the message comes back at once. The console’s queue editor now offers the option beside the retry limit, and the queue page no longer marks it as not enforced.

Server: an ephemeral pop no longer sleeps through a push that lands as it parks. A waiting /api/v1/ephemeral/pop looked at its partitions and only then registered for a wake, so a push landing between the two woke nothing and the pop answered at its own timeout, with the message there all along. On 2.5.0, with 16 requesters and a new inbox per request, about one reply in 950 came back at the pop’s 2 s timeout; with one inbox per requester, one in 28,000. The pop now registers before it looks. Durable pops wait in the consumption engine and were not affected.

Console: a queue read by Kafka consumers shows its reads, and a chart missing a node says so. The records the in-process Kafka facade serves to Fetch requests were counted nowhere, so a topic read only by Kafka consumer groups showed pushes and no consumption on the Overview, and Workload showed nothing for Kafka topics at all. Each node now counts the records its facade’s fetches return, per queue and minute, beside the pops it already counted: /api/v1/analytics/queue-ops answers them as fetchMessages and fetchPerSecond, /api/v1/analytics/workload as window.fetchMessages and series.fetch, and the console charts a “Fetch (Kafka)” line on the Overview and a “Fetched (Kafka)” figure in Workload. Each record a fetch returns also counts as a pop, with its lag, and a commit that moves a group past N records counts N acks and adds N to the group’s consumed total, so two Kafka groups reading one topic count its records twice, as two native groups’ pops do. Dashboard rows are kept by the node that served the traffic and gathered from the others on every read; a node that did not answer within the gather’s 1.5 s, as during a rolling restart, used to leave its rows out without a word, and on stage (2026-10-19) the Overview read about 1 push a second instead of 1,500 while the leader restarted. Gathered answers now name the nodes that did not answer in nodesMissing, the node logs it at most once a minute per peer, and the console shows a “Partial” chip naming them.

Console: a Kafka group is a reader while it has members, and inactive after a grace. A Kafka group with live members counts as its topic’s reader and is judged by its lag like any group. One with no member is still judged by its lag for 15 minutes (a restart, a rebalance, a crash not yet called), then shown as inactive on Consumer groups, with when it was last seen, and no longer reported as an issue; Settings moves the grace (Inactive after) for the tenant or one queue. A queue is flagged “No reader” only when no consumer group is on it and it is not a topic the Kafka facade created: on a queue with groups, each group answers for itself. “No reader is expected” still silences a queue that holds messages nobody is meant to read.

Console: Workload opens on a broker with no queues. A tenant without queues is "tenant": {} in the workload answer, and the page stopped on “Interface error: Cannot read properties of undefined (reading ‘groups’)” on every fresh broker. It now shows zeros until the first queue exists. Reported in queen-mq/queen#140.

Console: the time filters offer 12 hours, and sign-in recovers from a Google error. From queen-mq/queen#139 by albertovincenzi. A Kafka record is shown decoded in the message drawer, and Kafka groups with no members leave the Overview’s lag panel and Workload’s lag figures.

The cluster version stays 7. A cluster rolls from 2.5.0 to 2.6.0 one node at a time, and back on the same data, with one condition for the way back: a node holding a snapshot it has not swapped in yet (a snapshot.pending or snapshot.swapping that names a basis) boots 2.6.0 once more first, because 2.5.0 would take that delta for the whole state. 2.5.0 ignores the sidecars and raft/member_holds.json that 2.6.0 writes. Tested on three GCP VMs under load, with deduplication on, and the full Jepsen campaign ran on 2.6.0’s code: 257 tests, all valid (benchmark-queen/2026-10-21-jepsen-26).

2.5.0 - 2026-10-18

The Kafka facade carries 1,000,000 msg/s on the OpenMessaging Benchmark, with the stock Java clients. Measured on 2026-10-17 on three GCP brokers (c4-standard-24-lssd) with the benchmark’s own driver-kafka and its kafka-throughput.yaml producer settings: 1 KB messages on one topic of 100 partitions, 4 producers and 4 consumers. At 500,000 msg/s the end-to-end p50/p99/p99.9 went from 46/625/792 ms on 2.4.0 to 5/20/58; at 1,000,000 msg/s the facade carries the load (1,001,000 msg/s, 14/87/151 ms), where 2.4.0 fell behind. Four idempotent producers writing 200,000 msg/s through the facade lost and reordered nothing when the raft leader was killed with kill -9 or stopped in the middle of the run; the kill wrote one in-flight batch twice, the bound the facade’s idempotence documents (its sequence windows live in the leader’s memory). The runs and their method are in benchmark-queen/2026-10-16-omb/RESULTS.md.

The cluster version stays 7. Nothing in 2.5.0 raises it: a cluster rolls from 2.4.0 to 2.5.0 one node at a time, and back, as a node on 2.4.0 starts on and serves a directory 2.5.0 wrote. Tested on three droplets under load, with deduplication on (benchmark-queen/2026-10-17-jepsen-25).

Server: openraft 0.10.0-alpha.37 from crates.io. The consensus library was a git revision, alpha.34 with the LogEntryDiscarded fix; it is now the published 0.10.0-alpha.37, with exact pins on its macros and runtime crates. Among its 58 further commits, leader I/O waits for the previous flush, heartbeats stop once a quorum is lost, replication backs off differently, and linearizable reads, which Queen’s reads use, get a fix. From queen-mq/queen#138 by gerald (getong).

Server: a windowBuffer hold ends one window after the oldest waiting message. A queue’s windowBuffer held a partition until it had gone that many seconds without a write, so a partition written more often than once a window delivered nothing for as long as the writes went on. A hold now ends windowBuffer seconds after the oldest message waiting for the group, the first after its cursor, whatever came since, and the group gets what has accumulated: a burst shorter than the window is still one batch, and under steady writes no message is held longer than the window. The end is read from that message’s stored timestamp, so a new leader ends the hold at the same instant.

Kafka facade: a parked fetch answers when its topic is written elsewhere on the node. A Kafka client keeps one fetch in flight per broker and leaves out of it the partitions it still holds records of, so a partition it drained while that fetch was parked on quiet ones waited for the fetch to come back, up to fetch.max.wait.ms (500 ms in Java). A parked fetch that has read nothing now answers, empty, once it has waited QUEEN_FETCH_TOPIC_WAKE_MS (5 ms) and another partition of its topic was written on the node; an idle topic still parks to the client’s wait, and a fetch holding fewer than its min_bytes keeps waiting for them. With the OpenMessaging Benchmark’s stock Java consumer (1 KB, 100 partitions, 500,000 msg/s, three GCP nodes) the end-to-end p50/p99/p99.9 went from 46/625/792 ms to 9/32/55 ms.

Kafka facade: produce is pipelined on the leader and relayed from followers. A facade served a connection one push at a time: a request waited for the push before it to commit on two disks before its own began, so most of a produce’s time was queueing (p50 7.4 ms against 2.1 ms for the push itself). On the node that leads, a connection’s next push is now sent as soon as the one before it is in the raft log, up to QUEEN_KAFKA_PIPELINE (8) in flight, and the answers keep request order; the log keeps the order they were sent in and commits a prefix, so a later push never lands without the ones before it. A pipelined push is never retried behind the client’s back once it is in the log: a push that fails ends the connection, and the client sends again, in order, what it was not answered. On a follower, a client’s produce goes as it came to the facade on the leader, over one connection per client connection (QUEEN_KAFKA_RELAY), instead of through the broker’s forwarding, whose streams do not keep one connection’s order. Every other request, and every connection elsewhere, is served as before.

Kafka facade: a topic lookup no longer queues behind the others. The facade’s catalog kept its list of queues behind a fair async mutex, so under a high produce rate every request’s topic lookup waited its turn: at about 1,000,000 msg/s on 100 partitions it took 7.4 ms a request on the leader, and the facade fell behind its clients. The list is now behind a plain mutex, never held across an await.

Kafka facade: the facade’s report in /status times every produce stage. producePlans (the topic lookup), produceCheck, produceDecode, produceEnvelope, producePush and produceRender show where a slow produce spends its time, beside the producePushes, produceRequests and produceRecords counters.

2.4.0 - 2026-10-16

41% fewer bytes written a message, and end to end about three times faster at 3M msg/s. Measured on 2026-10-15 on three GCP brokers (c4-standard-24-lssd, four local NVMe disks in a RAID 0 with XFS) at 3,000,000 msg/s on 1,000 partitions, with 256-byte payloads, the 2.3.0 wire forms and deduplication off, the settings of the benchmark pages: every broker wrote 146 to 148 bytes a message against 248 for 2.3.0 (440 MB/s a broker, what Kafka 4.3.1 writes at that load). End to end p50 / p99 was 6.6-6.7 / 14-17 ms against 19-21 / 46-61, push 3.2 / 6.7-7.0 against 8.3-9.2 / 22-24, for 4.7 GB less memory a broker and 2.2 cores more in all; the queue log’s fdatasync went from about 3 ms to 0.5. On 1,000 partitions the highest rate carried went from 3,500,000 to 5,000,000 msg/s (39 / 87 ms there). At 3,000,000 msg/s on 10 to 10 million partitions the p99 is 15 to 25 ms where 2.3.0 read 42 to 76 (one run on 1,000 partitions read 65, four more of that point 15 to 20). The runs, their method and what is not explained are in benchmark-queen/2026-10-15-bytes-per-msg/README.md.

The upgrade is one way: cluster version 7. Once every node runs 2.4.0 the cluster moves from version 6 to 7 by itself, and from then on 2.3.0 and older refuse to start on its data. While one node still runs 2.3.0 the version stays at 6, every node writes what 2.3.0 reads, and a node can go back; QUEEN_RAFT_CLUSTER_VERSION_MS=0 on every node keeps the version where it is. Rehearsed on three droplets from 2.3.0 under load, with deduplication on (benchmark-queen/2026-10-15-jepsen-24). A 2.3.0 client talks to a 2.4.0 broker as to 2.3.0.

Server: a push’s outcome is written as runs. A push’s recorded outcome, in its raft entry, in the queue log’s entry record and in its request_ids row, held one 25-byte verdict a message. From cluster version 7 it is runs: the messages a push created in a partition are one 29-byte run (the partition, the first offset, the timestamp, the count), consecutive duplicates another, a refusal one each. The answer, a retry’s answer and a transaction’s outcome read the same verdicts as before. A one-message push keeps the old form, which is smaller for it.

Server: the store checkpoint keeps a push’s index row without its hashes. A push’s index row holds the 16-byte hash of each transactionId, and the checkpoint wrote them every time it wrote the row: a 100-message row, about 1.6 KB, took a 4 KiB page of its own. From cluster version 7 the checkpoint writes the row without them, and a boot puts them back from the queue log, which keeps the push’s message record for as long as the row exists; the boot logs txns rows refilled from the queue logs with the count. On one node at 300,000 msg/s the checkpoint’s index table went from 616 to 11 MB. QUEEN_RAFT_CHECKPOINT_TXNS=whole writes them as before.

Server: an entry record leaves out the hashes its message records hold. The queue log’s entry record repeated the hash list of every append whose message record it is written with, 16 bytes a message. From cluster version 7 it leaves them out, and a read puts them back from those records and checks the result against the entry record’s checksum. QUEEN_QLOG_ENTRY_HASHES=keep writes them as before.

Server: an encryption key no longer turns off the framed forms on every queue. A broker that ran with QUEEN_ENCRYPTION_KEY answered every frames=true pop in JSON, and compressed every framed push and binary transaction again, on the queues that do not encrypt too. A framed group is now filed as the client compressed it unless its queue encrypts, and a framed pop answers JSON only when a record it would send holds an encrypted message. A queue whose encryption was switched off keeps its older messages encrypted, so its answers stay JSON, decrypted, until those are consumed. With a key, a framed pop reads the flags of each record’s messages, one decompression per record; without one nothing changes.

PHP client 2.5.0 - 2026-10-14

Laravel: a job whose timeout its lease cannot cover fails alone. Without lease renewal, a job whose own $timeout is 0 or at least retry_after was refused at every delivery: it never ran, never reached tries and held its partition, and since PHP client 2.4.2 every supervised worker that popped it exited, so its pool crash-looped. The job now fails at once, without running, with its failed-job row, its failed() call and its dead-letter entry, and the exception names the setting to change; the worker goes on. A $timeout that is a numeric string, as env() returns it, counts as the number, as Laravel’s worker reads it; it was refused even with renewal on.

Laravel: a failure whose message is not UTF-8 still reaches the dead-letter queue. A failed job’s error went into the dead-letter ACK as it was, and a message that is not UTF-8, as a database error quoting a latin-1 value is, could not be encoded: no ACK was sent, failed() and the batch and chain callbacks were skipped, and the job failed a second time as MaxAttemptsExceededException once its lease expired. The text is now made valid UTF-8 and bounded to 8 KiB.

Laravel: the dead-letter ACK in Laravel’s timeout handler can never prevent the kill. With failOnTimeout, or on the last attempt, Laravel’s handler fails the job before it kills the worker, and that ACK used the ordinary client: up to 90 seconds on one URL, and an exception that landed in the job’s code. The handler now makes one bounded attempt of 2 seconds that never throws; if it fails, the lease expires and the broker delivers the job again, past its tries.

Laravel: a supervised worker reports a queue whose pops fail, whatever its other queues do. A pop that worked on any queue, an empty one included, cleared the worker’s failure state, so with --queue=high,low a low whose every pop failed was never reported. Each queue’s failure is now kept apart, in the same file. A pop that failed because the broker reset the connection (“reset by peer”, “Broken pipe”) no longer makes Laravel stop the worker with status 0 as if it had lost its database, which restarted it without backoff and removed its failure file.

Laravel: workers no longer inherit the supervisor lock, and the fork server releases the boot’s cache stores. The lock file was open in every process the master started, so after the master was killed where PID 1 survives (systemd, supervisord, a shell entrypoint), orphan workers held it and the next master refused to start. And the fork server kept the cache store connections the boot had opened, a memcached socket say, which every forked worker then shared. Both are closed now.

Laravel: the shutdown hand-back fails over, and a batch whose lease cannot be tracked is handed back. With several broker URLs, the client that hands a worker’s prefetched jobs back at shutdown tried one URL only, so with that node down the jobs waited for their lease and lost an attempt; it now tries the others within the same 2-second bound. A popped batch whose lease tracking failed is handed back at once, as the pop-ahead path already did.

Laravel: a refused lease renewal budget says what it is made of. A renewal may try every broker URL, so with three URLs, the default lease_renewal_timeout and a retry_after of 30 seconds the budget is 44 seconds and the supervisor refuses to start. The refusal now gives the budget, its parts and the settings that shrink it. The dashboard’s tuning advice no longer uses a null array offset, which PHP 8.5 deprecates.

PHP client: a request waits out a leader election. A cluster that elects a leader answers 503 for a few seconds; each URL got one try with no delay, so a request failed and consume() ended. A request now waits at the pace of Retry-After, for at most 10 seconds or its timeout, after a 503 that says it did not run (no_leader, standby); a read, or a push whose every message has a transactionId, also after retry. A pop whose 503 says it may have run is never sent again. consume() backs off after a 5xx and goes on polling, and reports an ACK that failed. Its automatic lease renewal (renewLease()) waits at most the renewal interval instead of the request timeout, encodes the lease id, and reports a renewal that failed or renewed nothing.

PHP client: failover tries every backend, and a redirect or an empty answer is no success. With every URL marked unhealthy, as an election leaves them, a request went to the first URL only; it now tries each. A 3xx read as a success with an empty result, so a push behind a redirecting proxy reported its messages stored; it is now an error, never followed or retried. An empty body where the broker always sends one (push, ACK, transaction, a pop with status 200) is an error too, after which consume() backs off and polls again, as after a network error. A body that cannot be encoded as JSON fails at once, with no request sent and no backend marked unhealthy; it marked every URL unhealthy and slept through the retries. Asynchronous requests now report the health of their backend, so a consume() with several workers leaves a dead node.

2.3.0 - 2026-10-14

Three brokers, a million messages a second: end to end p99 from 100-160 ms to about 20. Measured on 2026-10-12 and 13 with the fixes below and this release’s wire forms (binary push, compressed groups, framed pops, counted acks), 100 messages a request, a fresh cluster for every point, figures at seconds 30-60 of the load. With deduplication off and nothing deleted, end to end p50 / p99 is the same from 100 to 100,000 partitions: 4 / 6 ms at 100k msg/s, 5 / 9 at 500k, 10 / 17 at 1M, 17-20 / 35-40 at 1.5M, 27-31 / 56-62 at 2M. Ten million partitions read 10 / 20 ms at 1M msg/s and 39 / 69 at 2M; before these fixes they did not carry 1.5M. 2.5M msg/s is pushed and not carried. With deduplication and retention on (60 s windows) 1.5M msg/s reads 19-28 / 36-51 ms from 100 to 1M partitions; it is not carried on 10 partitions (the planner, with deduplication at 150,000 msg/s a partition) nor on 10M (memory: more than the 32 GB of these brokers). 2M msg/s with retention holds on 1,000 partitions and rises slowly there. The runs, their method and what is not solved are in benchmark-queen/2026-10-12-three-node-new-forms/NIGHT.md. Kafka 4.3.1 ran on the same machines on 2026-10-13, worst load process on both sides: on 100 partitions it reads 8 / 11 ms at 1M msg/s against Queen’s 10 / 19 and 8 / 43 at 2M against 31 / 63, and carries 4M (13 / 243), which Queen does not; at 2M msg/s on 10,000 partitions it reads 64 / 134 on 30 broker cores against Queen’s 31 / 63 on 20, and it does not carry 100,000 partitions, where Queen reads 30 / 59. The benchmark pages of the site carry these figures.

The upgrade rolls both ways. 2.3.0 changes nothing in the replicated state: the cluster version stays 6, and a cluster rolls from 2.2.0 to 2.3.0 and back one node at a time (a standby of several raft groups has a rule of its own, below). The JavaScript, Python and Rust clients are 2.3.0, the Go and C++ clients are tagged 2.3.0, and the PHP client is 2.5.0; queen-protocol stays 1.4.0. A 2.1.0 client and a 2.3.0 broker, or the reverse with the new options off, talk as before.

Server: a binary push body, and a client’s compressed batch stored as it is. POST /api/v1/push reads a body that starts with QPB1 as length-prefixed groups (queue, partition, payloads, a transactionId each when the client sends them) instead of a JSON document: same admission, same commands, same verdict for every message. A payload is still one JSON document, and is checked. The body may be one zstd frame, and its answer may be the counts alone (count, queued, duplicate, error). In its framed form (flag 8) each partition’s batch is the frames the queue log stores, with message ids the client minted, compressed by the client as one zstd frame: the broker inflates and checks every frame and, when it has nothing to add (no producer identity, no payload encryption, no transactionId twice in the request), files the client’s bytes as the stored record and ships them to its followers, so no node compresses them again. A node that does not lead hands those bytes to the leader with the forwarded request (QUEEN_PUSH_FORWARD_STORED, on; an older leader ignores them). A JSON push is read as before, with one clock read a request and borrowed strings. The layouts are in the HTTP reference.

Server: an ack answered with counts, a pop answered with the stored records. An ack’s body was parsed twice, the first time whole to read one key; it is parsed once, and its result is looked up by index (it was a scan of the batch for every item). "answer": "counts" in the body answers count, success, failed and the first error instead of one object per message. frames=true on the pop routes answers application/x-queen-pop: the records as the queue log holds them, zstd frames included, with the claims’ offsets, so the broker inflates and renders nothing and the client unpacks. It falls back to the JSON answer when the broker runs with payload encryption, when a claim is conflated, or when a record is not readable as stored. Without the parameter a pop is the JSON one.

Server: a binary transaction body. POST /api/v1/transaction reads a body that starts with QTB1: the JSON body without its pushes, then the pushes as framed groups, stored as the client compressed them when a group is a partition’s whole append. Acks, required leases, KV, timers and the lease fence are those of the JSON body; results come back with the head’s operations first, then the pushes, then the riders, and each SDK hands them back in the caller’s order.

What the three forms measure against 2.2.0. Same three machines, one queue of 200 partitions, a 60 s deduplication window, 2026-10-12 (benchmark-queen/2026-10-12-three-node-new-forms/, before the fixes below): at 1M msg/s the push goes from 8.1 / 39.9 ms to 5.2 / 8.7 and the end to end from 27.1 / 85.0 to 11.5 / 18.4; the three brokers use 13.4 cores for 16.4 and the load machines 8.3 for 14.4; offered more than it can take, the cluster pushes 2.45M msg/s for 1.57M. Transactions of 10 messages at 12,000 a second commit in 3.6 / 8.6 ms with the binary body for 5.3 / 12.4 on 2.2.0, and the ceiling moves from 11,320 to 12,890 a second; of 100 messages at 3,000 a second, 4.1 / 7.0 ms for 6.1 / 19.2. The ceilings are still the planner’s: one cycle at a time for pushes, one serial phase for transactions that ack.

Clients: binary push, push compression and framed pop in all six SDKs and the Laravel driver. Three options, off by default everywhere, so a client that does not set them sends and reads JSON byte for byte as before: binaryPush, pushCompression, framedPop in JavaScript and PHP, binary_push, push_compression, framed_pop in Python, Rust and C++, BinaryPush, PushCompression, FramedPop in Go, and three keys of the same names in config/queen.php. With binary push a push goes out as the binary body; with push compression too, as framed groups, and a transaction that pushes as the binary transaction body; with framed pop the client asks for the stored records and unpacks them into the messages a JSON pop returns. A push or a transaction that carries a trace id stays JSON. zstd comes from Node.js itself, from Python 3.14’s standard library or the new zstd extra before it, from a dependency of the Go module and of the Rust crate, from libzstd in C++ (-DQUEEN_CLIENT_ZSTD, -lzstd), and from the zstd extension in PHP, which the client asks for at construction when an option needs it. Binary push and push compression need a 2.3.0 broker on every node: an older broker answers the binary bodies with 400 and no client falls back. Framed pop is safe against any broker.

Server: the deduplication filter of a busy partition takes 4 bytes a hash. A push whose transactionId the filter cannot rule out is looked up in the partition’s rows, and for a partition at thousands of messages a second one lookup scanned about 1,400 rows of 100 hashes: at 1.85M msg/s on 200 partitions 0.34 to 0.40% of the messages paid one and the planner’s lanes spent 62% of their time there. A filter generation of 8,192 hashes or more now has 32 bits a hash instead of 16; smaller ones, which a quiet partition has, keep 16. The lookups fell to 0.026% of the messages and the most that queue pushes rose from 1.85M to 2.45M msg/s. The filter grew from 0.56 to 1.23 GB in that run, so its default cap (QUEEN_RAFT_DEDUP_FRONT_MB) goes from 2 to 4 GiB.

Server: the durable point every 250 ms, and the checkpoint written in steps. The store’s checkpoint was written once a second and synced in one go, and the raft log’s own sync waited behind it. QUEEN_RAFT_DURABLE_EVERY_MS is now 250 by default, each node of a cluster writes its checkpoint at its own place in that period (QUEEN_RAFT_DURABLE_PHASE_MS; off is the 2.2.0 behaviour), and on Linux the checkpoint is handed to the disk 8 MB at a time before its sync (QUEEN_RAFT_CHECKPOINT_FLUSH_STEP_MB; 0 hands it over in one go). No answer ever waited for the durable point, and none does now: it bounds what a restart replays. The 2.2.0 figures above ran with its 1 s default, so how much of the p99 these settings alone move was not measured on three machines.

A command’s recorded outcome leaves when its window ends, not ten seconds’ worth at a time. Every command’s outcome is kept QUEEN_RAFT_REQUEST_ID_WINDOW_S (60 s) to answer a retry. The step that retires them ran on a 10 s tick, so ten seconds of outcomes left together, in steps of 4,096 rows one after the other, and apply did nothing else for 50 to 150 ms: from second 70 of every load the p99 doubled or tripled. The leader now looks every QUEEN_RAFT_REQUEST_EXPIRE_FAST_MS (10; 0 leaves it to the tick) whether 256 outcomes have left the window, and retires what has in its next cycle; fewer wait for the tick, so an idle cluster writes no entry for them. The step and its limit are unchanged. 1,000 partitions, last 30 s of a 90 s load, end to end p50 / p99: 11.8 / 29.9 → 10.6 / 16.3 ms at 1M msg/s, 17.4 / 78.8 → 17.4 / 32.8 at 1.5M, 29.4 / 127 → 30.0 / 60.4 at 2M.

Ten million partitions: the leader’s idle scan works in turns. The scan that unloads idle consumer state walked 625,000 partitions under one lock once a second, on the thread that serves pops: with 10M partitions 7% of the messages were up to 80 ms late at any load. It now looks at 1,024 partitions a turn, a turn every 5 ms, and a consumer’s state for a partition is held by a pointer, so a table that grows no longer moves 430 bytes for each (100 to 160 ms while 10M partitions were first read). 10M partitions, end to end p50 / p99: 6.8 / 73.7 → 4.0 / 6.9 ms at 100k msg/s, 13.4 / 130 → 11.1 / 17.2 at 1M.

A pop’s checkpoint is taken at once. A pop or an ack is answered once the checkpoint that holds its change has committed, and checkpoints were taken every QUEEN_CONSUME_CHECKPOINT_MS (5): an answer waited half a tick on average before its checkpoint even started. An answer that waits now has the checkpoint taken at once when none is in flight (QUEEN_CONSUME_CHECKPOINT_EAGER, on; 0 waits for the tick). What an answer waits for is unchanged. At 100k msg/s: 6.5 / 10.2 → 3.9 / 6.8 ms, for more log entries at low load (3.1 → 4.4 broker cores there).

Retention no longer stops apply. Three causes, each measured:

  • A round over a small store was one slice: every partition’s watermark reached the planner together once an interval and went into one entry (1,000 partitions at 1M msg/s: 50,000 rows retired in one go, apply stalled 44-59 ms every 5 s). The round is now spread over its interval in 100 steps: 12.9 / 76.8 → 11.8 / 19.5 ms with deduplication and retention on.
  • The dashboard’s node-local retention history was written by the apply thread: for every watermark a JSON record, the file opened, three writes, closed, and the file rewritten with two fsyncs every 8,192 records, up to 37 ms at a time and several times in a row. Apply now keeps a step in memory, where the dashboard reads it at once, and the metrics collector writes the file every METRICS_FLUSH_MS (60 s) and at shutdown. After a crash the dashboard’s history misses up to that last minute; no queue state is involved. A million partitions at 1.5M msg/s: 23 / 120 → 21 / 39 ms; 100,000 partitions at 2M msg/s, not carried before (2 s and rising), reads 63 / 106.
  • Not solved: with retention on and 10,000 to 100,000 partitions the store’s checkpoint cannot keep its 250 ms pace (a page written per changed row), which lifts the p99 there to about 50 ms at 1.5M msg/s against 36-40 at 1,000 and at 1M partitions.

Two stalls at high partition counts and loads. The queue log’s cross-file directory is merged about every 40 s on every node, and its files were synced in one go: with 100,000 partitions at 1.5M msg/s the raft log’s sync waited behind it (the leader’s longest commit 15 → 64 ms, one 10 s window at 138 ms). They now reach the disk 8 MB at a time while they are written. And the planner kept a queue’s partition names in one hash table, which hashes every name again when it doubles: 36 ms at 458,752 names and 89 ms at 917,504, on the thread every push waits for (a million partitions at 2M msg/s: one window at 151 ms against 55-65). The names sit in 256 tables once a queue has 4,096 of them, and lookups that are dropped are freed off that thread.

Kafka facade: a fetch is read to what its response can carry. Kafka’s max_bytes is for the whole response, and each call the facade makes to the broker now carries it as the call’s own ceiling (the route’s top-level maxBytes), counted as Queen stores the records: a key and a value are kept in base64, so the client’s number is asked for a third larger. The entries are read in order while any of it is left, and the rest answer their bounds and no records. Before, every partition of a wide assignment was read to its own budget, so a consumer behind on a thousand partitions had a gigabyte read for the 32 MiB a response carries, on every fetch; and asked for the client’s number as it stood, a fetch came back a quarter short. A fetch from an old offset now reads the queue log with the log’s lock released, as a pop does (the appends to that log waited behind a read from the disk), and once a record waits for the disk the kernel is asked to read ahead (QUEEN_QLOG_READ_AHEAD_MB, 1; 0 is off). Not measured yet.

Proxy: a plan counts requests and uncompressed bytes, no longer messages. A plan limited what a tenant sends with three caps counted in messages: a rate (max_msgs_per_sec, msgs_burst), a size for one payload (max_payload_bytes) and a number of items for one push (max_batch_items). The proxy could answer them only by parsing the body as JSON, and the binary push and transaction bodies the broker now reads (QPB1, QTB1) were forwarded without any of them. One rate replaces the three: max_bytes_per_sec, with bytes_burst, counted in uncompressed bytes. A push, a transaction, an ephemeral push and a streams cycle that emits are weighed on the way in, and a pop’s answer leaves the same bucket once the broker has answered. The proxy reads the weight off the body’s headers and inflates nothing: a body compressed as a whole carries its raw_len, each group of a framed push or of a binary transaction is one zstd frame that declares its content size, and the broker refuses a body that holds more than it declares. A binary body whose headers do not say what it weighs answers 400 invalid_request at the proxy, and the broker now refuses a binary push with flags 1 and 8 together (a framed body compressed again as a whole), which hid the groups and their sizes. No seeded plan has a byte rate: it is unlimited until max_bytes_per_sec is set in a cluster’s overrides, so set it before a cell that enforces its limits takes this build. An override that still names one of the four retired keys is accepted and changes nothing, so a control plane that sends them keeps provisioning. QUEEN_PROXY_MAX_BATCH_ITEMS is no longer read, and the limits log line says kind=bytes where it said kind=msgs. Still read from a JSON body only: the queues and partitions a push names (the plan’s max_queues and max_partitions_per_queue), and the messages the meter books.

Server: a standby cluster can run several raft groups. A standby replayed one log, so a link needed QUEEN_RAFT_GROUPS=1 on both clusters and a standby started with more refused to boot. Each raft group of a standby now replays the source’s group of the same number: it reads the nodes QUEEN_LINK_SOURCE names on their raft port plus the group’s number, takes its seed from that group’s snapshot into its own directory, and keeps its own position, id and lag. Nothing is configured per group. Where a tenant lives is each cluster’s configuration and not replicated state, so every call of a standby’s group now states its group, the number of groups and its tenant pins in a header (x-queen-link-placement), and a source group answers 409 to a standby whose QUEEN_RAFT_GROUPS or QUEEN_TENANT_GROUPS differ from its own: the standby shows waiting with the reason and replays nothing, and a refused seed stops the boot. That also closes a hole of 2.1.0 to 2.2.0, where a source of several groups answered a standby of one group, which replayed group 0 alone and said nothing: such a standby is now refused, and a standby of several groups refuses a source up to 2.2.0, which does not state its placement. A link between clusters of one group works as before, in both directions between this build and 2.2.0. On a node of several groups GET /api/v1/system/link and /health’s raft.link list every group under groups, with a role on top that is mixed when the groups differ, and POST /api/v1/system/link/promote promotes every group; a group that could not be promoted is named in the answer with its status, and the call is repeated. A promotion cuts each group at the entry its own replay had reached: no command spans two groups, so every tenant gets a state the source had for it, and tenants in different groups can be cut at slightly different moments. The Jepsen failover tests ran one group. See standby cluster.

Server: a node added to a cluster of several raft groups can become a voter in every group. With QUEEN_RAFT_GROUPS above 1 each group prefers one member as its leader, and a group’s leader handed leadership to that member as soon as it answered and was nearly caught up, without asking whether it was a voter. A node being added is a learner first. In the group that preferred it, the leader handed leadership to a learner, which cannot be elected, and from then on no longer heard its learners: POST /api/v1/system/raft/membership/promote answered 409 learner_behind (“it has not answered recently”) for that group, for good, while the other groups promoted the node. And when the node had become a voter in time, the leader could hand it leadership between the two steps of the promotion, which then stayed unfinished (409 in_flight) until an operator sent the voters again. A group’s leader now hands leadership only to a member that is a voter and only while no membership change is in flight, so the hand-over happens after the promotion. Found by a new test that adds two nodes to a seeded standby of two groups.

2.2.0 - 2026-10-10

Server: a queue’s memory no longer grows with the messages it keeps. Every push left a row in the memory of every node (about 200 bytes: where the append begins and ends, when it was written, the hash of each transactionId), and the row stayed until retention removed the message. A queue with retention off, or with days of it, held a row for its whole history in RAM, on each node, and a restart loaded them all again. A row now leaves the store when the queue’s dedup window has passed (dedupWindowSeconds, 3,600 s by default, and never less than QUEEN_RAFT_TXN_WINDOW_MIN_S, 900 s), whatever the retention: retentionSeconds and completedRetentionSeconds say how long a message stays on disk, and no longer how long its row stays in memory (until 2.1.0 a longer completedRetentionSeconds was also the least time a row was kept). Messages older than that are read from the queue log, which always held them: a consumer far behind, a group that subscribes at a past instant, a lookup by timestamp, and retention itself. Memory now follows the push rate times the window, not the size of the queue. On one 16-core VM, 20,000 single pushes a second for five minutes with retention off and a 60-second window: 2.1.0 ended with 5.95 million rows and 1.8 GB, and still held 1.4 GB after the pushes stopped; this build stayed at 1.2 million rows while they ran and held no row and 0.3 GB 75 seconds after. Consumers at the tail are served from memory as before: at 300,000 messages a second the push p50 was 8.5 to 9.4 ms on this build and 8.8 to 9.0 ms on 2.1.0, over five runs on ten cores of that VM. The backlog of that run, 5.9 million messages with no row left, was read back by 16 consumers at about 500,000 messages a second, against about 520,000 on 2.1.0, which read it from memory. While it was being read, the traffic at the tail kept its 300,000 messages a second, with a push p50 of 9 to 10 ms on both builds. From the disk it is the same on both: with 32 GB of backlog (48.75 million messages) and the page cache dropped, the consumers read it back at about 360,000 messages a second on this build and 375,000 on 2.1.0, and the broker’s own memory stayed at 0.6 GB against 2.2 GB. A walk over old messages asks the kernel for a chunk of records at once as soon as one read has waited for the disk, so the reads overlap. A queue of 99 GB (149 million messages, retention off) left the broker with 0.4 GB of memory once its rows had gone, and the node started on it in 3.5 seconds with a cold page cache. The runs are in benchmark-queen/2026-10-09-rows-window/. On three 16-core machines, at 1,000,000 messages a second in and out of one queue of 500,000 partitions for five minutes, this build and 2.1.0 both carried the rate with nothing shed and no error. With retention off, where 2.1.0 removes nothing, its leader’s memory grew from 2.3 to 11.1 GB and was still growing, and this build’s stayed under 7.1 GB and fell to 5.1 GB, for eight more points of the apply thread on each node (55% against 47% on the leader) and 4 to 7% on the p99s. With consumed messages removed after a minute on both, the two builds could not be told apart (benchmark-queen/2026-10-10-three-node-1m/). The change needs cluster version 6, which the leader raises by itself once every node runs this release; from then on 2.1.0 and older refuse to start on that data, and QUEEN_RAFT_CLUSTER_VERSION_MS=0 keeps the way back open while the release bakes. Until the version is 6, rows stay as long as their messages, as before. QUEEN_RAFT_ROWS_WINDOW=0 does the same on purpose. New metric: queen_consume_cold_claims_total, the claims served from the queue log.

Server: reading an old message no longer asks every log file. A read by offset asked the sealed log files one after the other, oldest first, so its cost grew with what the queue retained. It now asks the newest first, where consumers usually are, and for the rest reads a directory of the sealed files: small sorted files beside the log (dirx-*.qdx) that say which file holds which offsets of which partition. They are built in the background once 16 sealed files have none, merged as they pile up, checked when the log is opened, and built again if lost; a node without them answers the same, more slowly. QUEEN_QLOG_DIRX=0 turns the building off. New metric: queen_raft_qlog_dirx, the directory files and the sealed files none of them covers yet.

Server: retention keeps up with a busy partition. One retention round moved a partition by at most 1,000 pushes (RETENTION_BATCH_SIZE), and a round starts every RETENTION_INTERVAL (5 s): a partition written faster than 200 pushes a second fell behind retention for good, and its rows piled up in memory. A partition that has more due is now judged again 40 ms later, until it has caught up.

Server: an ack repeated long after its message was pushed. A completed ack of a message that was already acked is still a no-op. The broker recognises it while the message’s row exists (the dedup window), and after that while the message is among the last 65,536 its group consumed from that partition; an older one is answered as not found. On a queue without retention, 2.1.0 recognised it for as long as the queue existed, and on a queue with retention for at least as long as it kept the message.

Server: a quiet queue no longer makes a log file every ten minutes. A log file is sealed when it is full (64 MiB), and a quiet one by age, so that retention can free what expired in it: every QUEEN_QLOG_SEAL_AGE_S (600 s) the file of any queue that had a message in it was sealed, whether or not retention had anything to free. A queue that got a message now and then made 144 files a day, each with its index, and a queue without retention kept them all. An aged file is now sealed only when that is worth a file: retention found a message in it that has expired or whose queue is gone, or it holds an eighth of a full file. A queue without retention gets a new file every 64 MiB and no other. On a VM, 500 queues with a message each every 5 seconds for five minutes, retention off and the seal age at a twentieth of its default (what 100 minutes do at 600 s): 2.1.0 ended with 3,630 files and 6,780 memory maps, this build with the 501 it started with and 537 maps. With a retention of 20 seconds on the same queues, files are sealed as their messages expire and freed as they die: between 130 and 260 of them at any time, and none 45 seconds after the last message.

Server: the kernel’s limit on memory maps cannot stop a node. Every sealed log file kept its index memory-mapped, twice (the log’s own map and retention’s), and the kernel allows a process 65,530 maps unless vm.max_map_count is raised: about 32,700 sealed files. Past that the next file could not be sealed (see the entry below for what that did), and with twice as many files no start succeeded, since a start maps every index. Reached by size, the first is 2 TB of log on a node; reached by quiet queues at 144 files a day each, it is 227 days of one queue, or ten days of 23. Three changes. An index that fits one page (about 80 records) is read into memory and takes no map. Retention judges a file from the log’s own index, so a file has one map: 65,530 of them is 4 TB of log at 64 MiB a file. And an index the kernel refuses to map is held in memory instead, with a warning, so the limit costs memory and never the node. New series queen_raft_qlog_index_maps (mapped, limit, refused), and a warning in the log past 70% of the limit. Every release since 2.0.0 has the limit; a node on one of them is as close to it as twice its queen_raft_log_storage{kind="files"}.

Server: a log file that could not be sealed keeps its messages. Sealing a file writes its index and opens it. When that failed (the process out of memory maps or file descriptors, a write error) the file was left marked as sealed with no index in memory: its messages, and those written to it afterwards, could not be found until a restart. The next attempt then wrote the index again from what memory still held, a part of the file or nothing, and a restart trusted that index, so those messages stayed on disk and out of reach. A seal now changes nothing until the index is written and open: a failed one leaves the file as it was, and the next one seals it whole. Every release since 2.0.0 has this.

Server: an entry written after a log cut can be read. A log file is created for a sequence number: by a roll, for the group about to be written, and by the idle pass, which seals a quiet file and creates the next one for the writer’s next number. When a follower cuts its log back (a tail a new leader overruled), the entries it takes next carry lower numbers than that, in two ways. The cut can come after the seal, and the empty file kept the number it was created for. Or it can come before: the idle pass still counted the writer’s next number from the tail the cut had removed, and a file sealed in the moment before the new leader’s entries arrived was created too high. Either way an entry went into a file whose header said it held nothing that low, a search by number skipped the file, and at its next start the node refused: raft log entries N..N+1 are not all in the queue logs. A cut now lowers the first number of an empty file and the writer’s own count, and a file begins where its first record does, whatever created it. Every release since 2.0.0 has this; it needs a log sealed around the moment a node’s entries are overruled, which the default seal age of 600 seconds makes rare. Found by Jepsen on logs sealed after 10 seconds: the first way by four tests that were not valid, the second in the node logs of a test that was, because the other four nodes had carried it.

Server: a node starts after an empty queue log was removed half-way. A queue’s log whose files have all been reclaimed is closed and its directory deleted. The deletion was done in place, and could stop between the last file and the directory: a crash, or a filesystem that keeps a deleted file while it is open and then refuses to remove the directory (FUSE, NFS). The directory that was left, with no file in it, is what a log that lost its records looks like, and the next start refused it: it ends at seq 0, below seq N, which this node fsync'd and applied. The directory is now renamed to q<id>.dead in one step and deleted after that is durable; a start sweeps such directories, and a snapshot leaves them out. Every release since 2.0.0 has this too. Found by Jepsen under power loss, where it took every node of a cluster down one after the other.

Server: /health no longer says healthy without a majority. A node answered 200 healthy as long as it knew a leader and its apply was not behind. A leader that had lost every follower, and a follower cut off from its leader, kept that leader’s name and said healthy for good; a voter that came back with an empty disk said it from its first answer. On Kubernetes, where /health is the readiness probe, the Service kept sending clients to a node that could not serve them, and a rolling update moved on to the next pod before the one it had restarted was back in the cluster. /health now also needs the leader the node follows (itself, when it leads) to have heard from a majority of the voters within QUEEN_RAFT_READY_QUORUM_MS (5000 ms; 0 turns the check off), and the body says how long ago that was, in raft.quorumAckMs. A node that has applied nothing while the cluster is more than QUEEN_RAFT_READY_LAG_ENTRIES ahead answers 503 settling: its catch-up is now measured against the commit point the leader’s appends carry when the leader does not answer its question. An election stays 200: the figure is the silence of a majority, not the absence of a leader. Do not point a liveness probe at /health: a lost majority would restart every pod.

Dashboard: moving between views keeps what you were looking at. The selected queue, the time window, the filters and the page of a list are part of the address: they survive a reload, a shared link and the browser’s Back, and they follow you from a queue to its messages, its consumer groups and its traces. A queue’s pages share a breadcrumb and tabs. The sidebar is grouped by what you do (Messaging, Workers, Analysis), with KV and Locks under Messaging. A filtered list says how many of the total it shows. Who is signed in, and the way out, are in a menu at the right of the top bar; an operator reaches Users from Members.

Dashboard: the lines it judges by can be moved. What turns a queue or a consumer group amber or red was fixed in the code: a group 60 seconds behind, five minutes of backlog, 1% of acks failing, a node at 80% of its memory. A new Settings page states those lines and lets a tenant move them, for all its queues or for one queue (also from the queue’s own page), and mark a queue that no consumer group is meant to read. The moved lines are one JSON document in the tenant’s KV (queen.console / settings), written with a version check, so two people cannot overwrite each other. A blank line keeps the built-in value; saving needs the right to configure a queue.

Dashboard: the two Performance pages are gone. Analytics and Queue operations showed, with their own charts, what Workload, a queue’s own page and System already hold: Workload goes from a namespace or a task down to one queue (flow, lag, acks, dead letters, retention). A link to /analytics or /operations lands on the queue it named, or on Workload, with the same time window.

Dashboard: a supervisor card charts all its queues. The activity chart of a card opened on the first queue the application reports. It now opens on the sum of all of them, each counted once whatever the number of replicas, and the list of queues, now to the left of the chart, filters it to one.

Kubernetes: an operator runs a cluster from one object. deploy/operator is an operator and its QueenCluster definition (queenmq.com/v1alpha1). It creates the StatefulSet, the Services and the disruption budget of the Kubernetes page and does what a StatefulSet cannot. It restarts the pods one at a time with the leader last, each behind a write that commits. It adds and removes voters through the membership API, a node leaving the membership before its pod stops. It replaces a pod whose volume is lost (the annotation queenmq.com/replace-pod), and it grows the volumes. It restarts nothing while a voter is behind and does not catch up, and says so. It uses the broker’s HTTP API as it is and keeps no state outside the object. It takes no backups, it does not take over a cluster applied by hand, and its API may still change. These steps ran on k3s against 2.0.3 on 2026-10-08, under a write load of 6,100 pushes of which none was lost; on this release its unit tests ran, and those runs were not repeated. The image is ghcr.io/queen-mq/queen-operator, built by the Operator workflow. Docs: operate/operator.

Terraform: a provider for queues and the S3 sink. deploy/terraform-provider-queen is a provider for Terraform and OpenTofu with two resources. queen_queue declares a queue’s options: one you leave out stays as the broker has it, and destroying the resource forgets the queue and deletes it only with delete_on_destroy. queen_s3_sink declares a cluster’s S3 sink through the control plane, with a secret_key that is write-only and never enters the state. Its acceptance tests pass against this release with Terraform 1.15.8 and OpenTofu 1.13.1. It is not in a registry yet: build it and point the CLI at the build with dev_overrides. Docs: operate/terraform.

PHP client 2.4.3 - 2026-10-10

Laravel: the PHP client pins supervisor 0.8.1. queen:supervisor-install installs 0.8.1, with the fixes of the Rust master below. A deployment that pins the SHA-256 of the manifest, as --manifest-sha256 or supervisor_binary.manifest_sha256, takes the one of the 0.8.1 release manifest.

Laravel: a worker that has not consumed counts from the start of its first failed pop. A supervised worker whose pops fail records since when, and queen:supervisor status reports its pool after 60 seconds (PHP client 2.4.2). The time was taken when the pop failed, not when it began. A broker that keeps its connections but stops answering fails a pop only when the request times out, 35 seconds for each broker URL the client tries, about 105 seconds with three, so a hung broker showed as pool_not_consuming about 165 seconds in. The worker now records the start of the pop that failed: the pool shows as not consuming once that first pop gives up. A pop that works still clears it, and the next failure starts a new count from its own pop.

Supervisor 0.8.1 - 2026-10-10

Supervisor: strays are stopped, prefork is tried again at queue:restart, a dead server’s workers are reaped, and only the probe closes a circuit. The Rust master has the same four changes as the PHP engine of PHP client 2.4.1: a late fork reply is read once per loop whether or not a worker of that server is polled; a queue:restart announced by a spawned worker starts a fork server when prefork has none; a forked worker whose server died is reaped by the master when the master is the nearest subreaper (PID 1 in a container), with its real status, instead of staying a zombie that kept its pool slot; and a sibling that reached stable_after while the pool’s circuit was in backoff no longer closes it, which only the probe does, as in the PHP engine. The master also no longer lets a pool that balances inherit its own QUEEN_LARAVEL_BLOCK_FOR. The PHP client pins this release from 2.4.3; the worker-invocation record pins its behaviour.

PHP client 2.4.2 - 2026-10-10

Laravel: a supervised worker that cannot consume leaves, or says so. Laravel’s worker catches what a pop throws, reports it, sleeps a second and pops again, for as long as it lives, so a worker whose every pop failed stayed alive and counted as capacity: with the PHP client 2.3.1, forked workers that popped from a default connection that only dispatched threw on every pop for half an hour while queen:supervisor status said ready, at full capacity, with closed circuits. A worker started by either engine, spawned or forked, now tells two cases apart. When its loop works another connection than its pool’s, or a pop on the pool’s connection throws a LogicException (InvalidArgumentException included), no retry can help: it throws WorkerCannotConsume from its next loop, which reaches the application’s exception handler, and exits 1, which both engines count as a crash, so the pool’s restarts back off and its circuit opens. Any other failure, a broker that is down, slow or refusing, leaves the worker running, since restarting every worker of every pool would turn a short outage into a restart storm: the worker writes <pid>.pop-failures in the state directory’s private exits directory, saying since when its pops fail, and the first pop that works, empty or not, removes it. A healthy worker writes nothing. SupervisorState reads the file for the workers a pool lists: readiness() reports pool_not_consuming when every running worker of a pool has failed every pop for 60 seconds, and capacityHealth() reports pool_worker_not_consuming when any has, so queen:supervisor status --check and --check-capacity fail; a shorter outage reports nothing, and the issues clear on their own. status --json lists those workers on each entry of pool_status, in not_consuming with the longest in not_consuming_seconds, however short their failure, for monitors with thresholds of their own. It works with the supervisor 0.8.0: both engines already pass the directory to their workers and empty it for every generation. The issue codes status --json reports are now listed in the supervisor guide as a stable contract.

What an application sees change: a supervised worker may now exit 1 with WorkerCannotConsume where it used to loop on the same exception; workers write exits/<pid>.pop-failures in the state directory while their pops fail; and readiness() and capacityHealth(), with status --check and --check-capacity, report two new codes, pool_not_consuming and pool_worker_not_consuming. A readiness probe that passed during a broker outage now fails once the outage lasts 60 seconds; the Kubernetes guide shows how to leave these codes out of a probe that must not stop a rollout.

Laravel: a delivery that carries no Laravel job goes to the dead-letter queue at once. A message whose data is not a JSON object, or names no job to call, made pop() throw, and the delivery was left to its lease. A lease expiry never charges the queue’s retry limit, which only a failed ACK does (checked on the 2.0.4 broker with retryLimit 3 and dlqAfterMaxRetries: six expiries, six deliveries, no dead letter), so it came back at every expiry, forever, and the messages behind it on its partition never ran; on a queue with one partition, none did. The worker now files it into the dead-letter queue at its first delivery, as it does a failed job, reports a NotALaravelJobException to the application’s exception handler with the delivery’s transaction ID, queue, partition, delivery attempt and first 120 bytes, the same text as the dead-letter error, and pops again. No failed_jobs row is written: it was never a Laravel job. Since the PHP client 1.0. A Laravel job that fails for the last time also goes to the dead-letter queue, as before, beside its failed_jobs row, so a count of dead letters includes ordinary failures: the error text “carries no Laravel job” tells the deliveries of this paragraph from them.

Laravel: a job whose timeout its lease cannot cover ends a supervised worker. A job with a timeout at or above retry_after, without lease renewal, made pop() throw a RuntimeException and was left to its lease, silently, at every delivery. Only a deploy fixes the job class or the connection, so the exception is now an UnsafeJobTimeoutException, a LogicException with the same message, and a worker started by a supervisor leaves at its next loop: its pool’s restarts back off and the crash shows in queen:supervisor status. The delivery waits, to lease expiry, for a worker that runs the fixed code.

Laravel: a refused supervisor installation says why, and root can install it for the user that runs it. The launcher starts the Rust supervisor only when the user it runs as owns each directory and file of the installation. Otherwise it stopped with exit code 70 and “The Queen supervisor installation base must be a real, owned directory without group/world write access.”, which named neither the condition that failed nor the way out, since PHP client 1.3.0. An image that ran queen:supervisor-install as root and the supervisor as www-data stopped there, and so did the Dockerfile of the Kubernetes guide. The message now goes on with the path and the condition: missing, a symbolic link, not a directory, a mode that grants group or world write access, or another owner than the effective user, with both users by uid and name and the ways out. The binary, the receipt and the installer’s own refusals do the same; the first sentence and the exit code are unchanged. queen:supervisor-install --owner=<user>, a name or a numeric uid, lets root install and verify as itself and then give the installation to that user, with the modes a normal install gives. It changes the owners from the files up to the base with lchown(), below the pinned base, so no other user can swap an entry before it changes. It is refused without root, for a user that does not exist, and on a thread-safe PHP, whose chdir() pins the base by name only. In a multi-stage build, COPY --chown gives the copied installation to the runtime user, as the Kubernetes guide now shows.

Laravel: a refused state says whose it is and whom to run as. A Kubernetes exec probe runs as the container’s user. In a container that starts as root and runs the supervisor as www-data, queen:supervisor status --check refused the state with “Queen supervisor state ancestor [/run/queen-supervisor] must be owned by root or the current user.” and nothing else: the message did not say that the directory is www-data’s, that the probe ran as root, or that root is refused by design. The probe failed and Kubernetes restarted a healthy pod every few minutes. Since PHP client 1.3.0, where the supervisor arrived. Every refusal of a path that another user owns, root included, now goes on to say who owns it and who is asking, by uid and by name when the user database has one, and how to run as the owner, such as su -s /bin/sh www-data -c "php artisan queen:supervisor status --check" or securityContext.runAsUser: 33 on the container. The first sentence of each message, the checks themselves and the exit codes are unchanged: a probe must still run as the supervisor’s user, and the Kubernetes guide now shows the probes wrapped in su for a container that starts as root.

Laravel job metrics: a timed-out attempt and a job that gives up with fail() count as failed. A job that outlived its timeout was not recorded at all: Laravel’s timeout handler raises JobTimedOut, then WorkerStopping, then kills the worker, and the recorder listened only to JobProcessed and JobExceptionOccurred. The Jobs page therefore missed those attempts, and a class’s longest runs were missing from its runtime and from the max_ms that the tuning advice compares with shutdown_grace. Such an attempt is now a failed one, with its runtime, written at that WorkerStopping before the worker dies. A job that calls $this->fail() returns normally, and Laravel raises JobProcessed for it: it counted as processed, and now counts as a failed attempt. Since PHP client 1.7.0, where job metrics arrived. A forked worker also no longer writes counts it inherited from the fork server, under the server’s key, if it stops before its first loop; Laravel’s first loop already started them over, so no released version wrote them.

PHP client 2.4.1 - 2026-10-09

Laravel prefork: a forked worker works the connection it was given. The supervisor sends the fork server the arguments after queue:work, the connection first, and the fork server bound them as a command line of their own: Symfony took the connection for the command’s name, connection stayed empty, and the worker fell back to queue.default. A forked pool therefore popped from the application’s default connection, with the pool’s --queue. A default connection that only dispatches threw on every pop, every 2 s per worker, and the pool worked no job; a default that is a Queen connection worked, with the default’s settings instead of the pool’s. Spawned workers (prefork off) were never affected, and ps showed queue:work <connection> all along, because the process title is set by hand. Since the PHP client 1.7.0, where prefork arrived. The fork server now binds the arguments after the command’s name. The tests that let this through ran a stand-in for queue:work and, when they ran the real one, an application whose default connection was the pool’s. They now run Laravel’s own queue:work from an application whose default connection is none of the pools’, both as a spawned worker and as a forked one, and the fork server, the PHP engine and the Rust master are each checked against one record of what a pool’s worker receives (tests/Fixtures/Supervisor/worker-invocation.json), from config/queen.php to the worker’s arguments and environment. That record also showed the PHP engine giving a spawned worker of a balancing pool an empty QUEEN_LARAVEL_BLOCK_FOR, which the connector ignored; it is no longer set, as for a forked worker.

Laravel prefork: the fork server accepts a log service that is not Laravel’s. Before each fork it forgot the log channels through getChannels(), which an application’s own PSR-3 logger bound as log does not have: the server failed as it started, and the supervisor spawned the workers instead, without prefork. It now forgets channels only from a LogManager.

Laravel: a pool’s settings reach the worked connection alone. A supervisor starts a worker with its pool’s consumer group, retry_after and block_for in the environment, and the connector applied them to every Queen connection the worker resolved. A job on connection A that dispatched onto connection B built B with A’s group and lease: size() answered the wrong group’s depth, and a B with an explicit lease renewal interval, sized for its longer lease, failed its timing check and the dispatch threw. The supervisor also names the worked connection, and the settings now apply to that one; another connection keeps its own configuration.

Laravel: a pool works its connection’s queue and consumer group. A pool that named only its connection took consumer_group and the default queue from config/queen.php, not from that connection, so under the supervisor its workers consumed another group and another queue than queue:work <connection> run by hand. The connection’s own settings are the defaults now, and the worker-invocation record pins a pool that names only its connection.

Laravel prefork: a worker forked after queue:restart leaves at once. The master replaces the fork server when a worker leaves with the restart marker, and a scale-up in between forked from the old server. Laravel’s worker reads the restart signal once, as its baseline, so such a worker never stopped and ran the old code until it was removed. The fork server remembers the signal at boot, and a child forked after it changed leaves with the restart marker: the master replaces the server, and the replacement runs the code on disk. Since the PHP client 1.7.0.

Laravel prefork: the fork server lets go of the queue connections the boot resolved, and a child reports its exception. The queue manager keeps every connection it resolved. One a provider or a health check resolved at boot was shared by every forked worker, with the server’s environment instead of the pool’s settings and with one socket for all; the server now forgets them before each fork and warns at boot which ones it found. And a forked worker’s exception went to stderr alone, where a spawned worker’s reaches the application’s exception handler through the console kernel: the child reports it the same way and exits 1.

Laravel: a connection’s own url is not replaced by the default urls. QUEEN_URLS, a cluster, is the default of every Queen connection, and it replaced the single url of a connection on another broker, in the connector and in the supervisor’s export alike.

Laravel: failed jobs of other drivers stay Laravel’s. With sync_failed_jobs on, the default, every failed job on redis, database or sync took the cache lock, waited up to failed_jobs_lock_wait under contention and threw on a store without locks; and queue:forget, queue:flush and queue:prune resolved every record’s connection, so a record of a connection since removed made them throw. A failure on another driver goes to Laravel’s provider now, and such records are removed without resolving their connection.

Laravel: QUEEN_SUPERVISOR_REMOTE_STATUS=1 and QUEEN_DASHBOARD_ENABLED=1 turn their features on, as =1 turns prefork, coordination and metrics on. Queue names given as an array are trimmed like the comma-separated form.

Laravel PHP engine: SIGHUP drains, prefork is tried again at queue:restart, strays are stopped, a dead server’s workers are reaped. The engine died hard on SIGHUP, with its workers and its lock behind it; it drains, as the Rust master does. A fork server that missed its boot timeout, or failed a fork, left the engine spawning until it was restarted; a queue:restart announced by any worker asks for a new server. The late reply to a fork request the engine gave up on stopped its stray only when another forked worker was polled; every server’s events are read once per loop. A forked worker whose server died was taken for exited 0 once gone; where the engine is the nearest subreaper its real status is read, instead of a zombie. A request line over the limit no longer ends the server, and every worker with it. A document without quiet runs quiet, as the Rust master reads it.

2.1.0 - 2026-10-09

Server: a standby cluster. A second cluster can now replay the first one’s log and take over when the first is lost. The standby’s leader reads the source’s committed entries over the raft port and proposes each one into its own log, so the standby holds the source’s messages, cursors, leases, KV, timers and dedup window, a moment behind. It answers reads, refuses writes with 503 and "code": "standby" on every node, and becomes an ordinary cluster with POST /api/v1/system/link/promote. An empty standby follows a young source from the start of its log (QUEEN_LINK_STANDBY); a source with a history seeds the standby’s first node with its snapshot (QUEEN_LINK_SEED). Replication is asynchronous: a promotion after a crash loses at most what the standby had not read yet, and a planned switch loses nothing. On one laptop, with both clusters and the load generator sharing a disk, a standby stayed within 0.25 s of a source taking 200,000 messages a second. The source keeps its log for the standby on every node and across restarts, and gives it up when its own disk fills (QUEEN_LINK_HOLD_S, QUEEN_LINK_HOLD_DISK_PCT). GET /api/v1/system/link, the link block of /health and the queen_link_* series say where a standby is. The source needs QUEEN_LINK_TOKEN, the standby QUEEN_LINK_SOURCE and QUEEN_LINK_SOURCE_TOKEN; a cluster with none of them behaves as before. See Standby cluster.

Server: the last node of a cluster to stop no longer hangs. A node that led a cluster whose other nodes were already down, with an entry in its log that could no longer commit, waited for that entry for ever while it shut down, and used a whole core doing it. A stopping node now leaves once every caller of its entries in flight has an answer; an entry that timed out had already answered retry.

Server: a leader that no majority has acknowledged for two seconds no longer stops for good. A leader cut off for two or three seconds and not replaced, or one whose majority needs a follower with a slow disk, had its next write refused by raft, took the refusal for a lost leadership and stopped planning. It still led, so nothing started it again: every request ran into its deadline until the leadership changed or the node restarted. Every release since 2.0.0 has it. Such a leader now keeps its entries and logs them, in order, when a majority answers again, and a leader that finds itself stopped while it leads starts again after 5 s. Found by Jepsen on a five-node cluster with two slow disks. With the leader of five nodes cut off for 2.4 s, the build before the fix took no write afterwards in 11 of the 12 trials where the leader kept its leadership, and this one took the next write in all 10. The log lines that say when it happens are on Monitoring.

Server: locks and semaphores. A lock is a lease: one holder at a time, for a lifetime the holder declares and renews, with a token that fences a holder that outlived it. A semaphore is the same lease with up to 1,024 permits. One route, POST /api/v1/locks, carries acquire, renew, release and get, up to 64 locks a call, and answers a verdict per operation with HTTP 200 (acquired: false, reason: "held" is not an error). A permit is one KV row in the namespace queen-locks (key <name>#<slot>, the owner as its value, the lifetime as its TTL), so the route adds nothing to the log’s format: an acquire is a putIfAbsent, a renew a put with expect, a release a delete with expect. The token is the row’s version and changes at every renew. An owner makes a call safe to send again: the same owner is answered the permit it has. Locks count against the tenant’s KV quota and KV write rate, need a read-write token, and behind the proxy are part of the KV plan and never quota-blocked. New metrics: queen_locks_ops_total and queen_locks_op_duration_milliseconds. A lock expires; a holder that crashed keeps it until its lifetime ends, a waiter polls, and there are no read/write locks.

Server: KV check, a precondition that writes nothing. {"op":"check","ns","key","expect"} asserts that a key is at a version, or absent with expect: 0. With required: true it gates a KV call or a transaction on a key the call does not write. It is what guards a transaction with a lock: every acquire and renew answers a guard, a check of the permit’s row at its token, and a transaction that carries it commits only while the lock is still the caller’s.

Server: KV versions are a fencing token. On one key, a later write always has a higher version than every earlier one, across a delete and a re-create, an expiry, a restart and a change of leader. The planner always assigned them that way; it is now the documented contract, with a test, and the docs no longer say not to rely on their order.

Clients: lock, semaphore, check and guard, in all six SDKs. queen.lock(name) and queen.semaphore(name, limit), each with a lifetime, return a handle that acquires (with an optional wait), keeps the current token, renews and releases; transaction().guard(lock) puts the guard in the commit and reads the token when the commit is sent. The JavaScript, Python, Go and Rust handles renew in the background every third of the lifetime and signal a lost lock. The PHP and C++ handles have no background renewal: keepAlive() (keep_alive() in C++) renews at a checkpoint in the work loop. A guarded commit that lost only to its own handle’s renewal is sent again with the new token. kv.check is on the KV client and the transaction’s KV builder of each SDK. In the JavaScript, Python, Go, Rust and C++ clients 2.1.0 and the PHP client 2.4.0. The Rust client requires queen-protocol 1.4.0, the wire-types crate that carries the lock types.

Dashboard: a Locks page. Every held lock and semaphore permit with its holder, since when it is held, its last renewal and when it expires. It reads the permits as KV rows, so a viewer can open it, and it writes nothing: the drawer shows the guard a transaction carries and the call that releases the lease period on screen. get answers the same since for each holder: a renewal does not move it.

Dashboard: supervisors grouped by application. Instances that publish under one group share one card: workers against the target, pools to check, the instances underneath, and the last hour of traffic or backlog of a reported queue (#110). The card is built from the dashboard’s own header, stats and tables, and a healthy application is a grey dot, as on the Overview.

Dashboard: the theme switch is an icon menu. System, Light and Dark sit behind one icon in the header instead of a select (#108).

Server: a KV call that mixed a read with writes that all lost no longer hangs. A batch on POST /api/v1/kv such as a putIfAbsent that lost beside a get wrote nothing, so it had no log position, and its read waited for one until the statement timeout (30 s) and answered 503. Such a call now takes a position of its own and answers at once.

Server: the upgrade is one-way. A node forwards a check to the leader only when every member can read it. Once every member runs this release the leader raises the cluster version to 5, and from then on 2.0.4 or older refuses to start on the data directory. Until then a call that carries a check answers 503 (kv_check_needs_cluster_version_5); acquire, renew and release need no new format and work as soon as the node you call runs this release. To keep the way back open while the release bakes, set QUEEN_RAFT_CLUSTER_VERSION_MS=0.

2.0.4 - 2026-10-08

Dashboard, sign-in page and docs: the logo is a yellow sunflower. A new drawing replaces the red one of 2.0.3: seven yellow petals round the q of “queen”, with “message queue” under the name. The dashboard shows the q and its petals beside the word “queen”, the sign-in page and the README show the whole logo, and the tab icon is the q with its petals. The picture of the bee and the sunflower on the documentation site takes the same yellow.

Dashboard: the logo’s yellow is the accent. Primary buttons are yellow with black labels, and the page you are on, selected segments and focus rings take the same colour. On light surfaces, text and rings in that colour are a darker gold, so they can be read. The sign-in page and the documentation site follow. Status colours keep their meanings: amber is attention, coral is failure.

Dashboard: System, Light and Dark. The theme toggle in the top bar is now a choice of three. System follows the device’s colour scheme as it changes, and is what a browser with no stored choice gets. Light and Dark stay fixed on that device until System is chosen again, and a choice made before 2.0.4 is kept.

Dashboard: supervisor cards share one grid. The Supervisors page gave each publication group its own two-column grid, so two groups with one instance each took two rows and left the second column empty. The instances now share one grid, each card under its group’s name: two to a row on a wide screen, one on a narrow one.

The broker’s engine, its API and the clients are as in 2.0.3.

2.0.3 - 2026-10-08

Server: a pop that nobody receives no longer counts a delivery attempt. A pop’s answer waits for the checkpoint that holds its lease. When that takes longer than the margin the broker keeps before the request’s deadline, or the client leaves, nobody receives the answer, and the broker hands the leases back at once. It left the delivery attempt counted all the same, so the next consumer got the message as a redelivery. With deliveryAttempt 2 on its first real delivery, a Laravel job with tries = 1 failed with “attempted too many times” without ever running. In a 23-hour run of 4.1 million jobs at 50 jobs/s, 4 jobs failed that way, each about 0.4 s after its push, while every message went out to a worker once; checkpoint writes reached 0.45 s against a 250 ms margin. Handing back an unreceived claim now also takes back its attempt, on the leader’s engine and through the Nack a follower sends. A lease that really expired still counts.

Clients: a consumer can report to the dashboard, off by default. Every SDK’s consumer builder takes a supervision option that names a group for the dashboard: .supervision({ group }) in JavaScript, Supervision(&queen.SupervisionConfig{...}) in Go, supervision(...) in the Python, Rust, C++ and PHP clients. Each consume call then writes an observation to the broker’s queen-supervisor KV namespace every 10 seconds, and a last one when it stops: its execution model, its live loops against the configured concurrency, the handlers running, the handler calls completed and failed, and the age of the oldest handler still running. No payload and no error text is published. Publishing is best effort and bounded, and it needs a credential that can write KV. It only observes: it restarts nothing, scales nothing and changes no ack or lease, and with the option off there is no timer and no request. The PHP client publishes at its cooperative checkpoints, so a long synchronous handler leaves its last observation stale. In the JavaScript client 2.0.4, the Python, Go, Rust and C++ clients 2.0.3 and the PHP client 2.3.1.

CLI: queenctl tail --supervision-group. tail reports the same way when the flag names a group, one identity for each invocation.

Dashboard: the Supervisors page shows the consumers that report. Beside the process supervisors it lists each reporting consumer with its execution model (async tasks, goroutines, threads or cooperative loops), its live loops against the configured concurrency, its busy handlers, its completed and failed handler calls, its last completion and the age of its oldest handler in flight. A completed handler does not prove its ack succeeded, and a fresh heartbeat does not prove progress; a stale or inconsistent report stays unconfirmed. Process budgets and readiness stay with the process supervisors.

Dashboard, sign-in page and docs: a new logo. The q that is a sunflower replaces the sunflower and the bee: as a badge beside the word “queen” in the dashboard, as the wordmark on the sign-in page and in the README, and as the tab icon. The sign-in page now takes the dashboard’s light or dark scheme.

JS client 2.0.3 - 2026-10-07

JS client: stopping a consumer no longer strands its messages. Aborting the signal passed to consume() was checked only between polls. A long poll open at the abort stayed open for up to its timeout, and the broker could still hand it a message. .each() then dropped that message without settling it, so its partition stayed blocked until the lease expired, on every rolling restart. The abort now closes the poll in flight, and the broker hands nothing to a poll whose caller is gone. A pop answer already arriving is read to the end, since the broker leased its messages when it sent it. Under .each(), messages popped but not yet handed to the handler, and those popped beyond .limit(), go back with a retry ack: the lease is released and no retry is charged. An aborted request is not a backend failure: it is not retried, does not fail over to another node and does not mark one unhealthy. A wait between attempts (429 backoff, retry after a 5xx or a network error) ends at once instead of running out. A wait(false) consumer stopped during a pop now resolves instead of rejecting. Two cases still fall back to the lease: an answer lost before its headers arrive, and a retry ack that cannot be delivered. Measured on a three-node 2.0.1 cluster, a consumer stopped as a message arrived: 40 of 40 messages waited out the lease before, none after.

JS client: the request timeout covers the response body. A JSON response was read after the request’s try block had ended, so the timeout was already cleared: a body that stalled midway hung with no timeout.

2.0.2 - 2026-10-07

C++ client: commit_on_delivery() commits a pop at delivery. The new QueueBuilder::commit_on_delivery() makes pop() and pop_result() send the broker’s autoAck=true: the broker moves the consumer group’s cursor past the messages as it hands them out, with no lease and nothing to ack, so the delivery is at-most-once. auto_ack() still decides only the ack after a consume() handler and has no effect on pop(). consume() always leases its messages, and with commit_on_delivery() it throws std::invalid_argument before any request. On the ephemeral pop, EphemeralPopOptions::commit_on_delivery is the new name of auto_ack, which still works and is deprecated.

C++ client: a handler that throws no longer loses a message. With auto_ack(false) and each(), a handler exception was dropped without a log line and the loop went on with the rest of the pop: a handler that then acked a later message of the same partition moved the cursor past the failed one, and the failed message was lost. After a failure, the later messages of the same partition in that pop are no longer handled; they come back with the failed one. The other partitions of a multi-partition pop are still handled. The consumer still sends no nack under auto_ack(false), by design: the failure is now logged, and the message comes back when its lease expires. With auto_ack(true) the nack now carries the exception’s message as its error, capped at 4096 bytes and with invalid UTF-8 replaced, so the text cannot stop the nack. A handler that throws something other than a std::exception is handled the same way; before, it ended the worker.

C++ client: renew_lease() renews. The consume loop accepted the setting and never renewed. While the handler runs, it now renews the batch’s lease every interval_millis, one request per lease, and stops after the ack or nack, as the JS, Go and Rust clients do.

C++ client: consume() throws a pop’s 4xx and waits out a 5xx. A 4xx on a pop other than a 403 or a 429, such as a 400, ended the worker inside a pool task whose result nobody read, so consume() returned as if it had finished. It now throws that error once every worker has stopped, as it does for a 403. A 5xx that outlasted the retries ended the worker the same way; the loop now waits a second and polls again, as after a network fault, and a connection timeout now counts as a network fault. pop() still logs a failure and returns an empty result.

C++ client: ack() and renew() report what the broker refused. ack() returned success: true for any HTTP 200 and renew() for any answer, but the broker answers 200 with success: false when it settled or extended nothing, for example under an expired or released lease. Both now read the body: success is false with an error, and ack() keeps the broker’s answer in result.

Server: the pop parameter commitOnDelivery. commitOnDelivery=true is the new name of a pop’s autoAck=true: the broker moves the group’s cursor past the messages as it hands them out, with no lease and nothing to ack, so delivery is at-most-once. Every SDK also has an autoAck() on consume(), which is client-side: the pop stays leased and the SDK acks after the handler, so delivery stays at-least-once. The broker option now has a name of its own. autoAck is still accepted as a deprecated alias, so the released Go and Rust SDKs and the CLI keep working: a pop that sends either name set to true commits at delivery, and a pop that sends neither is leased as before. The queue, partition, discovery and ephemeral pops read both names, conflation refuses both with a 400 that names both, and the OpenAPI document marks autoAck deprecated. The docs name only commitOnDelivery. A broker up to 2.0.1 reads only autoAck: it ignores commitOnDelivery and leases the batch.

Server: a page of message history reads only the appends that hold it. A historical GET /api/v1/messages read each partition backwards from its live tail, 256 offsets at a time, and decoded every payload before it applied to, so a small page of old messages could read a large newer suffix, and a smaller limit did not bound the work. It now seeks the queue log’s indexes, active and sealed, by timestamp and offset, ranks the candidates from their metadata, and reads only the appends that contain the page. The response fields, the status filters and the minute rounding of to are unchanged, and so is the storage format. Listing a tenant’s partitions and cursors still costs what it did, so deep offsets and selective status filters can still be slow.

Dashboard: the Overview lists the queues that need you, and there is a Supervisors page. Under the verdict, the open issues are a list you can search and filter (needs attention, a lag of 5 minutes or more, no reader, pending increased, all queues), ten to a page. Selecting one opens a drawer beside the page with its pending and in-flight counts, the change between two readings, the groups behind and the next thing to check. The new Supervisors page shows the worker status that Laravel supervisors publish to the broker, and reads it again every 30 seconds like the other pages.

Python client: admin.move_message_to_dlq() and admin.clear_queue() are deprecated and raise. They sent POST /api/v1/messages/:partitionId/:transactionId/dlq and DELETE /api/v1/queues/:name/clear, routes the 2.x broker does not have, so every call failed with a 404 no_such_route. Both now raise NotImplementedError before any request and name the way that works. For a dead letter, ack the message with the dlq status, await queen.ack(message, 'dlq', {'group': group}), while its consumer group holds the lease. To skip what is queued, seek the consumer group to the end, await queen.admin.seek_consumer_group(group, queue, {'toEnd': True}); to drop the queue with its messages and configuration, await queen.queue(name).delete().

Python client: renew() and the batch ack() read the broker’s verdict. The broker answers HTTP 200 whether or not it extended a lease or took an ack, and says which in the body. renew() reported success: True for every 200, and a batch ack() did the same for a refused ack, for example under an expired lease. renew() now reports success: False, with the broker’s error, when it extended nothing: the lease expired, was released by an ack or nack, or does not exist. It also returns renewed, the count the broker extended. A batch ack() reports success: False when the broker refused any item, with each item’s verdict in results.

Python client: commit_on_delivery() commits a pop at delivery. The broker can move a consumer group’s cursor past the messages as it hands them out, with no lease and nothing to ack, but this client could not ask for it: auto_ack(True) on a pop never reached the broker. queen.queue(q).group(g).commit_on_delivery().pop(), and pop_result(), now send autoAck=true, the parameter every 2.x broker reads; the messages come back with no leaseId. This is at-most-once: a crash after the pop loses the messages. consume() always leases, so it raises ValueError before any request when the builder has commit_on_delivery(). auto_ack() stays the ack consume() sends after the handler and still never reaches the broker. On ephemeral queues, queen.ephemeral.pop() takes commit_on_delivery=True; its auto_ack argument, which meant the same, still works and is deprecated. POP_DEFAULTS now says what a pop does: wait is True, as every pop has long-polled unless .wait(False), and auto_ack is never sent. No other behaviour changes.

Python client: pop() raises the broker’s 400 refusal of a conflating pop. pop() returns an empty list when a pop fails, and did so for the broker’s 400 refusal of a conflating pop too: one without a consumer group, or one with commit_on_delivery(). No retry can make either succeed, and an empty list reads as an empty queue, so a consumer that asked for last-value delivery never learned that it was not getting it. pop() and pop_result() now raise that 400, as the JavaScript client does. Every other failure still returns an empty list.

Python client: a nack in each() mode skips only its own partition. A multi-partition pop claims several partitions under one lease, and a nack releases only the failed message’s partition. The loop dropped the whole rest of the pop after a nack, so the other partitions’ messages stayed leased and came back only when the lease expired. It now skips only the later messages of the failed partition, which the broker redelivers, and handles the others at once.

Python client: a handler error is never taken for a pop error. With auto_ack(False), consume() sends no nack for a handler that raises, by design, and the error stops the consumer. When the error’s text said “timeout” or “connection”, the loop read it as a long-poll timeout or a network fault instead: it polled again with the message still leased, and the error was lost. Such an error now stops the consumer like any other handler error.

Laravel and supervisor 0.8.0: prefork per pool. A pool’s own prefork key wins over supervisor.prefork: false spawns that pool’s workers, true forks them, null follows the switch. One forking pool is enough to start the fork server, and both engines spawn the workers of a pool with prefork false beside it. Use it for jobs that must not run in a forked process, such as a Kafka client the job creates; a boot that starts a thread still makes the fork server refuse to serve, and then every pool spawns. The dashboard names the pools that differ from the switch. PHP client 2.3.0 pins supervisor 0.8.0, which reads the new key: run php artisan queen:supervisor-install after the upgrade. A fork took 0.48 ms on the Linux server, against 88 ms for a worker that booted the benchmark application on its own (benchmark-queen/2026-10-05-laravel-worker-memory).

PHP client: autoAck() is the ack consume() sends after the handler. The reference said that on pop() it was the broker’s at-most-once auto-ack, which never reached the broker. It is not meant to: autoAck() has no effect on pop(), popResult() and popDetached(). A pop commits at delivery only with the new commitOnDelivery(), below. The reference and the builder now say so, and tests pin it. No behaviour changes.

PHP client: commitOnDelivery() commits a pop at delivery. The broker can move a consumer group’s cursor past the messages as it hands them out, with no lease and nothing to ack, but this client could not ask for it. $queen->queue($q)->group($g)->commitOnDelivery()->pop(), and popResult() and popDetached(), now send autoAck=true, the parameter every 2.x broker reads, and nothing else; the messages come back with an empty leaseId. This is at-most-once: a crash after the pop loses the messages. consume() and getConsumer() always lease their messages, so they throw LogicException before any request when the builder has commitOnDelivery(). autoAck() stays the ack consume() sends after the handler and still never reaches the broker. The broker refuses commitOnDelivery() together with conflation() (400), and pop() throws that HttpException. On ephemeral queues, $queen->ephemeral()->pop() takes 'commitOnDelivery' => true; its autoAck option, which meant the same, still works and is deprecated, and passing both throws InvalidArgumentException.

PHP client: Admin::moveMessageToDLQ() is deprecated and throws. It posted to /api/v1/messages/:partitionId/:transactionId/dlq, a route the 2.x broker does not have, so every call failed with a 404 no_such_route. No 2.x route dead-letters a message by its address. The method now throws BadMethodCallException before any request and names the way that works: ack the message with the dlq status, $queen->ack($message, 'dlq', ['group' => $group]), while its consumer group holds the lease.

PHP client: renewLease() in batch mode counts from the pop. With concurrency(N), consume() handles the batches of a poll round one after the other, but it started each batch’s renewal interval when the batch reached its handler, so the check before that handler never found it due. The interval now runs from the pop answer, and a batch that waited behind other handlers longer than the interval is renewed before its own handler starts. The loop still cannot renew while a handler runs, since PHP runs the handler on the loop’s only thread, so a handler that declares a second parameter now gets a renewal call: function (array $messages, \Closure $renew). $renew() renews the leases in hand once renewLease()’s interval has passed, or on every call without an interval, and returns whether the broker extended them; a long handler calls it between parts of its work. A one-parameter handler is called as before. The loop’s own renewal sends one request per lease instead of one per message.

Laravel: queen:consume sets and renews its lease, and stops on --idle-timeout. With --auto-ack, the nack of a handler that throws now carries the exception’s message as its error. Without --auto-ack the command still sends no nack, as the SDK consumers do: it prints the error and Not nacked without --auto-ack, and the message comes back when its lease expires. --lease=SECONDS, default retry_after (90), sets the lease of every pop; with lease_renewal on in config/queen.php and --auto-ack, the command renews it while handle() runs, with the renewer queue:work uses, checks it before the ack or nack, and neither acks nor nacks a lease it can no longer vouch for. Without --auto-ack renewal stays off and the command says so: a handler that acks by itself releases the lease, and renewing it would stop the process. --idle-timeout, which did nothing, now stops the command with exit code 0 after N ms without a message. --limit counts every message handed to handle(), failed ones too, and a pop never asks for more than it leaves. A refused ack or nack prints one warning, and a broker the pops cannot reach is reported at most every 30 s, then once when it answers again; the command waits 1 s after each pop that reached no broker instead of polling in a tight loop. HighLevelConsumer gains lastPopError(), and its ack() and nack() take an optional error. The help of --batch and --conflation now says what they do.

Laravel: the lease renewal helper finds the application’s autoloader. It walked up from the package’s Queen.php to the first vendor/autoload.php. When Composer links the package in from a path repository, PHP reports that file by the link’s target, outside the application, so the helper failed to start (“Unable to locate Composer autoload.php”) or loaded the package’s own development autoloader. It now asks Composer for the autoloader that loaded the package, and walks up only when Composer registers none.

Laravel: the supervisor checks the settings its workers run with, on every connection. A worker’s queue connection starts from config/queen.php whatever its name, but the supervisor and the dashboard read config/queen.php only under the connection named queen. A pool on a second connection, for example one that sets only 'prefetch' => 'auto', was refused for a missing lease_renewal that its workers did have, and the dashboard showed lease renewal off for pools whose workers renewed. Both now start every queen connection from config/queen.php, as the workers do.

Go client: Each() with AutoAck(false) stops at the first handler error. The loop handed the rest of the popped batch to the handler after a message failed and kept only the last message’s error. When a later message succeeded, Execute returned nil, and if the handler had acked that later message, the ack moved the cursor past the failed one, so it was never delivered again and never reached the dead-letter queue. Now the first error stops the worker at that message, the rest of the batch does not reach the handler, and the error comes back out of Execute, as the transaction tutorial says. The loop still sends no nack under AutoAck(false): the failed message comes back when its lease expires, which spends no retry, so nack it in the handler when it should count against the queue’s RetryLimit.

Go client: Renew() reports a lease the broker did not extend. POST /api/v1/lease/:leaseId/extend answers 200 with success: false and renewed: 0 when the lease expired, was released by an ack or nack, or never existed, and Renew() reported every 200 as Success: true. It now reads success from the body and fills Error when it is false, as the JavaScript and Rust clients do.

Go client: a pop the broker refuses no longer loops. The consume loop answered any error other than a network error, a 403 or a 429 by popping again at once: a token the broker refused (401) brought 14,546 pops in one second, and a conflating consumer without a group 2,937 pops in half a second, with nothing shown unless logging was on. A 4xx now stops the worker and comes back out of Execute, as a 403 does; a 5xx waits a second before the next pop, as a network error does.

Go client: a nack in Each() mode skips only its own partition. A multi-partition pop claims several partitions under one lease, and a nack releases only the failed message’s partition. With AutoAck, the loop dropped the whole rest of the pop after a nack, so the other partitions’ messages stayed leased and came back only when the lease expired: live, with a 30 s lease, partition B was not handled before the run ended. It now skips only the later messages of the failed partition, which the broker redelivers, and handles the others at once. With AutoAck(false) a handler error still stops the consumer at that message.

Go client: CommitOnDelivery() is the pop’s option, and AutoAck() no longer affects a pop. Behaviour change. On a pop, the broker’s autoAck=true moves the consumer group’s cursor past the messages as it hands them out: no lease, nothing to ack, at-most-once. AutoAck() sent it from Pop and PopResult, while on Consume it is the ack the loop sends after the handler, which never reaches the wire. The pop now has its own option: CommitOnDelivery(true) sends autoAck=true from Pop and PopResult, and AutoAck() applies to Consume and ConsumeBatch only. A pop after AutoAck(true) is now leased, so it is at-least-once (a message can come again, none is lost) and you ack what it returns; call CommitOnDelivery(true) there to keep committing at delivery. Consume and ConsumeBatch refuse a builder with CommitOnDelivery(true): Execute returns ErrCommitOnDeliveryConsume before any request. EphemeralPopOptions gains CommitOnDelivery, and its AutoAck stays as a deprecated alias with the same effect.

CLI: queenctl pop --commit-on-delivery. The broker moves the group’s cursor past the messages as it hands them out: no lease, nothing to ack, at-most-once. ephemeral pop takes the same flag. On both, --auto-ack is now a hidden, deprecated alias with the same effect, and using it prints a deprecation line on stderr. tail --auto-ack keeps its name, and its help now says what it does: the client acks each message after printing it (the help said “ack server-side”). bench still drains with pops that commit on delivery. Until a client-go release has CommitOnDelivery, queenctl calls CommitOnDelivery or AutoAck, whichever the client-go it is built with has, so the go install build (client-go v2.0.0) and the workspace build both send autoAck=true.

Rust client: a nack in consume() skips only its own partition. A multi-partition pop claims several partitions under one lease, and a nack releases only the failed message’s partition. With auto_ack on, the loop dropped the whole rest of the pop after a nack, so the other partitions’ messages stayed leased and came back only when the lease expired: live, with a 30 s lease, partition B was not handled before the run ended. It now skips only the later messages of the failed partition, which the broker redelivers, and handles the others at once. With auto_ack(false) the loop still abandons the rest of the pop after a failure.

Rust client: the consume loop logs a refused ack. The broker refuses an ack, for example one sent after the lease expired, with HTTP 200 and success: false on the item. The loop read only the transport result, so a handler that outlived its lease had its ack refused without a trace. consume() and consume_batch() now read the verdict and log a refused ack or nack at error level, with the broker’s reason and, for a batch, how many items it refused. The loop still carries on, and ConsumeSummary still counts what the loop decided, not what the broker accepted. Under auto_ack(false) the loop sends no nack for a handler that returns Err, by design, but it logged “nacked” all the same, and consume_batch() logged nothing. Both now log the handler’s error as a warning that says the message was not nacked.

Rust client: commit_on_delivery() replaces pop_auto_ack(). On a pop, the broker’s autoAck=true moves the consumer group’s cursor past the messages as it hands them out: no lease, nothing to ack, at-most-once. The builder now has an option for it, commit_on_delivery(true), which pop() and pop_result() send; without it both stay leased, as before. pop_auto_ack() is deprecated in favour of commit_on_delivery(true).pop() and sends the same request. consume() and consume_batch() refuse a builder with commit_on_delivery(true) with Error::Invalid before any request, since a consumer always leases its messages; auto_ack() stays the loop’s ack after the handler and never reaches the wire. The ephemeral pop builder gains commit_on_delivery() too, and its auto_ack() is a deprecated alias with the same effect.

JavaScript client: a nack in each() mode skips only its own partition. A multi-partition pop claims several partitions under one lease, and a nack releases only the failed message’s partition. The loop dropped the whole rest of the pop after a nack, so the other partitions’ messages stayed leased and came back only when the lease expired: live, with a 6 s lease, the two messages of partition B waited 6 s after a message of partition A failed. It now skips only the later messages of the failed partition, which the broker redelivers, and handles the others at once.

JavaScript client: the pop defaults say what pop() does. POP_DEFAULTS and the README said a pop returns at once and that autoAck(true) commits it at delivery. Neither was ever true: a pop long-polls for timeoutMillis unless .wait(false), and autoAck() never reaches the broker, because it is the ack consume() sends after the handler. A pop commits at delivery only with the new commitOnDelivery(), below. POP_DEFAULTS.wait is now true, the README and the builder’s comments say so, and tests pin both. No behaviour changes.

JavaScript client: commitOnDelivery() commits a pop at delivery. The broker can move a consumer group’s cursor past the messages as it hands them out, with no lease and nothing to ack, but this client could not ask for it: autoAck(true) on a pop never reached the broker. queen.queue(q).group(g).commitOnDelivery().pop(), and popResult(), now send autoAck=true, the parameter every 2.x broker reads, and nothing else; the messages come back with an empty leaseId. This is at-most-once: a crash after the pop loses the messages. consume() always leases, so it throws before any request when the builder has commitOnDelivery(). autoAck() stays the ack consume() sends after the handler and still never reaches the broker. The broker refuses commitOnDelivery() together with conflation() (400), and pop() raises that 400. On ephemeral queues, queen.ephemeral.pop() takes commitOnDelivery: true; its autoAck option, which meant the same, still works and is deprecated, and passing both throws.

JavaScript client: admin.moveMessageToDLQ() and admin.clearQueue() are deprecated and throw. They sent POST /api/v1/messages/:partitionId/:transactionId/dlq and DELETE /api/v1/queues/:name/clear, routes the 2.x broker does not have, so every call failed with a 404 no_such_route and the message not found. Both now reject before any request and name the way that works. For a dead letter, ack the message with the dlq status, queen.ack(message, 'dlq', { group }), while its consumer group holds the lease. To skip what is queued, seek each consumer group to the end, queen.admin.seekConsumerGroup(group, queue, { toEnd: true }); a pop without a group reads as the group __QUEUE_MODE__.

PHP client 2.2.0 - 2026-10-06

Laravel: prefetch 'auto'. Each worker sizes its next pop from how long its jobs take, so a batch holds about 250 ms of work: short jobs get batches of up to 16, a job of a second or more gets one per pop. A job is timed from the moment the worker hands it to Laravel to its next pop, its ACK included, so an empty long poll or the worker’s sleep never counts as work. A queue starts at one job per pop and doubles only after two pops in a row came back full; a short pop sets the next one to what the queue had, an empty pop to one job, and slower jobs shrink it at once. A worker that serves several queues sizes each on its own. It runs in the worker, so it needs no supervisor and applies at once, and like any prefetch above 1 it needs lease_renewal. On the Linux server, 32 workers ran 2,003 jobs/s of 10 ms jobs with it against 1,548 at prefetch 1, and 2,867 with ack_async and pop_ahead, as many as a fixed prefetch of 4 with a third of its pops (benchmark-queen/2026-10-05-laravel-auto-prefetch). The Laravel guide now describes three profiles, safe, balanced and fast; balanced and fast long-poll (block_for 1) with the pool’s sleep at 0, since workers asleep when a burst began left it to the few awake ones and pushed the p99 at 500 jobs/s to 338 ms in one run of five. The dashboard shows 'auto', and its advice for short jobs suggests it.

PHP client 2.1.0, supervisor 0.7.0 - 2026-10-05

PHP client 2.1.0 pins supervisor 0.7.0: the Rust master reads lease_service from its configuration and handles the queue:restart exit below, so 0.6.0 cannot run with it.

Breaking, Laravel: config/queen.php reads 20 environment variables instead of 95. Only the values that differ between environments or deployments still read the environment: the broker URLs and token, the queue, consumer group and partitions, the supervisor’s read token, state directory and its remote status, prefork and coordination switches, the dashboard’s switch, path, domain and console URL, the alert mail, the metrics switch and token, and the supervisor binary’s install path and mirror. Every other setting is a plain value in the published file, with the default it had: set it there, or add your own env() call where a value must differ per environment. QUEEN_SUPERVISOR_LEASE_SERVICE, which the Rust master read from its environment, is the config key supervisor.lease_service (default on), so the dashboard now shows the master’s value instead of the web host’s. supervisor.remote_status.key is no longer required: it defaults to a slug of APP_NAME and APP_ENV. An application that publishes its own config/queen.php keeps every variable that file reads; the configuration reference maps each removed variable to its key.

Laravel prefork: php artisan queue:restart runs the deployed code. A forked worker stops at queue:restart like a spawned one, but its replacement was forked from the fork server, which still held the code it booted, so the workers kept the old code until the master restarted. A worker that stops for the restart signal now says so (Laravel 12 gives the reason), and both engines then start a new fork server: the workers forked from then on boot nothing and run the code on disk. The old server stays open until the last worker it forked exits. Changes to config/queen.php still need queen:supervisor terminate, as before.

Laravel prefork: a fork server that is not safe to fork is not used. fork() copies only the calling thread, so a booted application that runs another thread (a gRPC or Kafka extension, an APM agent) would give every worker a broken copy. On Linux the fork server now refuses to serve when another thread outlives a 5-second grace (libcurl’s resolver thread ends within it), names the threads, and the master spawns its workers instead. It warns about sockets the boot left open, which every forked worker would share, and it releases the database and Redis connections, log channels and mailers the boot opened before the first fork, not in each child only.

2.0.1 - 2026-10-05

Everything in 2.0.1-beta below, and:

Traces live on disk. A trace was a row in every node’s RAM, about one and a half times its stored size, until QUEEN_RAFT_TRACE_RETENTION_S (7 days by default) expired it, so a client that traced every message with a few KB of data grew every node by hundreds of MB an hour. Each node now keeps its traces in a second LMDB environment, <QUEEN_RAFT_DIR>/traces/, whose pages are page cache the kernel can drop: 100,000 traces of 5 KB add 56 MB to a node’s process memory instead of 810 MB. The trace routes, their fields, order and pagination are unchanged, and traces written before the upgrade stay readable until they expire. Expiry runs in bounded steps (512 traces each, a few ms at most) instead of one step for everything past the cutoff (139,000 traces took 1.24 s on 2026-10-05). New gauges: queen_raft_traces_map_bytes and queen_raft_traces_stored.

The upgrade is one-way. A cluster writes traces to disk once every member runs 2.0.1: the leader then raises the cluster version to 4, and from then on a 2.0.1-beta or older binary refuses to start on the data directory. On a cluster at version 4, a learner can be added only once its node is running and answering (as QUEEN_RAFT_JOIN already requires).

A trace with a very long transaction id or name no longer stops the cluster. Its store key went past LMDB’s 511-byte limit and every node stopped applying at that entry. The request is now refused with a 400 (name_too_long).

The dashboard shows the memory a node holds. A node’s memory meter showed its resident set, which counts the file pages the process maps: the store’s LMDB file is read whole at boot, so a node looked about 1 GB fuller than it was. The meter now shows the process’s anonymous memory, the part that can run a node out of memory, reported as anonBytes in /api/v1/raft/members; an older broker still shows its resident set.

2.0.1-beta - 2026-10-05

A new partition’s first message reaches every consumer group. On a queue read by two or more consumer groups, a group that took a new partition into the leader’s memory before the partition’s first message was written could miss that message until the partition’s next message or a change of leader. A second group loading the partition a moment later raised the shared tail and armed only its own cursor, so the append’s own wake-up found nothing left to do. A group’s load now arms every group already watching the partition whenever it finds the tail moved.

The leader keeps only the consumer state that is in use. The consumption engine kept every (consumer group, partition) pair it had served in the leader’s memory, about 1 KB each, until the partition or the group was deleted, and a partition is deleted only after PARTITION_CLEANUP_DAYS (30 by default). A workload that keeps opening partitions, one per conversation or entity, grew the leader without bound. A whole-queue group’s pair that holds nothing (no lease, nothing to deliver, no hold, every change durable) and stays so for QUEEN_CONSUME_IDLE_UNLOAD_S (default 600; 0 keeps every pair) now leaves memory. The next message on its partition loads it back from its cursor row, as a new leader does. New gauges: queen_consume_engine{kind="groups"|"parts"|"partitions"} and queen_consume_parts_total{kind="loaded"|"unloaded"}.

2.0.0 - 2026-10-03

The PostgreSQL storage class is removed. Queen 2.0 has one storage class, its own replicated log, and there is no database to run beside it. Each node keeps its whole state in one data directory, QUEEN_RAFT_DIR (default /var/lib/queen/raft): the queue logs that hold the payloads, an embedded ordered store for everything the broker looks up, and, on a cluster, the raft state. A single node answers a write once it is fsynced to its own disk. A cluster of three or five voters (QUEEN_RAFT_REPLICATOR=openraft, QUEEN_RAFT_NODE_ID, QUEEN_RAFT_PEERS, QUEEN_RAFT_TOKEN) has one leader order every write, answers it once a majority of the voters have it on disk, and keeps serving through the loss of a minority. QUEEN_STORAGE is gone with the choice it made. There is no in-place upgrade from 1.x: a 2.0 broker does not read a 1.x database and messages do not carry over, so a move is a cutover. Start 2.0 beside the old deployment, re-apply the queue configuration, move the producers, drain the old deployment and move the consumers.

The SQS facade is removed. It is not in the image or the binary any more, and QUEEN_SQS_* is not read.

The S3 sink runs inside the broker, on every node. QUEEN_S3_EMBEDDED=true starts the data-lake sink in the broker process, on a runtime of its own (QUEEN_S3_THREADS, default a quarter of the cores, 1 or 2); there is no queen-s3 binary, no child process, no QUEEN_S3_BIN and no /healthz or /metrics listener of its own, and QUEEN_S3_LISTEN and QUEEN_S3_LOG_FORMAT are named in a warning and ignored. Every node runs it with the same configuration, one sink per broker tenant (below). Per queue, a lease in the key/value store (s3:<sink>:<queue>:lease, TTL QUEEN_S3_LEASE_TTL_MS, default 30 s, refreshed every third of it) picks the node that writes the queue, and every window intent and commit carries that lease as a required conditional write, so a node that lost the queue cannot commit. A node claims a free queue after waiting one second for every queue it already runs or is claiming, plus a jitter under 200 ms, at most half the lease TTL, so the least-loaded node claims first and the queues spread over the nodes; a claim that fails for a passing reason (no leader yet) is retried within about a second rather than a TTL. Queues are then rebalanced: each sink counts the nodes running it through TTL’d presence rows, and a node holding more than ceil(queues / nodes) gives one queue back at a time (drained and released as at a SIGTERM) to a node below its share, so pods started one after another still end up sharing the queues, and nothing moves in a steady state. A node stopped with SIGTERM gives its queues back at once; one that dies loses them when its leases expire, and one that comes back under the same QUEEN_S3_INSTANCE (by default node-<id>@<host>) takes its own back at once. Each node reads its own applied copy of the log, followers included, and closes a window against its own safeTime; the lease refresh is a log entry, so safeTime keeps moving on a broker nothing writes to and the last window before a quiet spell still closes by age. The sink needs no QUEEN_URL and no token, and the proxy’s key/value carve-out for it is gone. Both record envelopes are the 1.5.0 formats; every key gains a tenant= level, the manifest a tenant field, the Parquet footer a queen.tenant pair, and the position checkpoint each partition’s id, so a 2.0 sink is pointed at a new prefix or bucket. A record’s ts is the stamp of the append that wrote it, and across the lake (partition, offset, ts) is unique, since a partition deleted and created again starts again at offset 0. A missing or bad value of one of the sink’s variables fails the broker’s boot, naming the variable; a bucket that does not answer delays the sink and nothing else. The window buffers are the broker’s memory now, so QUEEN_S3_MEMORY_MB defaults to 512 instead of 1024, and an out-of-memory takes the broker: size the container for both. On SIGTERM the sink stops reading at once, finishes the window it is committing and gives its leases back while the broker hands off and drains, and the broker waits for it up to QUEEN_S3_SHUTDOWN_GRACE_MS (30 s) counted from the signal. Its state is the s3 block of GET /status, and its queen_s3_* families are on /metrics/prometheus. queen_s3_lag_seconds is the node’s safeTime minus the stamp the queue’s lake is complete through (completeThrough in the status), so a queue read to its end and idle lags by about the guard and one discovery interval instead of growing; a node exports a queue’s gauges only while it runs the queue. The commit pointer’s tEnd is now an ISO-8601 timestamp: 1.5.0 wrote integer microseconds, which the retention hold could not read, so retentionSinkHold always sat at its cap; it now follows the sink. Running it is deploy/s3; what it writes is reference/s3.

Every broker tenant can have an S3 sink and a bucket of its own. The default tenant’s sink is configured by QUEEN_S3_* and turned on by QUEEN_S3_QUEUES: without it the default tenant has no sink, and another per-tenant QUEEN_S3_* variable set without it fails the boot. Every other tenant’s is set by the control plane: PUT /api/cp/clusters/:slug/s3 with the tenant’s endpoint, region, bucket, access key and queues, any other per-tenant setting, and secretKey, which is stored only sealed with the cell’s QUEEN_ENCRYPTION_KEY (the same on every node; a cell without one refuses the secret). GET answers it without the secret, DELETE removes it, and the tenant’s purge and delete remove it too. The routes are offered only where the node runs the sink. Every node reads those rows every 5 seconds and runs a tenant’s sink while its row is enabled and its cluster’s status, combined with its tenant’s, is active or push_blocked; a write that moves updatedAt, which every PUT with a secret does, rebuilds the sink once the old one has drained. The memory budget, threads, fetch concurrency, discovery interval, guard, lease TTL, multipart threshold, checkpoint cadence and instance name stay node-wide, in the environment, shared by every tenant’s sink, and a tenant’s settings cannot name them. Keys start with the tenant, <prefix>/tenant=<id>/queue=<name>/…, and the sidecars sit under <prefix>/_queen/tenant=<id>/queue=<name>/, so two tenants never share a key even in one bucket and prefix. A tenant’s leases and commit pointers are in its own key/value store, where its queues’ retention hold reads them. The s3 block of GET /status is {mode, phase, threads, controlPlane, sinks}, one entry per tenant with its source (env or cp), and a control-plane tenant’s queen_s3_* series carry a tenant label; the node renders each family once, and a removed tenant’s series go with it.

POST /api/v1/partitions/changed answers a sound safeTime. It is the greatest record stamp the answering node has applied: every record stamped at or below it is already readable on that node, so a time window that ends there is complete. 1.x derived it from PostgreSQL’s open transactions, with a fixed fallback floor (safeTimeDegraded, now always false), and the 2.0 betas answered the node’s wall clock, which a record planned before the answer and applied after it could fall below. It is per node, and it moves only when an entry applies, so an idle node answers the same value until the next write. Pages run in partition creation order with and without since, under an opaque cursor that means the same in both, and a complete pass reads each of the queue’s partitions once, where every page used to sort the whole queue; a cursor of the old shapes (n|…, t|…) is BAD_CURSOR. Every partition carries id, its uuid, which is new when a partition is deleted and created again under the same name. since is read to the microsecond, and one that is not a timestamp is a 400, as in 1.x, where the 2.0 betas read it as absent and listed everything.

The standalone proxy is removed. The proxy runs inside the broker process with QUEEN_PROXY_EMBEDDED=true, fronting PORT, or its own QUEEN_PROXY_PORT while PORT stays the internal broker port. Its tenants, clusters, users, API-key hashes, plans and usage live in the broker’s replicated key/value store under a system tenant, so the proxy database, PXDB_* and the proxy’s SQL migrations are gone, along with the queen-proxy binary and image. A first tenant can come from QUEEN_PROXY_BOOTSTRAP_* at boot, and the rest through the control plane under /api/cp/*, guarded by QUEEN_PROXY_CP_TOKEN.

The Kafka facade runs in-process. QUEEN_KAFKA_EMBEDDED=true starts it inside the broker, calling the broker’s router without a socket; there is no child process and no QUEEN_KAFKA_BIN. Committed offsets are Queen consumer-group positions by default (QUEEN_KAFKA_OFFSET_STORE, positions or kv).

Environment variables removed. Every PostgreSQL variable (PG_*, DB_POOL_SIZE, PG_USE_SSL, PG_SSL_REJECT_UNAUTHORIZED, PG_SSL_ROOT_CERT), the disk spool (FILE_BUFFER_*), the broker mesh (QUEEN_MESH_*, QUEEN_UDP_*, QUEEN_SYNC_*), the hot-list, fusion, ack-fusion, pop-fusion and admission knobs, QUEEN_APPLY_SCHEMA, RETENTION_PARALLELISM, the statistics refresh intervals, QUEEN_STORAGE, QUEEN_SQS_*, QUEEN_S3_BIN and PXDB_*. Some 1.x names stay because the 2.0 engine reads them: RETENTION_INTERVAL, RETENTION_BATCH_SIZE, PARTITION_CLEANUP_DAYS, QUEEN_PARTITION_CLEANUP_ENABLED, METRICS_FLUSH_MS, QUEEN_SWEEPER_BACKOFF_MIN_MS, QUEEN_SWEEPER_BACKOFF_MAX_MS, QUEEN_SWEEPER_TRANSIENT_BACKOFF_MS, QUEEN_SWEEPER_MAX_ATTEMPTS, QUEEN_STMT_TIMEOUT_MS, DEFAULT_TIMEOUT, POP_DEFAULT_TIMEOUT_MS and DEFAULT_SUBSCRIPTION_MODE.

Routes and answers. GET /api/v1/analytics/postgres-stats and the broker-to-broker /internal/api/* routes are gone, and /metrics no longer carries a database block. A push item answers queued, duplicate or error: with no spool there is no buffered. When a node cannot take a write the request fails with 503 and Retry-After, and a full disk answers 507. POST /api/v1/stats/refresh still answers 200 and does nothing, because counters are kept as entries apply.

Maintenance mode is removed. GET/POST /api/v1/system/maintenance, GET/POST /api/v1/system/maintenance/pop and GET /api/v1/status/buffers answer 404. No push or DLQ replay is refused with a maintenance 503, and no pop answers {"messages":[],"paused":true}. The embedded Rust API loses Broker::set_push_maintenance. The SDKs drop their maintenance calls (get/setMaintenanceMode and get/setPopMaintenanceMode in JS and PHP, the same four in Go, get/set_maintenance_mode and get/set_pop_maintenance_mode in Python, and Admin::maintenance, set_maintenance, pop_maintenance and set_pop_maintenance in Rust) along with their handling of a paused pop; queenctl maintenance and the dashboard’s maintenance switches are gone. The kv, timers and ephemeral kill switches and tenant quotas stay.

The embedded Rust API boots on a data directory. BrokerConfig::new().raft(dir), with raft_disk_pct(high, low) and stmt_timeout_ms; pg(), pg_use_ssl, pg_ssl_reject_unauthorized, pool_size, apply_schema, spool_dir, retention, stats_refresh, system_metrics and log_reports are removed. StartError has only Config, and Broker::shutdown() returns nothing.

One image, one binary. ghcr.io/queen-mq/queen carries the broker, with the proxy, the Kafka facade and the S3 sink linked in, the dashboard and queenctl; the queen-kafka, queen-sqs and queen-s3 binaries and the PostgreSQL client tools are gone. The dashboard is raft-only: the Postgres stats panel, the database pool and the disk-spool cards are removed, and the replicated log’s status takes their place.

Every client is 2.0.0. The JavaScript, Python and Rust packages (queen-mq on npm, PyPI and crates.io), the PHP client, the Go module, the C++ header and queenctl move to 2.0.0, with the Queen 2 broker. Go users change an import path: a major version above 1 is part of a Go module’s path, so the client is now github.com/smartpricing/queen/clients/client-go/v2 and the CLI installs with go install github.com/smartpricing/queen/clients/client-cli/v2/cmd/queenctl@latest. The tags keep their directory prefix (clients/client-go/v2.0.0, clients/client-cli/v2.0.0), and the client’s has to be pushed first, since the CLI requires it. queen-protocol stays at 1.3.0.

JavaScript, Python, Go, C++ and PHP clients, queenctl: every ACK of a transaction names its own lease. The transaction builders sent a message’s lease only in requiredLeases. A Queen 2 broker fences each ACK with the leaseId its operation carries, and lends it the one in requiredLeases only when the bundle names a single lease, so in a bundle that acked messages of two leases (two pops, two queues, a Laravel worker handing back two batches) every ACK went unfenced: it could complete a message that another consumer had taken after the lease expired, and commit the rest of the bundle with it. Each ACK operation now carries leaseId, and the broker refuses the whole transaction once any of those leases is no longer the caller’s. requiredLeases is still sent, and 1.x brokers already read the operation’s lease first. queenctl tx sent no lease at all: it dropped the bundle file’s requiredLeases. It now sends each ACK’s own leaseId, lends an ACK without one the lease requiredLeases names when it names exactly one, and exits 1 before sending anything when an ACK without a lease sits in a bundle that names several. The Rust client already named the lease on each ACK. PHP 1.9.0 shipped without this fix, its two-batch hand-back included.

Laravel dashboard: the Jobs page reads with a read-only token. It read the job metrics through POST /api/v1/kv, which takes read-write access, so with a read_bearer_token that may only read the page showed the metrics as unavailable on any broker that checks tokens. It now reads POST /api/v1/resources/kv/list, the read route the console’s KV browser uses (broker 1.6.0 and later), through the new Admin::listKv(). It falls back to getPrefix when the broker has no such route (404) and when the credential may not read but may use the KV surface (403), such as a proxy API key with consume and no read scope.

The partitions sunflower names its seeds. Each queue owns a wedge of the flower, and hovering a seed lights its queue and shows the queue, the partition, its pending and its lag. The per-partition figures come from a new read-only route, GET /api/v1/resources/partitions?queue=&limit=: the partitions holding the most pending (default 610), each with pending, processing and lagSeconds, the age of the oldest message its slowest reader has not consumed (null when caught up). The Overview asks for it only while it draws one seed per partition.

The broker in the top bar. For operators, every page’s top bar shows the cell’s CPU, memory, disk and Raft state, each figure its fullest node’s, over a hairline of how full it is; a click opens every node. Colour appears only past a line: 90% of the CPUs a node may use, 80% and 90% of its memory limit, and the node’s own disk write gate. GET /api/v1/raft/status and each member of GET /api/v1/raft/members gain host, the figures behind it.

The sidebar collapses to a rail of icons (the button at the top left of the top bar, or ⌘\), remembered per browser. Members and Users share one row: an operator switches between the acting cluster’s members and every account on the cell from the Members page.

PHP client and Laravel supervisor

Laravel: up to 1,024 stripes per queue. A stripe runs one job at a time, so the 64 stripes a queue could have capped its ordinary jobs at 64 busy workers. QUEEN_PARTITIONS now takes 1 to 1,024 (64 by default, unchanged), and a pop still asks for at most the 64 partitions the broker checks out per call: the broker serves the next ready ones in turn. On the Linux benchmark server, 128 workers drained 50,000 jobs at 9,257 jobs/s with 256 stripes against 4,722 with 64, 64 workers 20% faster, and the p95 at 500 jobs/s fell from 23.4 to 16.7 ms, with no measured cost at 50 jobs/s (benchmark-queen/2026-10-02-laravel-partition-stripes). Event-driven scaling watches up to 1,024 stripes per connection in one fetch; the regular poll finds jobs on the others.

Laravel: a crashed worker’s prefetched jobs keep their attempt. With prefetch above 1 and lease renewal, a worker that dies without a shutdown (SIGKILL, the kernel’s OOM killer, a PHP fatal error such as memory_limit) no longer leaves its unstarted jobs to lease expiry, which charged each one an attempt: with tries = 1 they failed without running, and a job that crashed its worker every time used up the attempts of the jobs prefetched with it. The worker now journals the transaction its shutdown would send, and rewrites one small record of it before each ACK or release. Whatever renews its lease sends that transaction once the worker has exited holding the lease, while the lease is still the worker’s: the Rust supervisor’s master on Linux, whose journal sits next to its lease socket, or the worker’s PHP lease helper, whose journal sits in a private temporary directory. Each unstarted job is completed and copied to its partition with the runs so far, the job that was running counts its run, and the jobs return at once instead of after retry_after. Every ACK in it names the lease, so the broker refuses the whole transaction once the lease is no longer the worker’s. Still charged one attempt: a lost node, a crash that takes the lease helper with the worker, and a batch popped ahead whose answer the worker had not read. The dashboard’s Configuration page, queen:supervise and the Rust supervisor (through queen:supervisor-config) now warn at start about a pool with tries 1 on a connection with prefetch above 1 or pop_ahead.

Laravel: a job handed back unstarted keeps its attempt. A worker that stopped with a prefetched tail (--memory, --max-jobs, a deploy, Laravel’s timeout handler), or that could not track a batch popped ahead, handed the jobs back with a retry ACK. The broker counts the next pop of such a position as a redelivery, so each hand-back charged an attempt to jobs that never ran, and with tries = 1 they failed with MaxAttemptsExceeded on their next delivery. The hand-back is now one transaction that completes each unstarted job and pushes a copy to its partition with the runs so far, as a release does. A crash is handled by the entry above.

Laravel: a forked child no longer kills its worker. With the PHP lease-renewal helper, a child forked by a job (Laravel’s fork concurrency driver, pcntl_fork()) stopped the parent’s helper when it exited, and the parent’s watchdog then SIGKILLed the parent mid-job; the child was also fenced as soon as a subprocess of its own ended.

PHP client: a detached request is written before the next job runs. With ack_async or pop_ahead, a request on a new connection (a worker’s first detached request, or one after the broker closed an idle keep-alive connection) was only started when it was sent: cURL wrote it when the request was settled, which with prefetch above 1 is after the next job. A hard kill during that job (shutdown grace exceeded, out of memory, node loss) lost the ACK, and the acknowledged job ran again when its lease expired. postDetached() and getDetached() now return once the whole request is written, the connection included; on the Guzzle transport (behind a proxy, or with QUEEN_SDK_HTTP_TRANSPORT=guzzle) this holds for a request with a body, the ACK. A request that cannot be written within the 5-second connect timeout throws at once, and the Laravel queue then acknowledges synchronously. A pop sent ahead, which carries no body, is waited for at most 250 ms, so a slow or dead backend does not hold up the next job.

PHP client: a process forked by a job exits. libcurl’s resolver threads do not survive fork(), and recent libcurl keeps them alive for a moment after each name resolution (2 seconds on the multi handle that carries detached requests). A child forked in that window, by Laravel’s fork concurrency driver or by pcntl_fork() in a job, waited for them forever when its exit freed the cURL handles it inherited, so the job hung until its timeout and left the child stuck. The cURL transport now sets CURLOPT_QUICK_EXIT and shares one DNS cache between its handles, so detached requests reuse the synchronous handle’s resolution and never start a resolver thread of their own.

Laravel: job metrics and tag records make one bounded attempt. They are written from every worker’s job events and on WorkerStopping, and used the queue’s ordinary client, whose retries held the worker on a slow or rate-limiting broker and could spend the shutdown grace before the prefetched tail was handed back. They now use one 2-second attempt.

Laravel dashboard: retry a failed job in one click. The failed-job page has a Retry now button. It runs queue:retry for that job, so the broker’s dead-letter entry and the failed_jobs row stay in step, and the page still shows the command for a terminal. Forgetting, flushing and pruning stay with Laravel’s commands. An exception during the retry is reported to the application’s log, and the page shows only its class: its message can quote the job’s payload. The id all is refused, since queue:retry all retries every failed job.

Laravel dashboard: what each queue holds now. The Workload page shows, for every supervised queue, the jobs waiting and running and how long the oldest unfinished job has waited, from one broker read per queue, cached for 5 seconds. QUEEN_DASHBOARD_CONSOLE_URL links each queue to the Queen console, which lists the messages themselves. An invalid value is reported to the application’s log and turns the links off; it never stops the application or its workers.

Laravel dashboard: the Configuration page is a tuning guide. It shows every resolved setting of the connection and the supervisor with its environment variable, each pool as the running supervisor published it, and advice from the supervisor’s state and the job metrics: job classes whose longest run exceeds shutdown_grace, one worker for several queues, short jobs on prefetch 1, prefork off, a lease helper per worker, polling instead of event-driven scaling, and pools that could run a job twice. A setting that can hold a credential shows only whether it is set. Job metrics now record each class’s longest run.

Laravel: a rejected broker URL no longer leaks its password. The supervisor configuration printed an invalid broker URL, credentials included, into logs and error pages; it now redacts them.

Supervisors (both engines). A worker that ran at least stable_after and exits non-zero (queue:work exits 12 at --memory, a job timeout kills the worker) is restarted at once: it no longer holds its pool at a single probe for stable_after. On stop, the workers get SIGTERM before the coordination leave and the remote status publish, which a slow broker could stretch past the platform’s stop deadline. The PHP engine’s event-driven watcher can no longer freeze the master loop on an answer that stalls mid-body, its fork server survives a failed pcntl_fork(), and preforked workers honour --quiet. The Rust engine trusts the platform’s CA store (and SSL_CERT_FILE), so a broker behind a private CA works, and its lease service fences a worker before it logs why, so a broken stderr pipe cannot skip the fence.

Supervisors: a job timeout is not a crash. Laravel SIGKILLs a worker whose job outlives its timeout, and both engines counted that exit as a crash: with job timeouts shorter than stable_after, a burst of them opened the restart circuit and left the pool at one probe worker for every job on its queue, the healthy ones included. The worker now leaves a marker in the state directory’s exits/ before it dies, and the master restarts it without backoff and without counting it. A worker that stops at --memory after it handled a job counts as a clean exit too; one that stops before any job still backs off, since its boot alone passes the limit. Every other non-zero exit counts as before, a SIGKILL without a marker included (the OOM killer, a lease fence, kill -9).

Navigation

Type to search…

↑↓ navigate↵ selectEsc close