Griffon: Reasoning about Job Anomalies with Unlabeled Data in Cloud-based Platforms

Liqun Shao, Yiwen Zhu, Abhiram Eswaran, Kristin Lieber, Janhavi Suresh Mahajan, Minsoo Thigpen, Sudhir Darbha, Siqi Liu, Subru Krishnan, Soundar Srinivasan, Carlo Curino, Konstantinos Karanasos · DOI

Abstract

Microsoft's internal big data analytics platform is comprised of hundreds of thousands of machines, serving over half a million jobs daily, from thousands of users. The majority of these jobs are recurring and are crucial for the company's operation. Although administrators spend significant effort tuning system performance, some jobs inevitably experience slowdowns, i.e., their execution time degrades over previous runs. Currently, the investigation of such slowdowns is a labor-intensive and error-prone process, which costs Microsoft significant human and machine resources, and negatively impacts several lines of businesses. In this work, we present Griffin, a system we built and have deployed in production last year to automatically discover the root cause of job slowdowns. Existing solutions either rely on labeled data (i.e., resolved incidents with labeled reasons for job slowdowns), which is in most cases non-existent or non-trivial to acquire, or on time-series analysis of individual metrics that do not target specific jobs holistically. In contrast, in Griffin we cast the problem to a corresponding regression one that predicts the runtime of a job, and show how the relative contributions of the features used to train our interpretable model can be exploited to rank the potential causes of job slowdowns. Evaluated over historical incidents, we show that Griffin discovers slowdown causes that are consistent with the ones validated by domain-expert engineers, in a fraction of the time required by them.

Introduction

In massive cloud platforms like Microsoft’s internal data lake—which handles over 500,000 jobs daily across 250,000+ machines—job slowdowns represent a multi-million dollar challenge. A single delayed job can miss a Service Level Objective (SLO) or trigger cascading delays for dependent tasks. Traditionally, identifying the "smoking gun" behind a slowdown required on-call engineers to manually sift through hundreds of logs and system traces. This manual process is not only labor-intensive but also prone to error. Griffin was developed to bridge this gap, providing automated, holistic reasoning using only the unlabeled telemetry data already collected by the platform.

Methodology

Griffin shifts the diagnostic perspective from classification ("is this job slow?") to interpretable regression ("how long should this job take, and which features pushed it over that time?"). The system operates through a multi-stage pipeline:

  1. Baseline Selection: For recurring jobs, Griffin defines a "normal" baseline runtime using the 45th–55th percentile of historical executions.
  2. Interpretable Random Forest (RF): The system utilizes a Random Forest model for its high accuracy and decomposability. Using a TreeInterpreter technique, Griffin breaks down individual predictions into the sum of contributions from each input feature.
  3. Delta Contribution Ranking: To isolate the root cause, Griffin calculates the "Delta Feature Contribution"—the difference between a feature's contribution in a slow run versus its contribution in the baseline run. If a feature like "Data Written" contributes significantly more to the runtime than usual, it is ranked as a primary cause.
  4. Confidence Scoring: Reports are assigned a confidence level (High, Medium, or Low) based on the model's prediction error and the variance between individual trees in the forest.
The Griffin system architecture, detailing the offline training pipeline and the online prediction workflow.

Evaluation and Key Results

Griffin was evaluated using Microsoft production telemetry, including job-level metrics (e.g., data read/written, skew), machine-level metrics (CPU, I/O), and cluster-level metrics (queue times). The Random Forest model achieved a Mean Absolute Ratio Error (MARE) of 0.121, significantly outperforming linear regression and deep neural networks.

In real-world validation against historical incidents, Griffin’s top-ranked causes consistently matched those identified by domain experts. For instance, it accurately identified "Input Size" and "Time Skew" as culprits in high-priority incidents. Most importantly, Griffin reduces investigation time from hours of manual labor to mere seconds of automated analysis.

An example of Griffin's root-cause analysis output, ranking the relative contributions of features to a job slowdown.

Conclusion and Future Work

While Griffin has successfully automated root-cause analysis for many scenarios, limitations remain. The system currently relies heavily on job-level features; incorporating more granular hardware counters could help identify subtler system-induced slowdowns. Furthermore, some framework-level bugs currently result in "Low Confidence" reports. Future work aims to transition from reasoning to auto-remediation, where Griffin not only identifies a slowdown but also automatically adjusts system parameters like parallelism or memory allocation to resolve the issue in real-time.

Summary updated

BibTeX
@inproceedings{shao2019griffon,
  author = {Liqun Shao and Yiwen Zhu and Abhiram Eswaran and Kristin Lieber and Janhavi Suresh Mahajan and Minsoo Thigpen and Sudhir Darbha and Siqi Liu and Subru Krishnan and Soundar Srinivasan and Carlo Curino and Konstantinos Karanasos},
  title = {{Griffon: Reasoning about Job Anomalies with Unlabeled Data in Cloud-based Platforms}},
  booktitle = {SoCC},
  year = {2019},
  url = {https://openreview.net/forum?id=QrorMkg4XBO},
}
Figure