Abstract
Energy consumption is one of the most critical concerns in designing computing devices, ranging from portable embedded systems to computer cluster systems. Furthermore, in the past decade, cluster systems have increasingly risen as popular platforms to run computing-intensive real-time applications in which the performance is of great importance. However, due to different characteristics of real-time workloads, developing general job scheduling solutions that efficiently address both energy consumption and performance in real-time cluster systems is a challenging problem. In this paper, inspired by recent advances in applying deep reinforcement learning for resource management problems, we present the Deep-EAS scheduler that learns efficient energy-aware scheduling strategies for workloads with different characteristics without initially knowing anything about the scheduling task at hand. Results show that Deep-EAS converges quickly, and performs better compared to standard manually-tuned heuristics, especially in heavy load conditions.
Introduction
In modern data centers and heterogeneous clusters, scheduling is a complex balancing act between finishing jobs quickly (performance) and minimizing electricity costs (energy efficiency). This challenge is a classic combinatorial NP-hard problem. Traditional solutions rely on human-designed heuristics, such as "Shortest Job First." However, these heuristics are often either strictly "work-conserving" (never leaving a machine idle if a job is waiting) or "energy-conserving" (always picking the lowest-power machine). In complex, high-load scenarios with varying job types and uncertain durations, these rigid rules often fail to find a global optimum.
Deep-EAS is a deep reinforcement learning (DRL) framework designed to overcome these limitations by learning scheduling strategies from scratch. It discovers "non-obvious" strategies—such as intentionally leaving a machine idle to wait for a more suitable job—that can outperform traditional manually-tuned heuristics by up to 42% under heavy workloads.
Methodology: The Deep-EAS Framework
Deep-EAS treats the scheduling task as a Reinforcement Learning problem where an agent interacts with a cluster environment to maximize a long-term reward.
State Representation
The system state is represented as a series of binary matrices. These matrices capture the current and future occupation of machines, the resource demands of the first $Q$ jobs in the queue, and auxiliary counters for backlog and job arrival timing.
Action Space and Reward Function
To maintain a manageable action space, the agent can perform multiple actions within a single timestep: assigning a specific job to a machine or choosing to "hold" (wait for the next timestep).
The objective is to minimize the normalized energy-delay product. A key innovation is the handling of jobs still in the queue. Since their eventual energy cost is unknown until assignment, the authors use a "temporary minimum energy" assumption and apply a "correction reward" once the job is scheduled, ensuring the mathematical objective remains accurate throughout the learning process.
Training
The model uses the REINFORCE policy gradient algorithm. The architecture employs a Convolutional Neural Network (CNN) to extract features from the state matrices, followed by fully connected layers that output the policy distribution over the action space.
Evaluation and Results
The model was evaluated using synthetic workloads with varying arrival rates ($\lambda$) and job durations. It was tested on 150 "unseen" jobsets to ensure generalization.
- Performance at High Load: Deep-EAS significantly outperforms the Energy-aware Shortest Job First (ESJF) heuristic as load increases. At a high arrival rate ($\lambda = 0.9$), Deep-EAS achieved a 42.88% lower energy-delay product than ESJF.
- Strategic "Holding": The agent learned to be non-work-conserving, occasionally keeping low-power machines idle in anticipation of "long" jobs better suited for them.
- Efficiency and Convergence: Inference takes only 237 $\mu s$, and the model begins to outperform standard heuristics within 30 to 150 training iterations.
Conclusion
Deep-EAS demonstrates that DRL can effectively manage the trade-off between energy and performance in heterogeneous clusters without prior domain-specific tuning. By learning to anticipate future job arrivals and machine availability, it discovers strategies that human-designed heuristics miss. Future work includes incorporating server power management (booting/shutting down) and dynamic voltage/frequency scaling (DVFS) into the agent's action space.
Summary updated