From a5425874c28d6b0395d348b5af64ba39fed01b12 Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Wed, 3 Oct 2018 21:44:46 -0400 Subject: [PATCH] Fix section sizes. Reposition sp selector image. --- docs/SchedulingPolicySwitching.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/SchedulingPolicySwitching.md b/docs/SchedulingPolicySwitching.md index c150b5a..d5c87d2 100644 --- a/docs/SchedulingPolicySwitching.md +++ b/docs/SchedulingPolicySwitching.md @@ -1,8 +1,8 @@ -## Scheduling Policy Switching +# Scheduling Policy Switching When scheduling the workload, _Elektron_ can be made to switch between different scheduling policies in order to adapt to the variation in the workload and the changes in the state of the cluster. -### Scheduling Policy Configuration File +## Scheduling Policy Configuration File A scheduling policy configuration (SPConfig) file needs to be provided that contains information regarding the scheduling policies that can be selected while switching and the distribution of tasks that they are appropriate to schedule (_See [schedPolConfig.json](../schedPolConfig.json) for reference_). ```json @@ -22,9 +22,8 @@ A scheduling policy configuration (SPConfig) file needs to be provided that cont } ``` -### Scheduling Policy Selector -![](docs/SchedPolSelector.png) +## Scheduling Policy Selector The **Scheduling Policy Selector** is responsible for selecting the appropriate scheduling policy to schedule the next set of pending tasks. It takes as input a _Switching Criteria_, the pending task queue and Mesos resource offers. The Scheduling Policy Selector is made up of the following components. @@ -33,3 +32,6 @@ It takes as input a _Switching Criteria_, the pending task queue and Mesos resou * **_Policy Selector_** - Based on the _Switching Criteria_, the policy selector selects the next appropriate scheduling policy. The default _Switching Criteria_ is task distribution based. However, _Elektron_ also supports round-robin based switching. * _Task Distribution based switching_ - The tasks in the scheduling window are first classified (based on their estimated power consumption) into Low Power Consuming (Lpc) and High Power Consuming (Hpc). The distribution of tasks is then determined to be the ratio of the number of Lpc tasks and Hpc tasks. The _Policy Selector_ then selects the scheduling policy that is most appropriate to schedule the determined distribution of tasks (using information in SPConfig file). * _Round-Robin based switching_ - The _Policy Selector_ selects the next scheduling policy based on a round-robin ordering. For this, the scheduling policies mentioned in SPConfig are stored in a non-increasing order of their corresponding task distribution. + +![](docs/SchedPolSelector.png) +