Abstract
Modern cloud architectures, such as Huawei Cloud, are built upon massive hierarchies of microservices to achieve scalability and agility. However, this complexity often masks a web of intricate dependencies that can lead to catastrophic cascading failures. This paper presents the Dependency Management System (DMS), an industrial-scale platform designed to map, classify, and quantify service interactions. By integrating multi-source data fusion and multivariate time series analysis to measure dependency "intensity," DMS provides engineers with the visibility needed to optimize architectures and accelerate incident response. In production environments, the implementation of DMS has reduced system recovery times by over 60% and facilitated the pruning of critical architectural bottlenecks.
1. Introduction
The transition to microservice-oriented cloud architectures has successfully addressed many challenges related to development velocity and system scalability. Yet, this "divide and conquer" approach introduces a significant secondary challenge: dependency opacity. In a large-scale environment like Huawei Cloud, a single user request may traverse dozens of services. When one component fails or slows down, the impact can ripple through the system in unpredictable ways, often resulting in cascading failures that are difficult to diagnose and mitigate.
Engineers frequently struggle to distinguish between different types of dependencies—such as those required only for initial deployment versus those critical for real-time request processing. Without a clear, quantified map of these relationships, proactive architectural optimization and rapid fault recovery remain elusive. This paper details the design and industrial application of the Dependency Management System (DMS) to address these reliability concerns.
2. The Dependency Management System (DMS) Framework
The DMS operates as a comprehensive framework for managing the lifecycle of service relationships across three primary pillars: classification, data fusion, and intensity analysis.
2.1 Refined Classification
DMS moves beyond a binary "depends on" model by categorizing relationships into two granular levels:
- Service-level Dependencies: These include deployment dependencies (required for service startup), run-time dependencies (required for core functionality), and operational dependencies (required for maintenance and monitoring).
- Microservice-level Dependencies: These focus on technical implementation, including composed-of (static structural relationships), run-on (environmental dependencies like VMs or containers), and microservice run-time (active API calls and RPCs).
2.2 Multi-Source Data Fusion
To ensure a high-fidelity map, DMS aggregates data from disparate sources rather than relying on a single telemetry stream:
- Engineer Specifications: Manual reports that define fundamental deployment requirements.
- Configuration Files: Automated parsing of static configuration files to identify hard-coded relationships.
- OpenTracing Data: Real-time distributed tracing data that captures the dynamic interactions between services during live operation.
2.3 Intensity Analysis (AID)
A core innovation of DMS is the quantification of dependency "intensity" using a tool called AID. By analyzing multivariate time series data derived from service traces, AID calculates the statistical similarity between the status of a caller and a callee. This allows the system to determine the functional impact of a dependency—essentially measuring how much the performance of Service A degrades when Service B experiences latency or failure.
3. Industrial Evaluation and Results
DMS was deployed within Huawei Cloud’s production environment, managing hundreds of distinct cloud services. The evaluation focused on real-world failure mitigation and architectural health.
3.1 Accelerated Recovery
During live outages, the clarity provided by DMS allowed On-Call Engineers (OCEs) to immediately identify "strong" dependencies. By prioritizing the recovery of these critical paths first, the total time required for system recovery was reduced by more than 60%. This shift from manual dependency discovery to automated, intensity-aware mapping proved vital for maintaining high availability.
3.2 Architectural Optimization
Beyond reactive incident response, DMS serves as a proactive auditing tool. Since its inception, the system has identified more than ten "unnecessary strong dependencies" on key cloud services. These were instances where a critical service was tightly coupled to a non-essential component, creating a reliability risk. Pruning these dependencies has directly improved the overall robustness of the cloud infrastructure.
4. Discussion and Key Insights
The industrial practice of DMS revealed several critical insights for cloud reliability:
- Temporal Distinction: The distinction between deployment and run-time dependencies is paramount. A failure in a deployment dependency may stall an update but does not necessarily impact the availability of currently running services, whereas run-time failures have immediate user impact.
- Intensity as a Prioritization Metric: Not all dependencies are created equal. Quantifying intensity allows engineers to focus their decoupling efforts on the most dangerous "strong" dependencies, rather than being overwhelmed by a flat list of interactions.
- Full-Lifecycle Utility: Dependency management is not merely a troubleshooting activity; it is a continuous process that spans initial deployment, upgrades, and ongoing architectural refinement.
5. Conclusion and Future Work
The Dependency Management System has demonstrated that a structured, data-driven approach to service dependencies can significantly enhance cloud reliability. While the system has proven effective in reducing recovery times and optimizing architecture, future work may address the computational overhead associated with real-time AID analysis and the refinement of trace data to further reduce noise in intensity calculations. As cloud environments continue to grow in complexity, such automated management systems will become indispensable for industrial-scale operations.
Summary updated