Incident Response Runbook
HeliosDB Incident Response Runbook
Use this runbook for service outages, data integrity alerts, severe latency, failed backups, and security-sensitive events.
Incident Classification
| Severity | Criteria | Initial Response |
|---|---|---|
| P0 | Complete outage, data loss, corruption, or confirmed security incident | Immediate response and executive escalation |
| P1 | Major degradation, regional outage, or core feature unavailable | Incident lead and senior SRE engaged |
| P2 | Partial degradation with workaround | On-call owner investigates and communicates |
| P3 | Minor issue with limited impact | Track and resolve in normal priority |
| P4 | Informational alert or maintenance notice | Record and monitor |
Initial Response Steps
- Acknowledge the alert.
- Assign an incident lead.
- Record the start time, symptoms, and known customer impact.
- Open the incident communication channel.
- Check service health, logs, and recent changes.
- Stabilize before making broad changes.
Useful checks:
curl -f http://heliosdb-lb:7000/healthpsql -h heliosdb-lb -U admin -c "SELECT now(), version();"psql -h heliosdb-lb -U admin -c "SELECT pid, state, wait_event_type, query FROM pg_stat_activity LIMIT 20;"Escalation Procedures
Escalate when:
- Impact is P0 or P1.
- The service is not stabilizing within the expected response window.
- Data loss, corruption, or unauthorized access is suspected.
- The runbook procedure fails or produces unexpected results.
- Multiple teams or infrastructure providers are involved.
Escalation handoff must include:
- Incident severity and impact.
- Timeline of actions already taken.
- Current dashboards, logs, and hypotheses.
- Rollback or mitigation options.
Communication Templates
Initial update:
We are investigating elevated errors or latency for HeliosDB. The incident team is active and will provide updates as more information is available.Mitigation update:
The team has identified the likely cause and is applying mitigation. We are monitoring recovery and will provide the next update after validation.Resolution update:
The issue is resolved and HeliosDB health has returned to normal. A follow-up review will capture root cause and prevention items.Postmortem Process
For P0 and P1 incidents:
- Preserve logs, metrics, and timeline.
- Document impact, trigger, detection, mitigation, and resolution.
- Identify corrective actions with owners.
- Update runbooks, alerts, and tests.
- Review completion of follow-up actions.
Incident Examples
Complete Service Outage
- Confirm load balancer and node health.
- Check recent deployments and configuration changes.
- Restore traffic to a known healthy node or region.
- Roll back if the outage follows a deployment.
Replication Lag
- Check primary write rate and replica replay lag.
- Confirm network health between regions.
- Reduce nonessential write load if needed.
- Rebuild or reseed replica only after preserving diagnostics.
Disk Space Exhaustion
- Stop nonessential writes if the primary is at risk.
- Check WAL, logs, temporary files, and backup staging directories.
- Add capacity or move cold data.
- Validate checkpoints and resume normal traffic.