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 #503

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.

Copy link

github-actions bot commented Nov 27, 2023

Test Results

201 tests  ±0   201 ✔️ ±0   7m 44s ⏱️ ±0s
    1 suites ±0       0 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit 798920b. ± Comparison against base commit 71d724c.

♻️ This comment has been updated with latest results.

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 force-pushed the uWSGI-conul-template-fix branch from e5b1f76 to 798920b Compare November 27, 2023 13:28
@amCap1712 amCap1712 merged commit 6f0a362 into master Nov 27, 2023
3 checks passed
@amCap1712 amCap1712 deleted the uWSGI-conul-template-fix branch November 27, 2023 14:16
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.

1 participant