Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haproxy: enable hitless reloads #32423

Merged
merged 1 commit into from Aug 10, 2021

Conversation

zdykstra
Copy link
Contributor

@zdykstra zdykstra commented Aug 9, 2021

Switch HAProxy to a master/worker (-W) model, allowing for correct
handling of HUP signals. To do listening FD handoff, a stats socket with
'expose-fd listeners' needs to be part of the configuration file.

General

Have the results of the proposed changes been tested?

  • I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
  • I generally don't use the affected packages but briefly tested this PR

@@ -1,3 +1,5 @@
#!/bin/sh

exec haproxy -f /etc/haproxy/haproxy.cfg
exec haproxy -W \
-p /var/run/haproxy.pid \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose the PID file is needed for this handling?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was only storing the PID of the master process, not any of the workers. Removed!

Switch HAProxy to a master/worker (-W) model, allowing for correct
handling of HUP signals. To do listening FD handoff, a stats socket with
'expose-fd listeners' needs to be part of the configuration file.
@ericonr ericonr merged commit 02a53fb into void-linux:master Aug 10, 2021
@zdykstra zdykstra deleted the haproxy-hitless-reload branch August 10, 2021 14:25
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants