Energy-aware Scheduling of Jobs in Heterogeneous Cluster Systems Using Deep Reinforcement Learning

Amirhossein Esmaili, Massoud Pedram

TL;DR

Deep-EAS is a deep reinforcement learning (DRL) framework designed to schedule jobs in heterogeneous computer clusters while balancing energy consumption and processing speed. By learning from scratch, the scheduler discovers "non-obvious" strategies—such as intentionally leaving a machine idle to wait for a better job—that outperform traditional manually-tuned heuristics by up to 42% under heavy workloads.

What Problem Does This Paper Address?

In modern data centers and heterogeneous clusters, scheduling is a balancing act. You want to finish jobs quickly (performance) while minimizing electricity costs (energy efficiency). This is a classic combinatorial NP-hard problem.

Traditional solutions rely on human-designed heuristics, like "Shortest Job First." However, these heuristics are often "work-conserving" (they never leave a machine idle if a job is waiting) or "energy-conserving" (they always pick the lowest-power machine). In complex, high-load scenarios with varying job types and uncertain durations, these rigid rules fail to find the global optimum. The authors aim to replace these manual rules with an agent that learns the nuances of the specific workload and hardware environment.

Methods

The authors propose Deep-EAS, which treats scheduling as a Reinforcement Learning problem:

  • State Representation: The system state is represented as a series of binary matrices. These capture the current occupation of machines (looking $H$ timesteps into the future), the resource demands of the first $Q$ jobs in the queue, and the time since the last job arrival.
  • Action Space: To keep the action space manageable, the authors decouple decisions. In a single timestep, the agent can perform multiple actions: "assign job $q$ to machine $k$" or "hold" (wait for the next timestep).
  • Reward Function: The goal is to minimize the normalized energy-delay product. A key innovation here is how the agent handles jobs still in the queue. Since their eventual energy cost is unknown until they are assigned, the authors use a "temporary minimum energy" assumption and apply a "correction reward" once the job is finally scheduled to ensure the mathematical objective remains accurate.
  • Training: They use the REINFORCE policy gradient algorithm with a baseline to reduce variance. The underlying architecture uses a Convolutional Neural Network (CNN) to extract features from the state matrices, followed by fully connected layers.

Datasets

The paper uses synthetic workloads to evaluate the model, as is common in scheduling research to stress-test specific conditions:

  • Job Sequences: Generated via a Bernoulli process with varying arrival rates ($\lambda$).
  • Job Types: A mix of short-duration and long-duration jobs (controlled by a probability $\beta$).
  • Evaluation: The model was tested on 150 "unseen" jobsets (sequences not used during training) to ensure it generalized well to new traffic patterns.

Key Insights and Ideas

  • The Power of "Holding": One of the most significant "aha" moments is that Deep-EAS learns to be non-work-conserving. It might choose to keep a low-power machine idle even if jobs are waiting, anticipating that a "long" job is about to arrive that would be much better suited for that specific machine.
  • Strategic Energy Use: The agent isn't always energy-conserving. It might put a job on a high-power machine to clear the queue faster, preventing a massive "delay" penalty that would outweigh the energy savings of a slower machine.
  • Handling Uncertainty: Unlike many previous models that assume job durations are known perfectly upon arrival, Deep-EAS works with probability distributions (normal distributions), making it more robust for real-world applications where execution time is just an estimate.

Key Results

  • Superiority at High Load: While Deep-EAS performs similarly to the Energy-aware Shortest Job First (ESJF) heuristic at low arrival rates, it shines under pressure. At a high arrival rate ($\lambda = 0.9$), Deep-EAS achieved a 42.88% lower energy-delay product than ESJF.
  • Efficiency: The inference time for a scheduling decision is only 237 $\mu s$, which is negligible compared to the millisecond-scale timesteps of a typical cluster.
  • Fast Convergence: The model begins to outperform standard heuristics within just 30 to 150 training iterations.

Limitations and Future Work

  • Static Environment: The current model assumes machines are always "on." It does not yet account for the energy costs of booting up or shutting down servers (Static Power Management).
  • Limited Flexibility: The paper does not explore job preemption (pausing a job) or migration (moving a job between machines mid-execution), which are common in advanced cluster management.
  • Dynamic Scaling: The authors suggest that future versions could incorporate Dynamic Voltage and Frequency Scaling (DVFS) directly into the RL action space to allow the agent to tune the hardware speed on the fly.

Summary updated

BibTeX
@inproceedings{esmaili2020energy,
  author = {Amirhossein Esmaili and Massoud Pedram},
  title = {{Energy-aware Scheduling of Jobs in Heterogeneous Cluster Systems Using Deep Reinforcement Learning}},
  booktitle = {ISQED},
  year = {2020},
  doi = {10.1109/isqed48828.2020.9137025},
}
Figure