MINOR: leastconn: take the queue length into account when queuing servers
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Oct 2020 15:41:45 +0000 (17:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Oct 2020 16:30:18 +0000 (18:30 +0200)
commit8c855f6cff6864be423e9c18d98b0c2ac99486fb
tree5de57c533605dde8b6f1e3945a084bb8b41dc7c1
parent96bca33d7569b64e9b977f7a17e2b21237679e0f
MINOR: leastconn: take the queue length into account when queuing servers

When servers are queued into the leastconn tree, it's important to also
consider their queue length. There could be some servers with lots of
queued requests that we don't want to hammer with extra connections. In
order not to add extra stress to the LB algorithm, we don't update the
value when adding to the queue, only when updating the connection count
(i.e. picking from the queue or releasing a connection). This will be
sufficient to significantly improve the fairness in such situations.
doc/configuration.txt
src/lb_fwlc.c