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
Overview
23.02.2022
2
Motivation
23.02.2022
3
Scheduling
The scheduling problem is common in several industries such as transportation, finance, cloud computing and many more.
23.02.2022
4
Scheduling in Cloud Computing
23.02.2022
5
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%
Reinforcement Learning
23.02.2022
7
Reinforcement Learning Approaches
23.02.2022
8
Value Based Methods
Main Contributions
23.02.2022
9
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 | | | |
| | | | |
| | | | |
| | | | |
Proposed Approach
23.02.2022
11
Data Preperation Pipeline
23.02.2022
12
Design of Scheduling Environment
23.02.2022
13
OpenAI gym Interface
Design of State Space
23.02.2022
14
Highest-scoring machine gets selected
Wait Action
Q-Values
Bellman’s Equation
Design of State Space: Data Format
23.02.2022
15
Values ranges between 0-1 (due to normalized features present in dataset)
Research Questions
23.02.2022
16
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
Design of Reward: Research Question 1
23.02.2022
18
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
Design of Reward: Research Question 2
23.02.2022
20
Evaluation Strategies
23.02.2022
21
Evaluation Strategies
23.02.2022
22
Greedy Policy
K8s Most Allocated
Experimental Setup
23.02.2022
23
Network Architechtures
23.02.2022
24
Double Deep Q Network (Double DQN)
Duelling Double Deep Q Network(D3QN)
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
Episodes Configurations (Testing)
Same Length Episodes
Different Episode Length
10 episodes : 683 Tasks per episode with Different resource request
Results
23.02.2022
27
Training Results: Research Question 1(Double DQN)
Same Length Episode
Different Length Episode
Training Results: Research Question 1(D3QN)
Same Length Episode
Different Length Episode
Training Results: Research Question 2(Double DQN)
Same Length Episode
Different Length Episode
Training Results: Research Question 2(D3QN)
Same Length Episode
Different Length Episode
Testing Results: Research Question 1 (D3QN)
Same Length Episodes
Different Length Episodes
Resource-Utilization
Improvement
Wait-Time/
Flow-Time
Testing Results: Research Question 2 (D3QN)
Same Length Episodes
Different Length Episodes
Conclusion and Future Work
23.02.2022
34
Conclusion
Future Work
Threats to Validity
23.02.2022
37