From 251f0d71237a8ef1f0206f2bd2b024966a8ce04d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 10 Jun 2023 15:04:49 +0200 Subject: [PATCH] docs: add IWRR documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Close #766 and #772 Signed-off-by: Jérôme Benoit --- src/pools/selection-strategies/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.34.1