CDN Incident Response: Playbooks and Recovery

· Alex Petrov · 4 min read

CDN Incident Categories

CategorySeverityExamples
Provider outageCriticalCDN provider global/regional outage
Cache poisoningCriticalWrong content served to users
DDoS attackHighVolumetric or application-layer attack
Origin failureHighOrigin unreachable, CDN serving stale content
Certificate issueHighExpired or misconfigured SSL certificate
Performance degradationMediumElevated latency, reduced cache hits

Playbook: CDN Provider Outage

  1. Detect — Monitoring alerts on elevated error rates or latency
  2. Confirm — Check CDN provider status page, test from multiple locations
  3. Communicate — Notify stakeholders: "CDN provider experiencing issues, we are monitoring"
  4. Failover — If multi-CDN is configured, shift traffic to backup CDN via DNS
  5. Bypass — If no backup CDN, update DNS to point directly to origin (accept higher latency)
  6. Monitor recovery — Watch provider status page, test periodically
  7. Restore — When provider recovers, shift traffic back gradually
  8. Post-mortem — Document timeline, impact, and improvement actions

Playbook: Cache Poisoning

Cache poisoning means wrong content is cached and served to users. This is critical because it affects all users until the cache is purged.

Performance Comparison: Edge vs Origin Processing
Metric Edge Processing Origin Processing Improvement
Latency (p50)8–15 ms120–300 ms15–20x faster
Cache Hit Ratio85–95%N/AReduces origin load
TLS Handshake1–5 ms (nearby PoP)50–150 ms10–30x faster
Bandwidth Cost$0.01–0.04/GB$0.05–0.12/GB3–5x cheaper
Availability99.99% (multi-PoP)99.9% (single DC)10x fewer outages
CDN Network Overview — Understanding the delivery architectureCDN Network Overview — Understanding the delivery architecture CDN Network Topology — Content Delivery Flow U User A Tokyo U User B London U User C New York Edge Server Tokyo PoP Edge Server London PoP Edge Server New York PoP Mid-Tier Cache Origin Shield Origin Server Your Server Request Cache Miss Fetch Cache Hit → Instant Response
Figure 1: CDN Network Overview — Understanding the delivery architecture
  1. Identify — Determine which URLs are affected
  2. Purge immediately — Purge all affected URLs
  3. Block the vector — Identify how poisoning occurred (typically through unkeyed headers or query params)
  4. Verify — Confirm correct content is now served
  5. Prevent — Review cache key configuration to include relevant headers

Playbook: DDoS Attack

  1. Detect — Traffic spike alerts, error rate increase
  2. Classify — Volumetric (bandwidth), protocol (SYN flood), or application (HTTP flood)
  3. Engage CDN mitigation — Most CDNs auto-mitigate; enable "Under Attack" mode if available
  4. Apply rate limits — Tighten rate limiting rules for attack traffic patterns
  5. Update WAF rules — Block attack signatures
  6. Monitor — Track attack evolution and adjust mitigations

Playbook: Origin Failure

When the origin server becomes unreachable:

Request Lifecycle — How content moves through the CDNRequest Lifecycle — How content moves through the CDN CDN Request Flow — From Browser to Edge CDN Request Lifecycle Step 1 DNS Lookup Step 2 TCP Connect Step 3 TLS Handshake Step 4 Edge Server Step 5 Cache Check Step 6 Response Cache HIT → 5ms response Cache MISS → Fetch origin 0ms ~50ms (cache hit) ~200ms (cache miss)
Figure 2: Request Lifecycle — How content moves through the CDN

Communication Template

[INVESTIGATING] We are investigating elevated error rates.
[IDENTIFIED] The issue has been identified as [X].
[MONITORING] A fix has been implemented. We are monitoring.
[RESOLVED] The incident has been resolved. Duration: X minutes.
Affected: [regions/services]. Root cause: [summary].

Post-Incident Review

Every CDN incident should produce: timeline with timestamps, root cause analysis, user impact assessment, detection time analysis (how long before alerts fired?), and action items with owners and deadlines.

External References

References & Standards: RFC 7234 · HTTP/2 specification