mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-10 17:41:11 +01:00
It is the main part of this series. In the peer applet, only the peer flags are updated. It is now the responsibility of the resync process function to check changes on each peer to update the peers section state accordingly. Concretly, changes on the connection state (accepted, connected, released or renewed) are first reported at the peer level and then handled in __process_peer_state() function. In the same manner, when the learn status of a peer changes, the peers section state is no longer updated immediately. The resync task is woken up to deal with this changes. Thanks to these changes, the peers should be now really thread-safe. This patch relies on the following ones: * BUG/MINOR: peers: Report a resync was explicitly requested from a thread-safe manner * MINOR: peers: Add functions to commit peer changes from the resync task * MINOR: peers: sligthly adapt part processing the stopping signal * MINOR: peers: Add flags to report the peer state to the resync task * MINOR: peers: Add 2 peer flags about the peer learn status * MINOR: peers: Split resync process function to separate running/stopping states No bug was reported about the thread-safety of peers. Only a performance issue was encountered with a huge number of peers (> 50). So there is no reason to backport all these patches further than 2.9.
…
The HAProxy documentation has been split into a number of different files for ease of use. Please refer to the following files depending on what you're looking for : - INSTALL for instructions on how to build and install HAProxy - BRANCHES to understand the project's life cycle and what version to use - LICENSE for the project's license - CONTRIBUTING for the process to follow to submit contributions The more detailed documentation is located into the doc/ directory : - doc/intro.txt for a quick introduction on HAProxy - doc/configuration.txt for the configuration's reference manual - doc/lua.txt for the Lua's reference manual - doc/SPOE.txt for how to use the SPOE engine - doc/network-namespaces.txt for how to use network namespaces under Linux - doc/management.txt for the management guide - doc/regression-testing.txt for how to use the regression testing suite - doc/peers.txt for the peers protocol reference - doc/coding-style.txt for how to adopt HAProxy's coding style - doc/internals for developer-specific documentation (not all up to date)
Description
Languages
C
98.1%
Shell
0.9%
Makefile
0.5%
Lua
0.2%
Python
0.1%