On Tue, Nov 20, 2018 at 10:29:43PM +0300, Sergey Arlashin wrote:
> Also I just noticed, when I reload HAProxy in master worker mode with
> SIGUSR2, stats stop get updated for already established sessions. I need to
> reestablish the sessions in order to see stat updates.
> 
> Is this a desired behaviour? Or probably there is a way to fix this? 

No, they are still updated, it's just that your stats requests are sent
to the new process, which still doesn't have new connections. There is
no real "fix", if you have long sessions and you reload frequently, you
end up with multiple processes each having their own sessions and own
stats. With the new master-worker features in 1.9 you'll be able to
check the stats of older processes as well (via the CLI) in case you
really need this. Another option could be to figure why you need to
reload often, which seems a bit contradictory with the need for long
sessions. Maybe some operations don't require a reload.

Willy

Reply via email to