Site Reliability Engineering, 2nd Edition
by Betsy Beyer, Chris Jones, Christof Leng, David Huska, Jennifer Petoff, Niall Richard Murphy
Appendix F. The Mathematics of Latency Alerting
Formally, assume that there is a set of user-generated workloads that are independently run on a service. Additionally, there is some metric which measures the performance of the workload on the service, such as latency.
You partition the workloads into distinct and disjoint cohorts , where , such that .
Because each workload is (essentially) unique—they may write to different files, compute on different data, be executed on different clusters, etc.—you must cluster workloads in a fuzzy way which captures human expectations of equivalence. Cohorts need to be fine-grained enough to separate workloads with distinct behavior; they also need to be coarse enough to maintain a reasonable signal-to-noise ratio. A cohort is considered “meaningful” if it meets a minimum cardinality threshold (e.g., ), and its variance is small relative to its mean:
where
The goal is to maximize the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access