Difference between revisions of "Haproxy hitless reload"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
https://www.haproxy.com/blog/multithreading-in-haproxy/ | https://www.haproxy.com/blog/multithreading-in-haproxy/ | ||
``` | ``` | ||
− | nbproc | + | global |
− | haproxy_1 | [ALERT] (7) : config : parsing [/usr/local/etc/haproxy/haproxy.cfg:10] : nbproc is not supported any more since HAProxy 2.5. Threads will automatically be used on multi-processor machines if available. | + | nbproc 1 # haproxy_1 | [ALERT] (7) : config : parsing [/usr/local/etc/haproxy/haproxy.cfg:10] : nbproc is not supported any more since HAProxy 2.5. Threads will automatically be used on multi-processor machines if available. |
+ | nbthread 4 | ||
+ | cpu-map auto:1/1-4 0-3 | ||
``` | ``` | ||
Revision as of 16:45, 26 July 2022
https://www.haproxy.com/blog/haproxy-process-management/
echo "show proc" | socat stdio tcp4-connect:192.168.48.2:1234 echo "reload" | socat stdio tcp4-connect:192.168.48.2:1234
https://www.haproxy.com/blog/get-to-know-the-haproxy-process-manager/ https://www.haproxy.com/blog/multithreading-in-haproxy/
global nbproc 1 # haproxy_1 | [ALERT] (7) : config : parsing [/usr/local/etc/haproxy/haproxy.cfg:10] : nbproc is not supported any more since HAProxy 2.5. Threads will automatically be used on multi-processor machines if available. nbthread 4 cpu-map auto:1/1-4 0-3
More
https://www.haproxy.com/documentation/hapee/latest/api/runtime-api/overview/
https://www.haproxy.com/blog/haproxy-process-management/
https://github.com/snorwin/haproxy-reload-wrapper/blob/main/main.go
https://cdn.haproxy.com/wp-content/uploads/2020/04/20.-Master-CLI_Configuration.png
https://www.haproxy.com/blog/truly-seamless-reloads-with-haproxy-no-more-hacks/