KMS & Stack Tuning
Active-Passive HA Failover, WAL Promotion & Split-Brain Prevention
Verify sub-5-second Nginx upstream cutover and safe PostgreSQL 16 standby promotion without losing recently rotated secrets.
< 5s API Cutover · Sync WAL Option · Zero Token Invalidation
Testing Failover Quarterly
Simulate primary pod SIGKILL under 500 req/min synthetic load to confirm Nginx backup upstream directives route traffic without HTTP 502 leaks.
Preventing Split-Brain Writes
Only allow one writable PostgreSQL primary at any time; fence the failed node via VPC firewall before promoting standby.
Measured Thresholds & KMS Configuration
| Failure Mode | Recovery Path | Expected Downtime |
|---|---|---|
| Primary API Pod Crash | Nginx passive healthcheck -> backup pod | < 3 seconds |
| Primary DB Node Loss | Promote PG16 WAL standby + update DNS/VIP | 15 - 45 seconds |
| Redis Node Restart | Fallback to PG16 + AOF reload | 0s (elevated latency only) |