Abstract
Serverless computing has emerged as a transformative paradigm for cloud-native services. However, the ephemeral and dynamic nature of serverless applications complicates ensuring system availability and performance. Traditional root cause analysis (RCA) methods designed for microservices often fail in serverless environments due to the "pulse-like" nature of data and a lack of visibility into the full lifecycle of functions. We propose FaaSRCA, an unsupervised RCA method that integrates multi-modal observability data from both the platform and application sides into a Global Call Graph (GCG). By employing a Graph Attention Network (GAT) based auto-encoder, FaaSRCA identifies root causes at the granularity of lifecycle stages. Experimental results on serverless benchmarks demonstrate that FaaSRCA improves top-k precision by 21.25% to 81.63% over existing baselines.
Introduction: The Serverless RCA Challenge
Root Cause Analysis (RCA) is critical for maintaining cloud system reliability. While mature for microservices, serverless architectures introduce unique hurdles. First, serverless functions exhibit extreme dynamism; they live for very short durations, producing instantaneous "pulse-like" data rather than continuous streams. Second, existing tools often suffer from "lifecycle blindness," focusing only on the execution stage while ignoring platform-level events like container initialization or resource scheduling.
Finally, data silos prevent a holistic view. A performance bottleneck might manifest as a CPU spike (metric), but the root cause could be hidden in a Kubernetes event (log) or a slow external call (trace).
Methodology: The FaaSRCA Framework
FaaSRCA addresses these challenges through a comprehensive five-stage pipeline designed to bridge the gap between application-level code and platform-level infrastructure.
1. Multi-modal Data Fusion and Embedding
The system collects metrics (CPU/RAM), logs (Kubernetes events), and traces using standard tools like Prometheus, Fluentd, and Jaeger. To process this heterogeneous data, FaaSRCA uses BERT to transform textual logs into semantic vectors and a specialized projection method for scalar metrics.
2. The Global Call Graph (GCG)
The core innovation is the Global Call Graph. Unlike traditional call graphs that only track function-to-function calls, the GCG maps the entire journey of a request. It links platform-level events—such as Pod creation or destruction—directly to application-level function invocations, providing a full-lifecycle view.
3. Unsupervised Anomaly Detection with GAT
FaaSRCA utilizes a Graph Attention Network (GAT) based auto-encoder. This model learns the "normal" structural and attribute patterns of the GCG during healthy operation. Because it is unsupervised, it does not require a pre-labeled dataset of failures, making it highly adaptable to evolving serverless environments.
4. Root Cause Ranking
When an anomaly is detected, the model attempts to reconstruct the current graph. Nodes with the highest reconstruction error (calculated as a Z-score against historical norms) are flagged. This allows FaaSRCA to pinpoint the root cause at the specific lifecycle stage of a function.
Evaluation and Key Results
The framework was evaluated using two benchmarks: Serverless TrainTicket (31 functions) and an ML Workflow suite. Nine types of faults were injected, covering both platform issues (e.g., kubelet delays) and application bugs (e.g., memory leaks).
FaaSRCA significantly outperformed state-of-the-art microservice RCA tools like Eadro and PDiagnose:
- Precision: Achieved a Top-k precision improvement of 21.25% to 81.63%.
- Accuracy: Maintained an average Hit Ratio (HR@k) over 91% and a Normalized Discounted Cumulative Gain (NDCG) over 94%.
- Efficiency: Inference takes approximately 8 milliseconds per graph, enabling real-time monitoring.
Conclusion
FaaSRCA demonstrates that effective serverless RCA requires breaking down the silos between platform and application data. By treating the entire lifecycle as a unified graph, FaaSRCA provides the precision needed for modern, ephemeral cloud architectures. Future work will focus on reducing observability overhead and identifying "silent" platform failures that do not trigger standard logs or metrics.
Summary updated