Datadog: The Agent Reconnect Storm
Hard · system design problem
A network blip ends and a million agents flush their buffers at once — while every engineer opens the same dashboards to see what happened.
A million host agents push metrics to intake-api, which writes them to InfluxDB (one node, capacity fixed); agents retry failed pushes 3 times. Engineers watch dashboards through query-api, which queries the same InfluxDB. At T+20s a regional network blip ends and every agent flushes its buffer: pushes ×4 for one minute. At the same time, everyone opens the incident dashboards: queries ×10 for the next five minutes. Metrics may land up to five minutes late; dashboards are the same for everyone looking at the same service.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.