docs: refine worker choice strategies documentation
[poolifier.git] / src / pools / selection-strategies / README.md
index 9e409cdf4207d9b7d13acfeebd5750cde5de6174..5093beb66ff3e2498125c35e8bfd725fc9b99ae5 100644 (file)
@@ -9,10 +9,14 @@ By default, the strategy uses the average task execution time for each worker bu
 
 ### Weighted round robin
 
+The strategy assigns the next task using a robin round algorithm. 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.
+
 ### Interleaved weighted round robin
 
 ## Statistics
 
+Worker choice strategies enable only the statistics that are needed to choose the next worker to avoid unnecessary overhead.
+
 ### Median
 
 Strategies using the average task execution time for each worker can use the median instead. Median is more robust to outliers and can be used to avoid assigning tasks to workers that are currently overloaded. Median usage introduces a small overhead: measurement history must be kept for each worker and the median must be recomputed each time a new task has finished.