Abstract
The presence of unhealthy nodes in cloud infrastructure signals the potential failure of machines, which can significantly impact the availability and reliability of cloud services. This paper introduces Deoxys, a causal inference engine tailored to recommending mitigation actions for unhealthy nodes to minimize virtual machine (VM) downtime and interruptions. By employing Double Machine Learning (DML) combined with Causal Forests, Deoxys produces precise mitigation recommendations based on historical observational data. Deoxys further incorporates policy fallback and action overriding mechanisms to enhance system reliability and resource utilization. Deployed at scale within Microsoft's cloud infrastructure, Deoxys has demonstrated a 53% reduction in average VM downtime and a 49.5% lower VM interruption rate compared to legacy heuristic policies.
Introduction
In large-scale cloud environments, physical server nodes occasionally enter an "unhealthy" state, often detected through a lost heartbeat. When a node becomes unhealthy, the system must choose a mitigation action to restore the VMs running on it. The primary challenge is the trade-off between different actions: a Reboot is fast but may fail if the issue is hardware-related, while a Redeploy (moving VMs to a new server) is highly reliable but slow and resource-intensive.
Existing solutions typically rely on hand-crafted heuristics or reinforcement learning. Heuristics are often too rigid, while reinforcement learning requires risky live experimentation. Deoxys addresses these issues by treating mitigation as a causal inference problem, learning optimal policies from historical observational logs without the need for live exploration.
Methodology: The Deoxys Framework
Deoxys utilizes a core architecture called CauForeDML, which integrates two advanced causal inference techniques to estimate the Individual Treatment Effect (ITE) of mitigation actions:
- Double Machine Learning (DML): DML is employed to "deconfound" historical data. Since past mitigation choices were influenced by specific diagnostic signals, DML uses a two-stage process to isolate the true causal effect of an action on VM downtime by removing these selection biases.
- Causal Forest: Unlike standard Random Forests that predict outcomes, a Causal Forest partitions data to estimate the difference in outcomes between actions (e.g., Reboot vs. Redeploy), providing confidence intervals for its recommendations.
System Architecture
The Deoxys system is designed for high reliability and safety in production environments. It consists of several key components: a Telemetry Collector for signal gathering, a Diagnostic Agent, the CauForeDML Predictor, and a Decision Layer that implements safety mechanisms.
To ensure production stability, Deoxys includes:
- Policy Fallback: If the model's prediction uncertainty is high, the system reverts to a safe, legacy heuristic.
- Action Overrides: To prevent "ping-pong" failures, the system overrides a Reboot recommendation in favor of Redeploy if a node fails repeatedly.
- Sticky Policy: A hashing mechanism ensures consistent policy assignment for nodes during A/B testing.
Evaluation and Results
Deoxys was evaluated using an offline dataset of over 20,000 unhealthy events and an online A/B test spanning four months across 23 production regions.
Key findings include:
- Downtime Reduction: Deoxys achieved a 53% reduction in average VM downtime compared to legacy heuristics.
- Improved Stability: The VM interruption rate was lowered by 49.5%.
- Resource Efficiency: By accurately identifying cases where a Reboot is sufficient, Deoxys saved 3% of node capacity that would otherwise have been consumed by unnecessary Redeployments.
- Interpretability: Analysis revealed that the model correctly learned to prioritize Redeployment when hardware failure error codes are present, a logic previously managed by manual heuristics.
Conclusion and Future Work
Deoxys demonstrates the power of causal inference in managing complex cloud infrastructure. By learning from historical data, it provides a safer and more effective alternative to heuristic or reinforcement learning-based mitigation. Future research will focus on optimizing the timing of mitigation actions—determining the ideal waiting period before intervening—and incorporating sequential health snapshots to further refine prediction accuracy.
Summary updated