]> git.kaiwu.me - haproxy.git/commit
MINOR: backend: Add srv_queue converter
authorNenad Merdanovic <nmerdan@haproxy.com>
Mon, 26 Aug 2019 23:58:13 +0000 (01:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 02:32:06 +0000 (04:32 +0200)
commit177adc9e570573501eaf0a2431ca89d363b374af
tree8e4687152c9ec2dd78383c0144b7af75e97f2ade
parent2dd26ca9ff8e642611b8b012d6aee45ea45196bc
MINOR: backend: Add srv_queue converter

The converter can be useful to look up a server queue from a dynamic value.

It takes an input value of type string, either a server name or
<backend>/<server> format and returns the number of queued sessions
on that server. Can be used in places where we want to look up
queued sessions from a dynamic name, like a cookie value (e.g.
req.cook(SRVID),srv_queue) and then make a decision to break
persistence or direct a request elsewhere.

Signed-off-by: Nenad Merdanovic <nmerdan@haproxy.com>
doc/configuration.txt
src/backend.c