X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fworker-choice-strategies.md;h=147a500e44bd4beb02a5c79637d23c71b7fc3261;hb=7e80208e7b0ef86674762cdcbe158dec46666bb5;hp=0a06627951661e7c803cc15f5a611ebfaa29b4ce;hpb=4f8e444d4f7f3492d7aa09f12ced5a320ab68d30;p=poolifier.git diff --git a/docs/worker-choice-strategies.md b/docs/worker-choice-strategies.md index 0a066279..147a500e 100644 --- a/docs/worker-choice-strategies.md +++ b/docs/worker-choice-strategies.md @@ -1,5 +1,7 @@ # Worker choice strategies +All duration or timestamp are expressed in milliseconds. + ## Table of contents - [Strategies](#strategies) @@ -11,8 +13,6 @@ ## Strategies -All duration or timestamp are expressed in milliseconds. - ### Fair share Its goal is to distribute the load evenly across all workers. To achieve this, the strategy keeps track of the average task execution time for each worker and assigns the next task to the worker with the lowest task end prediction time: `task_end_prediction = max(current_time, task_end_prediction) + average_task_execution_time`.