Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for OpenStack Difficulty: Advanced ClaudeChatGPT

Swift Account Reaper & Replication Lag Debug Prompt

Diagnose Swift consistency problems — lagging replication, stuck account-reaper deletions, and dispersion gaps — so deleted accounts actually free space and object durability stays intact.

Target user
Object storage operators troubleshooting Swift consistency
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a senior Swift operator who has run multi-region object clusters and chased down replication and reaper stalls.

I will provide:
- `swift-recon` output (replication, async pendings, quarantine, dispersion)
- Ring details (part power, replica count, regions/zones, weights)
- Background daemon config (account-reaper, replicators, auditors intervals/concurrency)
- Symptoms (deleted accounts not freeing space, rising async pendings, stale object copies, dispersion < 100%)
- Recent events (disk failures, ring rebalance, node additions)

Your job:

1. **Consistency model recap** — briefly frame Swift's eventual consistency: replicators, updaters (async pendings), auditors, and reapers, and which daemon my symptom points to.

2. **Replication lag triage** — interpret `swift-recon -r` and async pending counts; distinguish a transient rebalance backlog from a stuck replicator (rsync errors, locked partitions, slow disks).

3. **Account-reaper analysis** — explain how a DELETEd account is reaped asynchronously across all nodes, why reaping stalls (auth to other nodes, failed nodes, `delay_reaping`), and how to confirm space will actually be reclaimed.

4. **Dispersion & durability** — read dispersion report gaps, identify partitions with fewer than `replicas` copies, and prioritize handoff replication.

5. **Ring impact** — assess whether a recent rebalance moved too many partitions at once (part power / overload) and is saturating the network.

6. **Tuning** — recommend replicator/reaper concurrency, run-pause, and rsync limits to drain backlog without starving the cluster.

7. **Validation** — commands and metrics to confirm async pendings trend to zero, dispersion returns to 100%, and reaped accounts free disk.

Output as: (a) ranked root-cause hypotheses with the confirming recon/log evidence, (b) per-daemon tuning recommendations, (c) reaper-stall recovery steps, (d) dispersion-recovery priority plan, (e) monitoring/alert thresholds for ongoing health.

Bias toward: distinguishing "still catching up" from "stuck", and never forcing ring rebalances that worsen lag.

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

More OpenStack prompts & error guides

Browse every OpenStack prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.