topology-driven incident diagnosis
Topology-based debugging cuts Cloudflare incident diagnosis from 2 hours to 30 seconds SREdayTL;DW
- Cloudflare November 2025 incident took 2 hours 6 minutes to diagnose; topology-based approach reduces diagnosis to 30 seconds to 10 minutes.
- Root cause: Clickhouse permission change exposed system catalog table, doubling feature file size beyond FL2 proxy's 200-line allocation, causing panic.
- Feature files regenerated every 5 minutes across different Clickhouse nodes; intermittent failures occurred when routing to nodes with changed permissions.
- Topology graph approach answers three diagnostic questions: which service depends on what, what changed recently, and what evidence proves causality.
- Version control topology graph over time to replay infrastructure state at each timestamp and identify exact moment failures were introduced.
- Build topology by merging all infrastructure providers (AWS, Kubernetes, etc.) into graph with relationships, then track changes continuously.
- Record all artifact-to-rule relationships with valid/observed timestamps to make evidence visible to humans and AI agents for root cause analysis.
- Missing or stale relationships in topology limit investigation coverage; freshness must be visible or uncertainty prevents accurate debugging.
- Start topology implementation with one service and explicit dependencies, then incrementally build complete architecture while maintaining data correctness.
- Telemetry alone shows correlation not causality; topology adds causality by showing infrastructure change propagation through dependent services.
TL;DW
- Cloudflare November 2025 incident took 2 hours 6 minutes to diagnose; topology-based approach reduces diagnosis to 30 seconds to 10 minutes.
- Root cause: Clickhouse permission change exposed system catalog table, doubling feature file size beyond FL2 proxy's 200-line allocation, causing panic.
- Feature files regenerated every 5 minutes across different Clickhouse nodes; intermittent failures occurred when routing to nodes with changed permissions.
- Topology graph approach answers three diagnostic questions: which service depends on what, what changed recently, and what evidence proves causality.
- Version control topology graph over time to replay infrastructure state at each timestamp and identify exact moment failures were introduced.
- Build topology by merging all infrastructure providers (AWS, Kubernetes, etc.) into graph with relationships, then track changes continuously.
- Record all artifact-to-rule relationships with valid/observed timestamps to make evidence visible to humans and AI agents for root cause analysis.
- Missing or stale relationships in topology limit investigation coverage; freshness must be visible or uncertainty prevents accurate debugging.
- Start topology implementation with one service and explicit dependencies, then incrementally build complete architecture while maintaining data correctness.
- Telemetry alone shows correlation not causality; topology adds causality by showing infrastructure change propagation through dependent services.
Versioned infrastructure graphs—tracking services, dependencies, and config changes over time—outperform telemetry-only approaches by replaying graph state at incident time. Uses Cloudflare's November 2025 FL2 proxy outage as a case study; a Clickhouse permissions change took 2+ hours to diagnose manually, 30 seconds with topology-driven automation.
