]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: backend/random: never queue on the server, always on the backend
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2020 14:58:30 +0000 (16:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2020 15:18:11 +0000 (17:18 +0200)
commitb88ae180211bfde0e77e006aabd0f879239db0ae
tree899944dcf7cc1d11dcbe81cbabbe7e824f2bb4ce
parent9d85eb02d563029f5435238fd2fb45012fcafec5
OPTIM: backend/random: never queue on the server, always on the backend

If random() returns a server whose maxconn is reached or the queue is
used, instead of adding the request to the server's queue, better add
it to the backend queue so that it can be served by any server (hence
the fastest one).
src/backend.c