MEDIUM: check: server states and weight propagation re-work
authorEmeric Brun <ebrun@haproxy.com>
Thu, 31 Aug 2017 12:41:55 +0000 (14:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 13:23:16 +0000 (15:23 +0200)
commit52a91d3d487350ca7229b849153b193d75efab07
tree2854fe348a3df3b35143e924cf94d9119710814f
parentde2075fd2186ccf0563163e1b4295ff152860c3f
MEDIUM: check: server states and weight propagation re-work

The server state and weight was reworked to handle
"pending" values updated by checks/CLI/LUA/agent.
These values are commited to be propagated to the
LB stack.

In further dev related to multi-thread, the commit
will be handled into a sync point.

Pending values are named using the prefix 'next_'
Current values used by the LB stack are named 'cur_'
19 files changed:
include/proto/backend.h
include/proto/queue.h
include/proto/server.h
include/types/server.h
src/backend.c
src/checks.c
src/haproxy.c
src/hlua.c
src/lb_chash.c
src/lb_fas.c
src/lb_fwlc.c
src/lb_fwrr.c
src/lb_map.c
src/proto_http.c
src/proxy.c
src/queue.c
src/server.c
src/stats.c
src/stream.c