[PATCH] Document support of twos scheduler

Quentin Armitage <[email protected]>
Newsgroups org.kernel.vger.lvs-devel
Message-ID <[email protected]>
The Linux kernel has supported the twos scheduler since v5.12. Make
sure ipvsadm users know it exists.

Signed-off-by: Quentin Armitage <[email protected]>
---
  SCHEDULERS | 2 +-
  ipvsadm.8  | 5 +++++
  2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/SCHEDULERS b/SCHEDULERS
index 06d3357..8ddef23 100644
--- a/SCHEDULERS
+++ b/SCHEDULERS
@@ -1 +1 @@
-rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq|fo|ovf|mh
+rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq|fo|ovf|mh|twos
diff --git a/ipvsadm.8 b/ipvsadm.8
index 3d7541a..fe0f481 100644
--- a/ipvsadm.8
+++ b/ipvsadm.8
@@ -286,6 +286,11 @@ server as it was before.
  This scheduler has two flags: mh-fallback, which enables fallback to a
  different server if the selected server was unavailable, and mh-port,
  which adds the source port number to the hash computation.
+.sp
+\fBtwos\fR - random twos choice: the algorithm picks two random
+servers based on weights then selects the server with the least
+amount of connections normalized by weight. The algorithm avoids
+the "herd behavior" problem.
  .TP
  .B -p, --persistent [\fItimeout\fP]
  Specify that a virtual service is persistent. If this option is

-- 
2.55.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.