Re: [PATCH] Document support of twos scheduler
Julian Anastasov <[email protected]>
| Newsgroups | org.kernel.vger.lvs-devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, On Fri, 21 Aug 2026, Quentin Armitage wrote: > 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. The patch does not apply. Probably, the old lines start with extra space. # patch -p1 --dry-run < /tmp/file.diff checking file SCHEDULERS checking file ipvsadm.8 Hunk #1 FAILED at 286. 1 out of 1 hunk FAILED > +.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 Regards -- Julian Anastasov <[email protected]>