How CDN Teams Triage Failures They Cannot Reproduce
Edge failures often vanish before logs flush. A customer reports a burst of 502s from a region you cannot see, and by the time you query the dashboard the error rate is flat. CDN teams spend much of their on-call time triaging these ghosts, and the methods they use are worth understanding even if you never run a PoP.
The Failure That Leaves No Trace
Edge issues disappear quickly. A TLS handshake fails for a subset of clients, the load balancer marks the node unhealthy, and traffic reroutes before a single error line reaches the log pipeline. The customer sees a broken checkout. You see a healthy fleet.
Anycast makes this worse. A single IP address is advertised from dozens of locations, and routers pick the nearest one by BGP path. The failing node may be in a city you never think about, serving users whose packets never touch the PoP you are watching.
Triage starts with distrusting the dashboard. A flat error rate means the errors did not get logged, not that they did not happen. Experienced engineers ask which signals are missing before they ask which ones are red.
There is a timing problem underneath all of this. Edge logs are usually batched and shipped asynchronously, with buffers measured in seconds to low minutes. A fault that lasts less than one flush interval can be rerouted, resolved, or simply overwritten before the batch leaves the box. The log pipeline is optimized for throughput, and throughput favors aggregation over completeness. That trade-off is reasonable most days and actively hostile during a short incident.
Why Edge Failures Resist Reproduction
BGP paths change every few minutes. A route that worked at 10:00 may withdraw at 10:03 because a transit provider shifted its policy. Reproducing a failure means reproducing the exact path, and that path may no longer exist.
Anycast sends each user somewhere different. Two customers in the same city can land on different edge nodes with different cache states and different TLS terminator versions. A bug that affects one node looks like a client-side problem to the other.
TLS handshakes fail only on stale caches. When a certificate rotates, some edge nodes pick up the new cert while others serve the old one until their cache expires. Clients with pinned certificates or old cipher suites fail against the stale node and succeed against the fresh one.
Health checks mask real faults. A load balancer that checks only a static health endpoint will keep a node in rotation even when its cache layer is returning corrupted objects. The node is alive, so the check passes, and the corruption spreads.
Version skew is the quiet multiplier. Edge fleets roll out configuration and software gradually, so at any moment a handful of nodes run a build that is a few hours or a few days behind the rest. The skew is intentional, a safety mechanism that limits blast radius. It also means a bug introduced in the newest build can coexist with a fix that already shipped to the oldest nodes, and no two nodes you compare will agree on what "current" means.
Building a Shadow Test Harness
Synthetic probes from many regions give you a baseline the dashboard cannot. A probe that requests a known object every minute from a consumer network in São Paulo will catch a failing edge node before a customer does, provided the probe uses the same TLS stack and HTTP version as real clients.
Replay real client headers and ciphers. Capture a sample of production handshakes and replay them against each edge node. A node that rejects a cipher suite your customers use will show up in the replay even if your health check passes.
Compare responses across edge nodes. Fetch the same object from every PoP and diff the bytes, the headers, and the TLS alert codes. A mismatch is a lead. Keep a rolling packet capture ring on each node, long enough to cover the gap between a customer report and your investigation.
One team I know runs a canary probe that mimics a specific mobile app version, including its TLS fingerprint and HTTP/2 settings, from a handful of residential connections. When the app updated its cipher list, the probe caught three edge nodes that had not yet picked up the new configuration, hours before any customer complained. The probe costs little to run and paid for itself in that single incident.
The trade-off with probes is coverage against cost. Probing every PoP every minute from every network is expensive and noisy, and most teams settle on a sampled grid: a rotating subset of nodes, a fixed set of client profiles, and a request cadence measured in minutes rather than seconds. That grid will miss a fault confined to one node and one carrier at 4 a.m. It will catch the broad classes of misconfiguration that cause most short incidents, which is usually the right bargain.
Reading the Signals That Remain
TLS alert codes narrow the failure class. A handshake failure alert points to a protocol mismatch or a certificate problem. A decrypt error points to a middlebox rewriting traffic. The code tells you which layer to inspect first.
TCP retransmit spikes point to middleboxes. When retransmits rise on one path but not others, a stateful firewall or NAT device is likely dropping packets. The edge node is healthy; the path is not.
Cache hit ratio shifts reveal origin strain. A sudden drop in hit ratio means the edge is fetching more from origin, which can cascade into timeouts. Correlate logs across PoPs by request ID to see whether the same object is failing everywhere or only on one node.
BGP data deserves its own feed. Public route collectors and looking-glass services let you reconstruct which prefixes were withdrawn and when, independent of your own infrastructure. If a customer report lines up with a withdraw on the prefix that serves their region, you have a timeline that survives the missing logs. The correlation is coarse, often accurate only to a few minutes, and that is usually enough to separate a routing event from an application bug.
This site has argued that microservice teams face rising maintenance load, and the same pattern holds at the edge: the tooling to observe these signals is often thinner than the system it watches.
The Human Cost of Ghost Bugs
On-call shifts get spent chasing phantoms. An engineer wakes at 3 a.m. for an alert that cleared itself, spends two hours correlating logs, and finds nothing. The next shift repeats the exercise. Morale erodes quietly.
Postmortems end in no fix. The team documents what they saw, lists the signals they lacked, and closes the ticket. The bug remains, waiting for the next traffic shift to expose it.
Teams learn to document uncertainty. A runbook that says "if the error rate spikes and clears within five minutes, check BGP withdraws for the affected prefix" is more useful than a root cause that never arrives. Escalation paths get built on trust: the engineer who says "this feels like a routing issue" is believed because they have been right before.
There is a budget question buried in the morale problem. Every ghost incident spends engineering hours that produce no fix, and it is hard to justify spending more hours on instrumentation when the last three investigations went nowhere. The teams that get ahead are the ones that treat probe coverage and capture retention as a fixed line item rather than something to fund after the next outage. Paying for the harness before the incident is cheaper than paying for the investigation after it.
Practical Moves for the Next Ghost
Instrument the client, not just the edge. Ship a lightweight SDK that records TLS version, cipher, and edge node IP with each failed request, so the next report includes the data you need.
Log BGP updates alongside request traces. When a failure correlates with a route withdraw, you have a lead that survives the log flush.
Run canary probes from consumer networks, not just data centers. A probe behind a residential ISP will catch middlebox and CPE issues that a cloud probe misses.
Write runbooks for unreproducible states. List the signals to collect, the order to collect them, and the point at which to escalate without a root cause.
Accept partial observability as normal. The edge will always have corners you cannot see, and the teams that cope best are the ones that plan for the blind spots instead of pretending they are not there.