~/talk

Case Study: A Thundering Herd in the Wild

Talkat SREcon25 Americas · 2025-03-25..03-27· [concurrency, observability]
slides:none on file

Investigation traces extreme P95 outliers to thousands of unrelated threads waking simultaneously every 5 seconds due to recurring jobs aligned to the clock, not an overloaded datastore. Workflow uses an on/off‑CPU sampler, dynamic instrumentation, a granular-sample patch, a simple Python lag detector and an eBPF core sampler to prove gaps aligned to the system clock. Root cause is libraries using time job scheduler callbacks with absolute timers creating a thundering herd. Fixes (relative timers, jitter, prime delays, subscribe-only wakeups) remove the spikes.

AI-written summary · about

  1. 0:00Introduction
  2. 0:59Defining thundering herd
  3. 4:15A performance mystery
  4. 7:21Profiling with sampling
  5. 12:32Using code instrumentation
  6. 19:42Granular sampling insights
  7. 24:54Root cause identification
  8. 27:35Solutions and conclusions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.