Introduction
In modern cloud computing, applications are increasingly built using microservices and distributed architectures. While this approach offers scalability, it introduces significant complexity. A single user request can trigger a cascade of calls across numerous services, making it difficult to identify the root cause of failures, timeouts, or performance bottlenecks. ProvenanceLens is a two-tier framework designed to address this by tracking the "biography" of cloud service executions—capturing, storing, and analyzing service dependencies and performance data.
System Architecture
The researchers proposed a two-tier architecture to manage service provenance efficiently:
- The Capturing Tier: This tier uses a hybrid "white-box" and "black-box" approach. Lightweight agents called interceptors are embedded within the service framework to log events. To minimize performance impact, the system employs adaptive sampling, monitoring a smaller percentage of calls for high-traffic services while ensuring critical data remains captured.
- The Management & Analysis Tier: This tier processes raw logs into three distinct categories: Basic Provenance (raw execution events), Composite Provenance (aggregated data like failure rates), and Application Provenance (high-level business logic insights).
The system is designed to be "storage-agnostic," allowing it to work with various database types, including Relational (MySQL), Document (MongoDB), and Graph (Neo4j) databases.
Evaluation and Datasets
ProvenanceLens was evaluated using a real-world University Teaching Management System deployed in an IaaS cloud. This system serves 12 universities in China, handling diverse tasks such as course registration, student projects, and lesson planning. The evaluation focused on the framework's performance under varying loads and its ability to trace failures within a complex educational service ecosystem.
Key Insights and Results
The study revealed several critical findings regarding provenance management:
- Storage Performance: There is no universal database solution. MongoDB proved most efficient for data ingestion, handling 2 million records in approximately 6.2 seconds (compared to 192 seconds for MySQL). However, Neo4j was significantly superior for "trace" operations, as it treats service relationships as first-class citizens.
- Overhead and Scalability: The interceptor added less than 1ms of latency in most cases, proving to be non-intrusive for production environments. Even at high frequencies (388 tasks per second), CPU utilization remained manageable at roughly 35%.
- Root Cause Analysis: The system successfully identified failures by mapping dependencies. For example, in the "RegisterCourse" service chain, ProvenanceLens narrowed down errors to a specific "CheckConflict" service by analyzing the invocation graph.
Conclusion and Future Work
ProvenanceLens provides a lightweight, scalable solution for managing service provenance in the cloud. By decoupling capture logic from analysis, it allows for flexible monitoring strategies. Future work will focus on enhancing the security of provenance metadata, automating service health remediation, and improving the mapping of heterogeneous logs from external tools into a unified model.
Summary updated