Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Rabbitmq Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-rabbitmq-knowledge-patch)
---
name: rabbitmq-knowledge-patch
description: RabbitMQ
version: "4.4.1"
license: MIT
metadata:
author: Nevaberry
---
# RabbitMQ compatibility guidance
Load this skill when upgrading RabbitMQ, changing broker configuration,
working with messaging protocols, or maintaining management API clients and
operational tooling. Use the topic references for complete guidance, examples,
and the source attributions for individual changes.
| Reference | Topics |
| --- | --- |
| [Upgrades and deprecations](references/upgrades-and-deprecations.md) | Upgrade paths, Erlang/OTP compatibility, Khepri migration, removed features, support lifecycle |
| [Configuration, authentication, and security](references/configuration-auth-and-security.md) | TLS, OAuth 2, LDAP, permissions, encrypted settings, listeners, limits, HTTP security headers |
| [Operations, observability, and tooling](references/operations-observability-and-tooling.md) | Health checks, maintenance, management API/UI, definitions, CLI, metrics, logs, tracing |
| [Protocols, clustering, and federation](references/protocols-clustering-and-federation.md) | AMQP, MQTT, STOMP, WebSockets, peer discovery, Shovel, Federation |
| [Queues, streams, and messaging](references/queues-streams-and-messaging.md) | Routing, declarations, replicas, priorities, retries, timeouts, stream filters, commercial features |
## Breaking changes and deprecations
### Upgrade prerequisites and removed settings
- Upgrade directly to 4.3.x from 4.2.x. Khepri is the sole metadata store in
4.3; on a 4.2 cluster using Mnesia, enable `khepri_db` before upgrading to
avoid automatic migration during startup.
- Enable the required feature flags from 4.2.0 and earlier, including
`rabbitmq_4.2.0`, `rabbitmq_4.1.0`, `rabbitmq_4.0.0`,
`quorum_queue_non_voters`, and `message_containers_deaths_v2`.
If the cluster used `rabbitmq_amqp1_0` in 3.13.x and still serves AMQP 1.0
clients, perform at least one rolling update after enabling
`rabbitmq_4.0.0` and before upgrading to 4.3.0.
- RabbitMQ 4.3 removes `pause_minority`, `pause_if_all_down`, and `autoheal`.
Remove `cluster_partition_handling`,
`cluster_partition_handling.pause_if_all_down.recover`, and
`cluster_partition_handling.pause_if_all_down.nodes.$name`; the broker
ignores them. Metadata writes require a majority of cluster nodes.
- Remove `x-queue-mode` and any `x-queue-version` set to `1` from classic queue
declarations before upgrading to 4.3; it rejects either argument.
- RabbitMQ 4.3 rejects non-durable, non-exclusive classic queues by default.
Use a durable queue with queue TTL for shared temporary use, or a
non-durable exclusive queue for connection-local use. The temporary opt-in
is `deprecated_features.permit.transient_nonexcl_queues = true`; configure
it on every node and restart those nodes before upgrading.
- `amqp_address_v1`, `amqp_filter_set_bug`, `global_qos`, and
`queue_master_locator` are denied by default in 4.3; `ram_node_type` is removed.
- `rabbitmqctl force_reset` is deprecated and incompatible with Khepri.
The management plugin no longer serves the `rabbitmqadmin` v1 script in
4.3. Migrate to standalone v2 and convert its INI configuration to TOML,
or use the v1 copy on the `v4.2.x` branch when scripts still need it.
- RabbitMQ 4.4.0 writes new classic queue shared message store files in v2
`.sqs` format. A node with any `.sqs` files cannot downgrade to 4.3.x or earlier.
See the upgrade reference for runtime requirements, direct and rolling
upgrade constraints, and support dates.
### Configuration and client migration
- Remove `*.cacerts` from `rabbitmq.conf`; use the applicable `cacertfile`
setting for a CA certificate file. Remove the etcd TLS options
`cluster_formation.etcd.ssl_options.fail_if_no_peer_cert`,
`cluster_formation.etcd.ssl_options.dh`, and
`cluster_formation.etcd.ssl_options.dhfile` before upgrading to 4.1.
- AMQP 0-9-1 clients overriding `frame_max` must request at least 8192 bytes.
For `amqplib`, use 0.10.7 or later or explicitly set a compatible value.
AMQP listeners auto-tune user-space buffers and ignore
`tcp_listen_options.buffer`; `recbuf` and `sndbuf` configure kernel buffers.
- An AMQP 1.0 message with no header section is non-durable in 4.2.
Set the header's `durable` field to `true` when durability is required.
- RabbitMQ 4.4.0 validates OpenID discovery issuers and requires HTTPS
endpoints. Before upgrading an incompatible provider, set
`auth_oauth2.discovery.verify_issuer = false` for an issuer mismatch, or
`auth_oauth2.discovery.verify_https_endpoints = false` for HTTP endpoints.
- Replace `GET /api/auth/hash_password/{password}` with
`POST /api/auth/hash_password` and a JSON body such as `{"password":"example"}`.
The deprecated `GET /api/auth` endpoint is removed in 4.3.
- Send `Content-Type: application/json` to management endpoints accepting
JSON bodies; it is required in 4.3.8 and 4.4.1. Several runtime parameter
endpoints now require `administrator` where they accepted `policymaker`;
the 4.4.1 notes also report this for other previously privileged endpoints.
## Cluster operation and health probes
Run `rabbitmq-diagnostics check_if_node_is_quorum_critical` before stopping
a node. A nonzero result lists quorum queues, streams, or internal components
that would lose quorum. For automated shutdowns,
`rabbitmq-upgrade await_online_quorum_plus_one` waits for sufficient online nodes;
the Kubernetes Cluster Operator already runs it in its `preStop` hook.
`rabbitmq-upgrade drain` excludes a node from new primary replica placement
across all queue types. Restarting returns it to service automatically;
use `rabbitmq-upgrade revive` if the restart is canceled. Inspect maintenance
state with `rabbitmqctl cluster_status` or `rabbitmqctl status`.
The original all-in-one management HTTP health check is a no-op in 4.0.6.
Use focused checks for the condition the probe needs:
- `rabbitmq-diagnostics check_if_metadata_store_is_initialized` or
`GET /api/health/checks/metadata-store/initialized` checks initialization.
The CLI suffix `_with_data` and HTTP suffix `/with-data` also require data.
- `GET /api/health/checks/ready-to-serve-clients` returns HTTP 200 when the node
has booted, is within its connection limit, and is out of maintenance mode.
- `rabbitmq-diagnostics check_for_quorum_queues_without_an_elected_leader`
supports a virtual host and queue-name regex, or `--across-all-vhosts`.
## Quorum queue delivery and consumer behavior
Quorum queues honor 32 strict message priorities in 4.3. Higher-priority ready
messages are delivered first. The management UI shows counts by priority.
`acquired-count` increments on every requeue. Only failures increment
`delivery-count`, which drives `delivery-limit` (default 20):
- Returns: AMQP 0-9-1 `basic.nack` with requeue, AMQP 1.0 `released`, or
`modified` with `delivery-failed=false`; consumer timeouts and intra-cluster
partitions that make the consumer node appear down also count as returns.
- Failures: `basic.reject` with requeue, AMQP 1.0 `rejected` or `modified` with
`delivery-failed=true`, and client crashes or connection loss.
Update a delivery limit through policy without redeclaring the queue. A policy
such as `{"delivery-limit":-1}` disables the limit; removing it restores 20.
Purging a quorum queue also removes messages pending at-least-once dead-letter delivery.
### Delayed retries and scheduled delivery
Set `delayed-retry-type` to `failed`, `returned`, or `all`; the default is
`disabled`. Set `delayed-retry-min` and `delayed-retry-max` in milliseconds,
or prefix these three keys with `x-` for queue arguments. Failed deliveries use
`min(delayed-retry-min * delivery-count, delayed-retry-max)`; the maximum
defaults to the minimum. Example policy:
```json
{"delayed-retry-type":"failed","delayed-retry-min":30000,"delayed-retry-max":120000}
```
An AMQP 1.0 consumer can override the computed delay with `x-opt-delivery-time`
in its `modified` outcome, using a Unix timestamp in milliseconds.
Reapply delayed-retry policies that failed validation before upgrading to 4.3.1.
For scheduled delivery in 4.4.0, publish `x-opt-delivery-time` as an AMQP 1.0
annotation or AMQP 0-9-1 header of type `long`, with a future Unix timestamp in
milliseconds. Routing and enqueueing happen immediately; each target quorum
queue holds delivery until that time.
The commercial Delayed Queue plugin schedules publishing through the target
exchange when due, using `x-opt-delivery-time` or `x-opt-delivery-delay`.
The older `rabbitmq-delayed-message-exchange` plugin is archived.
### Consumer timeouts
Quorum queues and commercial JMS queues enforce consumer timeouts in 4.3;
classic queues and streams stop enforcing them. Quorum queues requeue timed-out
deliveries and send AMQP 1.0 `DISPOSITION(state=released)`, keeping the link open.
For AMQP 0-9-1, they send `basic.cancel` if the client advertised
`consumer_cancel_notify`, and close the channel otherwise.
Timeout precedence is consumer `x-consumer-timeout`, queue `x-consumer-timeout`,
policy `consumer-timeout`, then `consumer_timeout` in `rabbitmq.conf`.
Values are milliseconds; the global default is `1800000` (30 minutes).
An invalid global value falls back to 24 hours in 4.3.3.
In 4.3.7, `consumer_timeout_response = notify_consumer` is the default;
`consumer_timeout_response = close_channel` always closes the channel.
## AMQP, streams, and routing
- AMQP 1.0 supports Direct Reply-To across AMQP versions. A mandatory AMQP 0-9-1
reply addressed only to `amq.rabbitmq.reply-to.*` counts as routed even if
the requester disconnected; there is no `basic.return` in that case.
Binding a Direct Reply-To pseudo-queue is rejected.
- Use AMQP 1.0 `x-cc` as a list of strings for additional routing keys.
A `dynamic` source or target creates an exclusive queue for the link.
- In 4.3.1, a passive AMQP 0-9-1 `queue.declare` or `exchange.declare` can pass
the permission check with `configure`, `write`, or `read` in the target
virtual host. The 4.3.0 check required `configure`.
- AMQP 1.0 stream filters support `properties` and `application-properties`,
string prefix/suffix matching, and at most 16 properties per filter.
SQL filters use `properties.` and `header.` for AMQP fields and bare names
for application properties; the queue reference includes the Java example.
- Use `rabbitmq-streams grow` and `rabbitmq-streams shrink` for bulk replica
management, and `rabbitmq-streams transfer_leadership` for one stream.
`rabbitmq-streams set_stream_retention_policy` is a no-op in 4.0.7; set retention by policy.
- Use an `x-modulus-hash` exchange with the entity ID as routing key and single
active consumer on each destination queue for concurrent processing by key.
Set a delivery limit on quorum queues to return requeued messages to the front.
## Authentication and operational interfaces
- Renew AMQP 1.0 JWTs before expiry; expired tokens close their connections.
Failed Stream token renewal closes the connection immediately, and a
replacement token must still grant access to the connection's virtual host.
- Use `http_dispatch.auth_backends` for management HTTP API authentication and
authorization backends, and `auth_backends` for messaging connections.
`rabbitmqctl clear_auth_backend_cache` clears the caching plugin's cache.
- Use `max_channels` and `max_connections` in `rabbitmq.conf`; `channel_max`
and `connection_max` remain aliases. The per-node connection cap includes
AMQP 1.0 and AMQP 0-9-1. Shovel and Federation direct Erlang client channels
also count toward `channel_max_per_node`.
- Paginated management requests support at most 500 items per page.
One `POST /api/queues/{vhost}/{name}/get` returns up to 1000 messages and
64 MiB by default; `management.polling_consumer.max_messages` and
`management.polling_consumer.max_payload_bytes` override those limits.
- The HTTP API refuses publishes during resource alarms. Non-administrators
must supply a password or token in Shovel direct URIs, even for their own
username; administrators may omit the password.
- Ra metric names and endpoint aggregates changed. Use the observability
reference for exact replacements and the compatible quorum queue dashboard.