Thank you both for answering. Have a nice weekend Andreas Mock
Von: Patrick Hemmer [mailto:hapr...@stormcloud9.net] Gesendet: Freitag, 28. Februar 2014 17:24 An: haproxy@formilux.org 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 (http://marc.info/?l=haproxy&m=139064677914723). If this gets implemented, it would probably be a minor detail to not only dump the up/down state, but all stats. -Patrick ________________________________ From: PiBa-NL <piba.nl....@gmail.com><mailto:piba.nl....@gmail.com> Sent: 2014-02-28 11:15:19 E To: Andreas Mock <andreas.m...@drumedar.de><mailto:andreas.m...@drumedar.de>, haproxy@formilux.org<mailto:haproxy@formilux.org> <haproxy@formilux.org><mailto:haproxy@formilux.org> 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 'done'. 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 [mailto:andreas.m...@drumedar.de] Gesendet: Montag, 24. Februar 2014 16:36 An: haproxy@formilux.org<mailto:haproxy@formilux.org> 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/haproxy.pid -sf $(cat /var/run/haproxy.pid) to make such a reload. But after that all statistics are reset. Best regards Andreas Mock