From: Jérôme Benoit Date: Sat, 10 Jun 2023 13:04:49 +0000 (+0200) Subject: docs: add IWRR documentation X-Git-Tag: v2.6.1~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=251f0d71237a8ef1f0206f2bd2b024966a8ce04d;p=poolifier.git docs: add IWRR documentation Close #766 and #772 Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/selection-strategies/README.md b/src/pools/selection-strategies/README.md index 6796a12f..a370e736 100644 --- a/src/pools/selection-strategies/README.md +++ b/src/pools/selection-strategies/README.md @@ -9,10 +9,14 @@ By default, the strategy uses the average task execution time for each worker bu ### Weighted round robin -The worker weights are maximum tasks execution time, once the worker has reached its maximum tasks execution time, the next task is assigned to the next worker. The default worker weights are the same for all workers and is computed given the CPU cores speed and theirs numbers. +The worker weights are maximum tasks execution time, once the worker has reached its maximum tasks execution time, the next task is assigned to the next worker. The worker default weights are the same for all workers and is computed given the CPU cores speed and theirs numbers. ### Interleaved weighted round robin +The worker weights are maximum tasks execution time. The rounds are the deduplicated worker weights. +During a round, if worker weight is inferior to the current round, the task is assigned to the next worker. Once the all workers have been assigned a task, the next round starts. +The worker default weights are the same for all workers and is computed given the CPU cores speed and theirs numbers. So the default rounds consists of a unique worker weight. + ## Statistics Worker choice strategies enable only the statistics that are needed to choose the next worker to avoid unnecessary overhead.