Abstract
A major difficulty in debugging distributed systems lies in manually determining which of the many available debugging tools to use and how to query its logs. Our own study of a production debugging workflow confirms the magnitude of this burden. This paper explores whether a machine-learning model can assist developers in distributed systems debugging. We present Revelio, a debugging assistant which takes user reports and system logs as input, and outputs debugging queries that developers can use to find a bug's root cause. The key challenges lie in (1) combining inputs of different types (e.g., natural language reports and quantitative logs) and (2) generalizing to unseen faults. Revelio addresses these by employing deep neural networks to uniformly embed diverse input sources and potential queries into a high-dimensional vector space. In addition, it exploits observations from production systems to factorize query generation into two computationally and statistically simpler learning tasks. To evaluate Revelio, we built a testbed with multiple distributed applications and debugging tools. By injecting faults and training on logs and reports from 800 Mechanical Turkers, we show that Revelio includes the most helpful query in its predicted list of top-3 relevant queries 96% of the time. Our developer study confirms the utility of Revelio.
Introduction
Debugging a modern distributed system is often described as finding a needle in a haystack—except the haystack is spread across a hundred servers, and the needle might actually be a slightly bent piece of straw in the network layer. When a user reports that a "page is loading slowly," a developer has to decide which of dozens of tools (tracing, packet captures, resource monitors) to use and what specific queries to run.
Revelio is an ML-powered assistant that translates informal user reports and heterogeneous system logs into actionable debugging queries. By using graph neural networks and clever data abstraction, it helps developers identify root causes significantly faster, bridging the gap between natural language complaints and technical log queries.
The Debugging Bottleneck
In a microservices architecture, a single user request might touch dozens of subsystems. When something goes wrong, the symptoms are often vague, while the logs are overwhelming. A study of a major SaaS company found that even though 94% of faults were recurring types (like resource exhaustion), it still took developers an average of 8.5 hours to find the root cause. The bottleneck is the cognitive burden of manually determining which tool to use, which subsystem to query, and what parameters to set.
Methodology
Revelio treats debugging as a recommendation problem. Its architecture is built on three main pillars:
- Unified Vector Embeddings: To handle diverse data types, Revelio uses BERT to encode natural language user reports and linear layers to encode quantitative logs. These are concatenated into a single "system state" vector.
- Queries as Graphs: Instead of treating debugging queries as simple text strings, Revelio models them as Abstract Syntax Trees (ASTs). It uses Graph Convolutional Networks (GCNs) to embed these query structures into the same vector space as the system state, allowing the model to "match" a state to a relevant query structure.
- Modularized Prediction: To handle the massive search space of possible queries, Revelio splits the task into two steps: Template Prediction (predicting the query skeleton) and Parameter Prediction (filling in specific IDs or values).
- Generalization via Abstraction: To ensure the model works even if a bug moves to a new server, Revelio uses rank-ordering. Instead of learning that a specific router is broken, it learns that "the router with the highest packet loss" is the one to query.
Evaluation and Results
The authors built a high-fidelity testbed emulating industry-standard apps like Reddit and Sock Shop, injecting 85 different types of faults. They recruited 800 Mechanical Turkers to write real-world complaint reports and integrated four major debugging frameworks (Jaeger, Marple, cAdvisor, and tcpdump).
Key results include:
- High Accuracy: For recurring faults, Revelio’s top-3 predicted queries included the correct one 96% of the time.
- Robust Generalization: When faced with faults in entirely new locations, the top-3 accuracy remained high at 87-100%.
- Human Impact: In a developer study, those using Revelio identified 90% of root causes (vs. 60% for the control group) and did so 72% faster (averaging 14 minutes vs. 50 minutes).
Conclusion
Revelio demonstrates that machine learning can effectively cut through the noise of distributed systems debugging. By automating the "pre-debugging" phase and providing high-accuracy query suggestions, it significantly reduces the time and cognitive load required to maintain complex microservice architectures.
Summary updated