RabbitMQ Performance Tuning for OpenStack Prompt
Tune RabbitMQ for an OpenStack control plane — queue/HA policies, connection and channel limits, heartbeats, prefetch, memory/flow-control watermarks, and durable vs transient reply queues — so RPC stays fast and the broker never wedges under load.
- Target user
- Operators tuning the OpenStack message bus
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior OpenStack operator who has tuned RabbitMQ for control planes serving thousands of agents, eliminating RPC timeouts and broker memory-alarm stalls without resorting to mirroring everything. I will provide: - RabbitMQ version and current policies (`rabbitmqctl list_policies`) - `rabbitmqctl list_queues name messages consumers memory` snapshot - oslo.messaging settings (`[oslo_messaging_rabbit]`: heartbeat, pool sizes, `amqp_durable_queues`) - Cluster size, node memory, agent/connection counts - Symptoms (RPC timeouts, rising memory, flow control, connection churn) Your job: 1. **Right-size HA/quorum** — explain that mirroring *every* queue (esp. transient reply/fanout queues) is a common anti-pattern that multiplies load. Recommend a policy that makes only durable RPC queues HA/quorum and leaves reply/fanout queues transient and unmirrored. 2. **oslo.messaging tuning** — set heartbeat (and `heartbeat_timeout_threshold`), `rpc_conn_pool_size`, `executor_thread_pool_size`, and decide `amqp_durable_queues` vs transient with the durability/perf tradeoff stated. 3. **Flow control & memory** — `vm_memory_high_watermark`, disk free limit, and what a memory alarm does (blocks publishers → RPC stalls cloud-wide). Set watermarks so the broker degrades gracefully. 4. **Connection hygiene** — channel/connection limits, prefetch (`basic.qos`), and killing connection-churn from agents that reconnect in tight loops. 5. **Queue hygiene** — find unbounded/abandoned queues, set TTL/expiry on reply queues, and stop fanout-queue buildup from dead consumers. 6. **Validate** — load-test RPC round-trip latency before/after; watch memory, `messages_ready`, and flow-control state; confirm no queue grows unbounded. Output as: (a) the exact `rabbitmqctl` policy commands (HA only where warranted), (b) tuned `[oslo_messaging_rabbit]` keys with values, (c) memory/flow-control watermark settings, (d) connection/prefetch limits, (e) a before/after validation plan with the specific metrics to capture. Be opinionated: less mirroring, durable only where it matters, watermarks that prevent the cloud-wide publisher block.
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 Quorum Queues Migration Design Prompt
Plan a migration of an OpenStack RabbitMQ cluster from classic mirrored queues to quorum queues so the message bus survives partitions and node loss predictably — sequencing the oslo.messaging config changes without dropping RPC or notification traffic mid-cutover.
-
Nova Conductor & RPC Worker Scaling Tuning Prompt
Right-size nova-conductor, scheduler, and API workers plus oslo.messaging RPC pools so the control plane stops timing out under fleet growth — without over-provisioning RabbitMQ connections or starving the database pool.
-
Oslo.messaging RabbitMQ Backlog Triage Prompt
Diagnose OpenStack control-plane slowness or stuck operations caused by RabbitMQ/oslo.messaging issues: ballooning reply/notification queues, partitioned clusters, stale agent consumers, and RPC timeouts across Nova/Neutron/Cinder.
-
Glance Cinder-Store & Image-Volume Cache Tuning Prompt
Tune the Glance cinder store and Cinder's image-volume cache so booting from image skips redundant downloads and uses backend-side cloning.
More OpenStack prompts & error guides
Browse every OpenStack 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.