Interview Prep/Networking/DNS & Traffic Management in Production

How do you do a zero-downtime DNS cutover?

IntermediateProductionDNS & Traffic Management in Production
Answer
  1. Lower TTL to 60s at least one old-TTL ago. 2. Stand up the new endpoint and test it with curl --resolve. 3. Add it with weight 0, then shift weight 1%, 10%, 50%, 100% while watching errors. 4. Keep the old endpoint serving until traffic drains, remembering stale resolver caches. 5. Restore TTL.
curl --resolve app.example.com:443:203.0.113.20 https://app.example.com/health
All Networking questions Roadmap: Networking for DevOps

More on DNS & Traffic Management in Production