Problem:
Sometimes in multi-process configuration might appear error "Failed to get the 
number of sockets to be transferred !" during reload.
Than new instance would silently fail like 50-80% of new connections.


Reason:
There is hard-coded timeout in get_old_sockets() - 1 second.
It is used for sockets receiving from old master to new master during reload 
(https://github.com/haproxy/haproxy/blob/v1.8.0/src/haproxy.c#L977)

In case of "very low CPU-power + a lot of FDs" (or just temporary latency 
problems that possible on VPS, during overload and in many other rare but easy 
imaginable cases)
- 1 second exceeded and there is no workaround for this case


Fix:
Some smart processing for error should be the right way.
But I don't see problems that might be related to bigger timeout.
So, I just clumsy change this timeout to 9sec and it works 100% OK on dozens 
heavy-loaded production servers.

---
Wert


Reply via email to