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

Remove max-requests and add die-on-term uwsgi flag in docker #1527

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

swrichards
Copy link
Contributor

@swrichards swrichards commented Dec 10, 2024

We've been seeing issues in k8s whereby the uwsgi pod would hang after 10 minutes and persist in a "Terminated" state. The theory is that the max_requests limit is reached, uwsgi tries to restart and k8s interprets this as a failing pod that needs to be replaced, but never is because k8s sends SIGTERM and uwsgi ignores this without the --die-on-term flag. This addresses both issues.


…script

We've been seeing issues in k8s whereby the uwsgi pod would hang after 10 minutes and
persist in a "Terminated" state. The theory is that the max_requests limit is reached,
uwsgi tries to restart and k8s interprets this as a failing pod that needs to be
replaced, but never is because k8s sends SIGTERM and uwsgi ignores this without the
--die-on-term flag. This addresses both issues.
@swrichards swrichards force-pushed the fix-max-requests-die-on-term-uwsgi branch from b20d753 to a7ced2c Compare December 10, 2024 16:39
@swrichards swrichards marked this pull request as ready for review December 10, 2024 16:42
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.25%. Comparing base (06541ab) to head (a7ced2c).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1527   +/-   ##
========================================
  Coverage    94.25%   94.25%           
========================================
  Files         1068     1068           
  Lines        40465    40465           
========================================
  Hits         38141    38141           
  Misses        2324     2324           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alextreme alextreme merged commit 4ddcd7f into develop Dec 10, 2024
22 checks passed
@alextreme alextreme deleted the fix-max-requests-die-on-term-uwsgi branch December 10, 2024 17:08
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.

3 participants