From: Jérôme Benoit Date: Wed, 9 Aug 2023 20:44:03 +0000 (+0200) Subject: docs: fix docs/worker-choice-strategies.md structure X-Git-Tag: v2.6.22~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3dba671e8b5f66e6598e3cc25a3472b27391e8ed;p=poolifier.git docs: fix docs/worker-choice-strategies.md structure Signed-off-by: Jérôme Benoit --- 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`.