Abstract
The increasing complexity of modern microservice architectures makes rapid failure diagnosis a critical yet challenging task for site reliability engineers (SREs). Traditional automated diagnosis tools often operate within "data silos," focusing exclusively on metrics, logs, or traces. This paper introduces DiagFusion, a novel framework designed to break these silos by fusing multimodal data into a unified representation. By leveraging Topology Adaptive Graph Convolutional Networks (TAGCN) and a joint learning strategy, DiagFusion simultaneously localizes root causes and identifies failure types. Experimental results on both open-source and real-world industrial datasets demonstrate that DiagFusion significantly outperforms existing single-modality methods, improving localization accuracy by up to 368% while maintaining the efficiency required for production environments.
1. Introduction
Modern cloud-native applications are built upon thousands of interconnected microservices. While this architecture provides scalability and flexibility, it introduces immense complexity in monitoring and troubleshooting. When a failure occurs, its effects propagate through the system, creating a "ripple effect" that complicates the identification of the original root cause.
Currently, SREs monitor systems using three primary data modalities:
- Metrics: Quantitative time-series data such as CPU, memory, and disk usage.
- Logs: Textual records of discrete events generated by service instances.
- Traces: Structural data representing the path and timing of requests across services.
Existing diagnostic tools typically specialize in only one of these modalities. However, single-modal analysis is often insufficient. For instance, a network partition might be visible in traces but absent from CPU metrics, while a memory leak might be obvious in metrics but produce no immediate log errors. DiagFusion addresses this by integrating all three modalities into a coherent diagnostic model.
2. The DiagFusion Framework
DiagFusion processes multimodal data through a four-stage pipeline designed to capture both the local state of service instances and the global topology of the system.
2.1 Unified Event Representation
To bridge the gap between disparate data formats (time series, text, and trees), DiagFusion converts all observations into "events." Metrics and traces are processed using 3-sigma anomaly detection, while logs are parsed into templates using the Drain algorithm. These events are then transformed into vector embeddings using fastText. This approach allows the model to map diverse phenomena—such as a "CPU spike" and a "Database Connection Error"—into a shared mathematical space.
2.2 Dependency Graph (DG) Construction
The system models the microservice environment as a graph where nodes represent service instances. Edges are established based on two criteria:
- Request Flows: Derived from trace data to capture logical dependencies.
- Co-deployment: Capturing physical dependencies where multiple instances share the same host, accounting for resource contention.
2.3 Graph Neural Network (GNN) Processing
DiagFusion employs a Topology Adaptive Graph Convolutional Network (TAGCN). Unlike standard GCNs, TAGCN can capture information from multiple hops simultaneously, which is crucial for modeling the rapid propagation of failures across a microservice mesh. This allows the model to understand the spatial context of anomalies.
2.4 Joint Learning and Data Augmentation
To address the inherent scarcity of labeled failure data in production environments, the authors implement a "closest neighbor" replacement strategy in the embedding space to generate synthetic failure cases. The model is trained using a joint learning objective: ranking service instances by their likelihood of being the root cause (localization) and identifying the specific type of failure (classification).
3. Experimental Results
The framework was evaluated on two datasets: D1 (GAIA), an open-source simulated environment with 10 services, and D2 (Real-world Bank), a private dataset from a major commercial bank.
3.1 Diagnostic Performance
DiagFusion demonstrated significant performance gains over baselines such as MicroRank and PDiagnose:
- Root Cause Localization: The model improved accuracy (measured by Avg@5) by 20.9% to 368%.
- Failure Classification: DiagFusion achieved an F1-score of 0.84 on GAIA and 0.80 on the bank dataset, outperforming existing methods by 11% to 169%.
3.2 Operational Efficiency
In production environments, speed is paramount. DiagFusion completes an online diagnosis in less than 12 seconds. Given that standard monitoring systems typically collect data at 30-second intervals, DiagFusion provides results well before the next data batch arrives, enabling near-real-time response.
4. Discussion and Key Insights
The success of DiagFusion highlights several critical insights for modern observability:
- Multimodal Synergy: The integration of logs, metrics, and traces is not just additive but multiplicative. In the study's dataset, 62 failure cases lacked metric data entirely; DiagFusion successfully diagnosed these by leveraging the remaining modalities.
- Robustness via Service Groups: By predicting "service groups" rather than volatile container IDs, the model remains robust to the dynamic scaling and ephemeral nature of cloud-native deployments.
- Joint Task Benefits: Training localization and classification together creates a feedback loop where understanding the nature of a failure helps the GNN narrow down its origin.
5. Conclusion and Future Work
DiagFusion represents a significant step toward automated, robust failure diagnosis in complex microservice systems. By breaking down data silos and utilizing graph-based joint learning, it provides SREs with actionable insights faster and more accurately than single-modality tools. Future research will focus on reducing the need for retraining when new service groups are introduced and exploring the integration of unstructured data like developer "runbooks" to further enhance diagnostic depth.
Summary updated