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

Improve uWSGI and consul-template interactions on reloading #2640

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

amCap1712
Copy link
Member

We fixed the bind(): Address already in use [core/socket.c line 769] error in LB using exit-on-reload = true in uWSGI configuration. However, this prevents graceful reloading.

I did some further investigation as noted in metabrainz/artwork-redirect#46 and have a better fix in mind now.

For the command field in exec block of consul template configuration, use array format. This executes the command directly without spawning a shell wrapper or setting a process group id. Both of which will interfere with forwarding signals to the uWSGI process.

We fixed the `bind(): Address already in use [core/socket.c line 769]` error in LB
using `exit-on-reload = true` in uWSGI configuration. However, this prevents graceful
reloading.

I did some further investigation as noted in metabrainz/artwork-redirect#46
and have a better fix in mind now.

For the command field in `exec` block of consul template configuration, use
array format. This executes the command directly without spawning a shell wrapper
or setting a process group id. Both of which will interfere with forwarding
signals to the uWSGI process.
@amCap1712 amCap1712 merged commit 502189b into master Nov 27, 2023
1 check passed
@amCap1712 amCap1712 deleted the uWSGI-consul-template-fix branch November 27, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants