]> git.kaiwu.me - haproxy.git/commit
[MINOR] Implement persistent id for proxies and servers
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Sat, 23 Feb 2008 00:19:10 +0000 (01:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Feb 2008 16:23:59 +0000 (17:23 +0100)
commitf58a9622475b4afb97b0b193b4fe32bca1e16255
tree84201b6aac95eb754be7aa72b4eb332fd39cb444
parentc8b16fc94885adbf7b0146b847ce50530eab9e40
[MINOR] Implement persistent id for proxies and servers

This patch adds a possibility to set a persistent id for a proxy/server.
Now, even if some proxies/servers are inserted/deleted/moved, iids and
sids can be still used reliable.

Some people add servers with tricky names (BACKEND or FRONTEND for example).
So I also added one more field ('type') to distinguish between a
backend (0), frontend (1) and server (2) without complicated logic:
if name==BACKEND and sid==0 then type is BACKEND else type is SERVER,
etc for a FRONTEND. It also makes possible to have one frontend with more
than one IP (a patch coming soon) with independed stats - for example to
differs between remote and local traffic.

Finally, I added documentation about the CSV format.

This patch depends on '[MEDIUM] Implement "track [<backend>/]<server>"'
doc/configuration.txt
src/cfgparse.c
src/dumpstats.c