Notification when HAProxy has reloaded

I have one service which which subscribes to Rancher’s internal events - detects if a service has been added / removed and updates a Rancher load balancer to expose the service.

After I update the load balancer with ‘addServiceLink’ I want to notify another service running behind the same load balancer about this updates. But since HAProxy needs to reload and temporarily drops some connections this notification (webhook) sometimes fails because of dropped connection.

I have been trawling through all the events I can subscribe to but have yet to find and event that tells me when the load balancer is done reloading and wont drop any more connections, so I can safely send my webhook.

This doesn’t exist today in the API. Please feel free to create a Github enhancement request for it.