Database Outage Playbook
Primary database unreachable or critically degraded. The heart of your application is failing, and everything downstream is feeling it. Time to make hard decisions about data integrity versus availability.
CRITICAL SYMPTOMS
- • Database connection timeouts/failures
- • Primary database instance unreachable
- • All write operations failing
- • Connection pool exhaustion
- • Database cluster in emergency read-only mode
- • Replication lag exceeding acceptable thresholds
First 8 Minutes: Assessment & Triage
Confirm database outage scope
Is primary DB completely down? Are reads working? What about other database instances?
Check recent database activities
Recent migrations? Schema changes? Maintenance windows? Check DB provider status.
Assess read replica health
Are read replicas available? How far behind are they? Can we promote one to primary?
Declare SEV-1 if confirmed
If writes are down for 5+ minutes, declare incident. Get senior DBAs involved immediately.
Enable read-only mode if possible
Can the application function with read-only access? Enable graceful degradation.
Begin primary recovery strategy
Choose: restart primary, promote replica, or restore from backup. Start the clock.
Recovery Strategy Decision Tree
Scenario 1: Primary DB Instance Down, Replicas Healthy
Best Case: Promote Read Replica (RTO: 5-15 minutes)
STEP 1 Stop application writes to prevent data loss
STEP 2 Promote most up-to-date read replica to primary
STEP 3 Update application connection strings
STEP 4 Resume write operations
DATA LOSS RISK
Potential loss of transactions between last replica sync and primary failure. Usually seconds to minutes of data.
Scenario 2: Entire Database Cluster Down
Restore from Backup (RTO: 30-120 minutes)
STEP 1 Identify most recent clean backup
STEP 2 Spin up new database cluster
STEP 3 Restore database from backup
STEP 4 Apply transaction logs if available
STEP 5 Update DNS/connection strings
SIGNIFICANT DATA LOSS
Will lose all data since last backup. Could be hours of transactions depending on backup schedule.
Scenario 3: Database Corrupted but Accessible
Point-in-Time Recovery (RTO: 60-180 minutes)
STEP 1 Identify corruption scope and last known good time
STEP 2 Stop all writes to prevent further corruption
STEP 3 Create new cluster and restore to point before corruption
STEP 4 Validate data integrity
STEP 5 Switchover to restored database
Graceful Degradation Strategies
While working on database recovery, consider these options to maintain partial service:
Read-Only Mode
- •Users can browse existing data
- •Prevent new registrations/transactions
- •Display maintenance banner
- •Queue critical writes for later
Cached Responses
- •Serve stale but recent cached data
- •Extend cache TTLs temporarily
- •Use CDN cached API responses
- •Show "data may be outdated" notices
Static Fallbacks
- •Serve static marketing/info pages
- •Display status page with updates
- •Collect user contact info for follow-up
- •Redirect to simplified service
Emergency Bypass
- •Critical business functions only
- •Manual approval workflows
- •Alternative data stores for essentials
- •Paper/offline backup processes
Common Database Failure Causes
Infrastructure Issues
- • Disk space exhaustion
- • Memory exhaustion (OOM killer)
- • Network connectivity loss
- • Storage backend failures
- • Cloud provider regional outages
- • Security group misconfiguration
Database Software
- • Database process crash/restart
- • Corrupted database files
- • Failed database software upgrade
- • Configuration errors
- • Lock escalation/deadlocks
- • Replication synchronization failures
Human Error
- • Bad schema migration
- • Accidental data deletion
- • Wrong configuration deployment
- • Database server shutdown/restart
- • Security changes blocking access
- • Certificate expiration
Load/Performance
- • Connection pool exhaustion
- • Long-running query blocking
- • Runaway query consuming resources
- • Traffic spike overwhelming DB
- • Backup operation impact
- • Index corruption/inefficiency
Database Incident Communication
Internal Team Update
🚨 SEV-1: Database outage Time: [HH:MM UTC] IC: [Your name] STATUS: Primary database unreachable IMPACT: All write operations failing, read-only mode enabled CAUSE: Investigating - recent backup completion coincides with failure IMMEDIATE ACTIONS: - [ ] Promote read replica #2 to primary (ETA: 10 min) - [ ] Validate data consistency - [ ] Update application config to new primary DEGRADED FUNCTIONALITY: - Users can browse existing data - No new registrations or transactions - Payment processing suspended Next update: +15 minutes Bridge: [link]
Customer Communication
We are currently experiencing a database service disruption. What's happening: You may be unable to save changes, complete transactions, or access the most recent data. Viewing existing information should continue to work normally. What we're doing: Our engineering team is actively restoring database service. We have implemented temporary read-only access while we work on a full resolution. Expected resolution: Within the next 30 minutes Next update: [HH:MM UTC] We apologize for the inconvenience and appreciate your patience.