Abstract
Data centers are critical infrastructure for the digital economy but account for approximately 3.7% of global greenhouse gas emissions. A major source of this environmental impact is low server utilization, where resources are over-provisioned to handle potential traffic spikes. This paper introduces Full Scaling Automation (FSA), a deep learning framework designed to dynamically adjust cloud resources in real-time. By combining multi-scale time-series forecasting with Bayesian uncertainty modeling, FSA optimizes resource allocation across thousands of microservices. Real-world deployment at Ant Group demonstrates that FSA can significantly reduce carbon footprints, achieving a reduction of 947 tons of CO2 during a single major shopping event.
Introduction
Modern internet services face highly complex workloads characterized by nested periodicities (daily, weekly, and seasonal) and extreme volatility during large-scale events. Traditional autoscaling methods often fail to capture these patterns or ignore the inherent uncertainty in the relationship between workload (e.g., requests per second) and resource consumption (e.g., CPU utilization). Consequently, operators resort to conservative over-provisioning, leading to massive energy waste.
FSA addresses these challenges through a two-pronged approach: a robust workload forecasting module that leverages multi-scale representations and a decision module that incorporates Bayesian uncertainty to balance service reliability with energy efficiency.
Methodology: The FSA Framework
The FSA architecture is divided into two primary components: the Workload Forecasting Module and the Scaling Decision Module.
Workload Forecasting Module
To handle complex temporal patterns, FSA employs Representation-enhanced Deep Autoregressive Models. This module utilizes contrastive learning to extract features across multiple time scales (daily, weekly, monthly) and domains (time and frequency). By incorporating Fast Fourier Transforms (FFT), the model explicitly captures periodic "heartbeats" in traffic data. The architecture combines a Convolutional Transformer (ConvTrans) for contextual embeddings with multi-head self-attention to fuse long-term historical trends with near-term observations.
Scaling Decision Module
Once the workload is predicted, the system must determine the optimal number of virtual containers (Pods) to allocate. FSA uses Task-conditioned Bayesian Neural Regression to model the mapping between workload and CPU usage. Unlike deterministic models, this approach provides a probability distribution, offering "upper" and "lower" bounds that allow for risk-aware scaling strategies. To manage thousands of diverse microservices efficiently, a task-conditioned hypernetwork is used to generate service-specific parameters from a single global model, enabling shared learning across the entire data center.
Experimental Results and Real-World Impact
The researchers evaluated FSA using production data from 3,000 microservices at Ant Group. In forecasting benchmarks, FSA outperformed state-of-the-art models such as N-BEATS, Informer, and Fedformer, reducing Mean Absolute Error (MAE) by approximately 30% compared to vanilla deep learning baselines.
The real-world impact of FSA is most evident during peak traffic events. During the 2022 "Double 11" shopping festival, the system achieved:
- 947 tons of CO2 emission reduction.
- 1,538,000 kWh of electricity savings.
- Significant improvement in Relative Resource Consumption (RRC) compared to industry standards like Google’s Autopilot.
Conclusion
Full Scaling Automation represents a significant step toward sustainable data center management. By integrating advanced time-series representation with uncertainty-aware decision-making, FSA enables high resource utilization without compromising service stability. Future work will explore the integration of vertical scaling and more granular hardware metrics to further enhance energy efficiency in cloud environments.
Summary updated