Workflow Scheduling

1. Directed Acyclic Graphs

Job precedences define a DAG :

This may require forced idleness. Most such problems are NP-hard. Optimal methods are known only under restrictive assumptions (e.g. unit processing times ; fixed machine number , or restricted topologies).

Some common topologies include:

2. Hu's Critical Path Rule

To solve where = in-tree. Call the exit node the root of the in-tree. For each job , assign level :

Hu's algorithm is a list scheduler that prioritises jobs with the highest level. It's .

2.1 Assigning Machines

To process DAG in time where , it can be shown the minimum number of machines is:

where is the number of nodes at level .

2.2 Other Applications

Hu's algorithm is also optimal for where = out-tree. The exit node is the root of the out-tree. For each job , assign level . Then, the optimal schedule is read backwards.

Its also optimal for Disjoint in-trees by adding a dummy successor with to each exit node. However, its NOT optimal for a opposing forest (set of disjoint in-trees and out-trees). is NP-hard.

Hu's algorithm also approximates with worst-case ratio:

3. Muntz-Coffman Algorithm

An extention of Hu's algorithm for the preemptive case for in-trees an out-trees, and for general DAGs on two machines.

A subset sequence is a partition of jobs such that:

  • If is a node of then for some .
  • If is a successor of then .

Essentially, its a partition of sets where each set contains jobs that can be executed in parallel.

Given a subset sequence for , schedule with the lower first and such that:

To obtain the subset sequence:

  1. Set .
  2. is the set of all nodes which have not yet been assigned to subsets and have label .
  3. Assign all nodes in to . If go to step 5.
  4. If then stop. Otherwise, and go to step 2.
  5. is the set of all unassigned nodes whose predecessors are all in .
  6. Add to the nodes with largest until or Q is empty. Go to step 4.

Muntz-Coffman Algorithm is optimal for and and . Under pmtn, its always possible to break down into smaller jobs with .

The worst case ratio for for is .

4. Generalized Workflow Scheduling

In heterogeneous systems, jobs may execute non-preemptively on different machines with an interconnect. Now:

The Earliest Start Time of job on machine is:

Where:

The Earliest Finish Time of job on machine is:

4.1 HEFT Scheduling

Heterogeneous Earliest Finish Time (HEFT) is a list scheduling algorithm:

  1. Compute avg execution cost and communication cost across machines.
  2. Assign jobs priorities based on upward rank , where exit nodes have .
  3. Schedule with largest on machine with smallest .
Back to Home