1 of 37

Optimizing Machine Usage & Flow time in Task Scheduling using Value based Reinforcement Learning methods

Advisor & Supervisor: Prof. Dr. Rer. Nat. Gunter Saake

Dr. Ing. Javad Chamanara

M.sc. Gabriel Campero Durand

2 of 37

Overview

  • Introduction to Problem and Motivation
  • Main Contributions
  • Proposed Approach and Research Question
  • Evaluation and Results
  • Future Work �

23.02.2022

2

3 of 37

Motivation

23.02.2022

3

4 of 37

Scheduling

The scheduling problem is common in several industries such as transportation, finance, cloud computing and many more.

  • Uber: Dynamic Matching between ride request and vehicle resources.
  • Cloud Computing: Scheduling of jobs/tasks on finite computing resources.

23.02.2022

4

5 of 37

Scheduling in Cloud Computing

23.02.2022

5

6 of 37

Resource Management Techniques and Challenges

23.02.2022

6

Major Resource Management challenges in Cloud Computing

Cost of Power consumption in Amazon Data Centres : 42% & Servers Cost: 52%

​

7 of 37

Reinforcement Learning

23.02.2022

7

  • Previous Achivements: Alpha Zero, Autonomous-Driving, Atari Games.

​

  • Supports discrete and continuous action spaces.

​

  • Accounts for future reward maximization and learns via interaction with environment.

​

​

​

8 of 37

Reinforcement Learning Approaches

23.02.2022

8

Value Based Methods

9 of 37

Main Contributions

23.02.2022

9

10 of 37

Related Work

23.02.2022

10

Proposed Approach

Resource Dimension

Benchmark Dataset

Obtained Results

Limitation

Tetris for tighter

packing of resources, proposed by Grandl et al. [2014]

​

CPU, Memory, Disk

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

11 of 37

Proposed Approach

23.02.2022

11

12 of 37

Data Preperation Pipeline

23.02.2022

12

13 of 37

Design of Scheduling Environment

23.02.2022

13

OpenAI gym Interface

14 of 37

Design of State Space

23.02.2022

14

Highest-scoring machine gets selected

Wait Action

Q-Values

Bellman’s Equation

15 of 37

Design of State Space: Data Format

23.02.2022

15

Values ranges between 0-1 (due to normalized features present in dataset)

16 of 37

Research Questions

23.02.2022

16

17 of 37

Research Question 1

1. Which of the Q-value based models and their configurations best fit in reducing the under-utlization of resources on machines used per episode. How well does the learned policy perform with respect to the flow-time of an episode compared to rule based technique(k8s) and greedy policy?

​

23.02.2022

17

  • flow-time: Completion time of Episode including Waiting Time
  • Same Length Episosde: Episode with Fixed No. Tasks
  • Different Length Episode: Episode with Different No. Tasks

18 of 37

Design of Reward: Research Question 1

  •  

23.02.2022

18

19 of 37

Research Question 2

2. Which of the Q-Value based models and their configurations works best in maintaining a trade-off between episode flow-time and under-utilization of resources. How does the agent perform when trained with same length and different length episodes. How well does the learned policy compare to the rule based(k8s) technique and greedy policy?

​

​

23.02.2022

19

  • flow-time: Completion time of Episode including Waiting Time
  • Same Length Episosde: Episode with Fixed No. Tasks
  • Different Length Episode: Episode with Different No. Tasks

20 of 37

Design of Reward: Research Question 2

  •  

23.02.2022

20

21 of 37

Evaluation Strategies

23.02.2022

21

22 of 37

Evaluation Strategies

23.02.2022

22

Greedy Policy

K8s Most Allocated

23 of 37

Experimental Setup

23.02.2022

23

24 of 37

Network Architechtures

23.02.2022

24

Double Deep Q Network (Double DQN)

Duelling Double Deep Q Network(D3QN)

25 of 37

Episodes Configurations (Training)

Same Length Episodes

Different Episode Length

3000 - 3500 episodes: 1000 fixed tasks per episode

3000 episodes: 2000 varying number of task per episode

26 of 37

Episodes Configurations (Testing)

Same Length Episodes

Different Episode Length

10 episodes : 683 Tasks per episode with Different resource request

27 of 37

Results

23.02.2022

27

28 of 37

Training Results: Research Question 1(Double DQN)

Same Length Episode

Different Length Episode

29 of 37

Training Results: Research Question 1(D3QN)

Same Length Episode

Different Length Episode

30 of 37

Training Results: Research Question 2(Double DQN)

Same Length Episode

Different Length Episode

31 of 37

Training Results: Research Question 2(D3QN)

Same Length Episode

Different Length Episode

32 of 37

Testing Results: Research Question 1 (D3QN)

Same Length Episodes

Different Length Episodes

Resource-Utilization

Improvement

​

Wait-Time/

Flow-Time

33 of 37

Testing Results: Research Question 2 (D3QN)

Same Length Episodes

Different Length Episodes

34 of 37

Conclusion and Future Work

23.02.2022

34

35 of 37

Conclusion

  • We conclude that greedily optimizing for under-utilization of resources on episodes with higher number of tasks negatively impacts flow-time of episode.
  • We establish a trade-off which allows us to achieve 0.92 times the speed of K8s for completing episodes and reduce under-utilization of combined resources by the difference of 20% compared to K8s.

36 of 37

Future Work

  1. Reward Design
  2. Benchmark Dataset
  3. DRL Frameworks
  4. DRL Agents
  5. Scalability and Reusability

37 of 37

Threats to Validity

  1. Effects of hyper parameters and network architechture
  2. Rainbow Agent Configurations: Multi-Step Learning, Ditributional RL, Noisy Net
  3. Performance of agent sensitive towards episodes length and scenarios

23.02.2022

37