Health checking as a Service with Serf
summary
Production health checking at Fastly turns instance-level HTTP response time and error rate samples into a distributed filter: per-host moving-average denoise, multivariate anomaly detection (mean + stddev threshold) and an inner/outer hysteresis to avoid flapping. Filters run collocated, replicate deterministically by feeding every host’s signal over embedded Serf (library), and a BGP speaker advertises healthy nodes to the stateless load balancer. Serf works but needs tuning (retransmit mod default 4, 200 ms interval, fanout ≈ λ log n +1) or messages queue and drop.
AI-written summary · about
chapters (12)
- 0:00Introduction to health checking
- 2:50Why health checks matter
- 5:35Limitations of single-instance checks
- 9:45Global context for health checks
- 13:35Denoising stage explained
- 16:42Anomaly detection approach
- 18:06Hysteresis filter for stability
- 21:11Distributed filter implementation
- 24:20Using Serf for message distribution
- 25:44Serf configuration challenges
- 30:40Tuning Serf for high frequency
- 32:04Key takeaways and summary
