Thank you both for answering.

Have a nice weekend
Andreas Mock

Von: Patrick Hemmer []
Gesendet: Freitag, 28. Februar 2014 17:24
Betreff: Re: AW: Keeping statistics after a reload

I have seen feature requests in the past that when haproxy reloads, to pull the 
health status of the servers so that haproxy knows their state without having 
to health check them. Willy has said he liked the idea 
( If this gets implemented, it 
would probably be a minor detail to not only dump the up/down state, but all 


From: PiBa-NL <><>
Sent: 2014-02-28 11:15:19 E
To: Andreas Mock <><>,<> 
Subject: Re: AW: Keeping statistics after a reload

Hi Andreas,

Its not like your question was wrong, but probably there is no good/satisfying 
short answer to this, and it was overrun by other mails...

As far as i know it is not possible to keep this kind information persisted in 
haproxy itself when a config restart is needed.

The -sf only makes sure old connections will nicely be closed when they are 

I have 'heard' of statistics gathering tools that use the haproxy unix stats 
socket to query the stats and store the information in a separate database that 
way you could get continued statistics after the config is changed.. I don't 
have any examples on how to do this or have a name of such a tool in mind 
though.. Though googling for "haproxy monitoring" quickly shows some commercial 
tools that have haproxy plugins and probably would provide answers to the 
questions you have.

Maybe others on the list do use programs/scripts/tools to also keep 
historical/cumulative data for haproxy and can share their experience with it?

Greets PiBa-NL

Andreas Mock schreef op 28-2-2014 16:33:

Hi all,

the list is normally really responsive. In this case nobody
gave an answer. So, I don't know whether my question was such a
stupid one that nobody wanted to answer.

So, I bring it up again in the hope someone is answering:
Is there a way to reload the configuration without loosing
current statistics? Or is this conceptually not possible?

Best regards
Andreas Mock

-----Urspr√ľngliche Nachricht-----
Von: Andreas Mock []
Gesendet: Montag, 24. Februar 2014 16:36
Betreff: Keeping statistics after a reload

Hi all,

is there a way to reload a haproxy config without resetting the
statistics shown on the stats page?

I used

haproxy -p /var/run/ -sf $(cat /var/run/

to make such a reload. But after that all statistics are reset.

Best regards
Andreas Mock

Reply via email to