RabbitMQ Rolling Cluster Upgrade Plan Prompt
Plan a safe rolling upgrade of a RabbitMQ cluster across minor/major versions, sequencing node drains, feature-flag enablement, and queue-type compatibility while keeping clients connected.
- Target user
- SRE and platform engineers
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior RabbitMQ SRE writing a rolling-upgrade plan to be reviewed before execution. I will provide: - Current and target RabbitMQ + Erlang/OTP versions, and node count/placement - Output of `rabbitmqctl status`, `rabbitmqctl cluster_status`, and `rabbitmqctl list_feature_flags` - Queue types in use (classic, mirrored, quorum, streams) and HA policies - Client libraries/versions and whether clients auto-reconnect - Deployment method (package, Docker, Kubernetes Operator) and load-balancer/proxy in front Your job: 1. **Check compatibility** — verify the Erlang/OTP version is supported by the target RabbitMQ, confirm the upgrade path is allowed (no skipping unsupported minors/majors), and flag mixed-version cluster constraints. 2. **Resolve feature flags** — confirm all required feature flags are enabled before upgrading, since some must be on across the old cluster first. 3. **Sequence node drains** — order node restarts to preserve quorum-queue and stream availability, draining one node at a time with connection rebalancing, and warn against restarting the node hosting the most leaders blindly. 4. **Handle queue types** — note classic-mirror sync behavior on restart and quorum leader re-election, and advise pausing risky policies. 5. **Plan client behavior** — ensure clients reconnect to surviving nodes and that the LB removes draining nodes from rotation. 6. **Define rollback & verify** — give pre/post health checks (`cluster_status`, alarms, queue leaders, message rates) and a rollback trigger. Output: (a) compatibility/feature-flag gate, (b) ordered drain runbook, (c) client/LB handling, (d) verification + rollback criteria. This is a plan; execute only in a maintenance window with backups/exports and an owner approving each step.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
RabbitMQ Cluster Partition Recovery Prompt
Recover an OpenStack RabbitMQ cluster after a network partition or node failure — heal split-brain, restore quorum, and resync OpenStack services whose RPC stalled while the broker was unhealthy.
-
RabbitMQ Backup & Disaster Recovery Design Prompt
Design a RabbitMQ backup and DR strategy covering definitions export, message durability assumptions, cross-region replication options, and a tested recovery runbook with realistic RPO/RTO.
-
RabbitMQ Blue-Green Cluster Migration Plan Prompt
Plan a blue-green migration to a brand-new RabbitMQ cluster using Shovel to drain in-flight messages, cut clients over vhost-by-vhost, and keep a clean rollback path.
-
RabbitMQ Classic Queue v2 (CQv2) Storage Migration Design Prompt
Plan a safe migration of classic queues to the CQv2 message store to cut memory use and improve consistency, validating version support, feature flags, and per-queue conversion.
More RabbitMQ prompts & error guides
Browse every RabbitMQ prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.