Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Assignment policy

samson-jerome edited this page Dec 11, 2014 · 9 revisions

The dispatcher is in charge of matching jobs with ressources. A specific assignment process is started every 4s to ensure a right use of the renderfarm.

General dispatch policy:

1. Check if assignment is necessary  
2. Update proportions allowed to each job (the calculated maxRN value)  
  2.1. For each job with a userRN, reserve the indicated proportion  
  2.2. Consider jobs with no userRN:  
    2.2.1. For each pool   
      2.2.1.1. For each prio value for jobs in the pool  
        2.2.1.1.1. Assign maxRN proportionnal to the prio value (if not 0)  
3. Sort jobs:  
   3.1. jobs by id (oldest first)  
   3.2. jobs by prio desc (highest prio first)  
   3.3. jobs with userRN first  
4. For each job  
  4.1. Try to find as many RN than specified by its maxRN  
5. Return a list of matches: command - RN  

A detailled description is given in the following chart: Assignment policy chart

Clone this wiki locally