HAProxy community

How to check all haproxy slave processes are ready after startup


#1

Hi,

We are using haproxy for SSL offloading. We use master-slave mode and nbproc is set to 8. All 8 slave processes forward HTTP requests to the same backend. My question is, after starting haproxy, how can I know if all the slave processes are “ready” to serve requests? Does haproxy expose any interface I can poke for this kind of check?

Thanks,
Hongli


#2

More findings:

As I read more haproxy source, I figured that multiple slave processes are polling on the same sockets in race. That means if one HTTP request gets successfully forwarded by haproxy, at least one slave process is picking up tasks, thus all subsequent requests could be forwarded by haproxy. Before I was worried about even if the first request goes through the next request could fail.