Hi Rob,

Thanks for this!

On 10/06/2025 21:24, Stevenson, Bob (CHICO-R) wrote:

Is there any way for lua to trap a master socket ‘reload’ so that I can invoke ‘dump stats-file’ on the admin.sock?

From what I see in the Lua API doc, there is no explicit event to trap the reload, which could be an indicator in the script to perform the connect to master socket in order to send 'dump stats-file'.

There is some work in progress on this subject: to make worker processes stats persistent and to be aggregatable across haproxy reloads (which are actually restarts).

You can follow the announces about the latests developement releases in this list to catch it, when it will be ready.


Or any other way that I don’t know about to automatically trigger the dump to execute automatically?

Unless sending commands to master socket, there is no any other good way for now.


My haproxy is running in the opensource ingress controller; and there is currently no way to intercept or extend the reload functionality.

If you need this feature urgently and you are blocked, you could expose your problem in the issue here:

https://github.com/haproxytech/dataplaneapi/issues

The new feature, which I've told before and which is in progress, will solve your problem.

BR,

--
Bien cordialement,
Valentine

Reply via email to