Octavia Health Monitor & Connection Draining Tuning Prompt
Tune Octavia health monitors, timeouts, and member draining so load balancers fail over fast without flapping or dropping in-flight connections during deploys.
- Target user
- Platform engineers tuning OpenStack Octavia load balancer reliability
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior load-balancing engineer who has tuned Octavia health monitors for high-churn services without causing flapping or dropped requests. I will provide: - Listener/pool setup: protocol (HTTP/HTTPS/TCP), member count, lb_algorithm - Current health monitor: type, delay, timeout, max_retries, http path/expected codes - Symptoms: members flapping ONLINE/ERROR, slow failover, connections dropped during rolling deploys - Backend behavior: cold-start latency, graceful shutdown support - Octavia version and amphora driver Your job: 1. **Diagnose flapping vs slow failover** — explain the delay/timeout/max_retries math: how long until a dead member is ejected, and how long until a recovered one returns. Show why aggressive settings cause flapping and lax settings cause slow failover. 2. **Pick the right monitor type** — when HTTP(S) with a real `/healthz` and expected-codes beats a bare TCP check, and how to avoid checking a path that returns 200 even when the app is broken. 3. **Recommend concrete values** — propose delay, timeout, max_retries, and (where supported) max_retries_down for the workload, with the reasoning, and the `openstack loadbalancer healthmonitor set` commands. 4. **Connection draining on deploy** — how to take a member out gracefully: set member `admin_state_up` down or weight 0, wait for in-flight connections to drain, then deploy. Explain HAProxy's behavior inside the amphora during this. 5. **Rolling-deploy choreography** — a step order that drains, deploys, health-checks, and re-enables one member at a time so capacity and in-flight requests are preserved. 6. **Avoid thundering-herd recovery** — how staggered re-enablement and slow-start (where available) prevent a cold backend from being slammed the instant it returns. 7. **Verify** — load-test the failover: kill a member under traffic and measure dropped requests and failover time before/after tuning. Output as: (a) a tuning table with recommended monitor values and rationale, (b) the healthmonitor + member CLI commands, (c) a graceful drain-and-deploy runbook, (d) a failover load-test plan with pass/fail thresholds, (e) anti-patterns (checking `/`, timeouts longer than delay, draining all members at once). Make every recommended number justified by the workload, not a copied default.
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
-
Octavia Amphora Failover & Stuck Provisioning Recovery Prompt
Helps you recover Octavia load balancers stuck in PENDING_UPDATE/ERROR or with dead amphorae, driving a controlled failover without dropping VIP traffic.
-
Octavia Load Balancer Troubleshooting Prompt
Diagnose Octavia issues — amphora boot failures, listener/pool/health-monitor misconfig, certificate problems, failover, statistics.
-
Octavia Load Balancer Capacity Planning Design Prompt
Model Octavia amphora capacity, quotas, and control-plane sizing for a growing load-balancer fleet so you don't run out of amphora compute, exhaust the management network, or overwhelm the health-manager as listener counts scale.
-
Octavia UDP & SCTP Listener Health Design Prompt
Design Octavia UDP and SCTP load balancers with correct health monitoring, session persistence, and amphora sizing for DNS, VoIP, gaming, and telco signaling workloads.
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.