Abstract
Modern big data infrastructures generate petabytes of system logs daily, making analysis both computationally expensive and cognitively taxing. This paper introduces Dependency-Driven Analytics (DDA), a paradigm that extracts a compact, semantically rich dependency graph from raw logs to serve as a "skeleton" for data navigation. Implemented in the Guider system, DDA reduces query times from hours to seconds and slashes computational costs by orders of magnitude.
Introduction: Navigating the Log Ocean
Modern cloud infrastructures generate an "ocean" of system logs—at Microsoft, this amounts to petabytes of data every single day. Analyzing these logs presents two primary challenges:
- Cognitive Cost: Logs are loosely structured, produced by hundreds of uncoordinated teams, and constantly changing. Data scientists often spend hours understanding data "quirks" before writing a single parser.
- Computational Cost: Simple analyses, such as identifying jobs affected by a file corruption, typically require "brute-force" scanning and joining of massive datasets. This approach is slow, expensive, and redundant.
The authors propose a "compass" to navigate this ocean: Dependency-Driven Analytics (DDA).
The Guider Framework: Mapping Dependencies
The core of DDA is the Dependency Graph, a compact representation of entities and their relationships extracted from raw logs. The Guider system implements this approach through a multi-layered architecture.
System Architecture
- Graph Structure: Nodes represent entities (users, jobs, files, machines), while edges represent dependencies (e.g., "Job A reads File B").
- Extraction: Guider uses manual extraction rules to parse logs via batch processing on Microsoft’s Cosmos/Scope clusters.
- Storage & Querying: A hybrid approach stores the full graph in a Distributed File System (DFS) for heavy analysis, while specific "projections" are loaded into Neo4j for lightning-fast, interactive queries using Cypher or Gremlin.
Key Insights: The Graph as a Covering Index
DDA treats the dependency graph as a "covering index" for high-level system questions. For many queries, the graph contains all necessary information, allowing users to avoid raw logs entirely. This significantly lowers the barrier to entry; instead of complex parsing code, engineers can use simple graph traversals.
A primary application is calculating the "Blast Radius" of failures. By transitively following edges in the graph, DDA can instantly identify every downstream file and job potentially "poisoned" by a specific failure.
Experimental Results
The authors evaluated Guider using Microsoft’s internal production telemetry, encompassing system logs from clusters with up to 50,000 nodes and billions of file lifecycles.
The results demonstrate stark improvements over traditional SQL-like queries on raw logs:
- Code Complexity: For a query calculating the average count of inputs per job, code length was reduced from 50 lines to just 7.
- Execution Speed: Queries that took nearly an hour (58 minutes) on raw logs were completed in 4.9 seconds using the Neo4j-backed system.
- Resource Efficiency: I/O requirements plummeted from 18.6 TB to less than 24 GB, while CPU usage dropped by five orders of magnitude (from 563 CPU-hours to under 40 CPU-seconds).
Future Directions
While Guider proves the efficacy of DDA, several challenges remain. Currently, extraction rules are defined manually; future work aims to automate this via static code analysis of the systems generating the logs. Additionally, moving from batch-oriented daily updates to real-time graph maintenance is a significant engineering goal. Finally, the authors highlight a need for more mature, scale-out graph solutions and a unified language that seamlessly bridges relational and graph data models.
Summary updated