Skip to content

PT-1937: uWGSI improvements#418

Merged
mhieta merged 2 commits into
mainfrom
PT-1937-uwsgi-improvements
Jun 30, 2025
Merged

PT-1937: uWGSI improvements#418
mhieta merged 2 commits into
mainfrom
PT-1937-uwsgi-improvements

Conversation

@mhieta

@mhieta mhieta commented Jun 26, 2025

Copy link
Copy Markdown
Contributor

Improve uWSGI options:

  • Restart a worker after 1000 requests (max-requests)
  • Restart a worker every hour (max-worker-lifetime)
  • Restart a worker after 300MB resident memory usage (reload-on-rss)
  • Restart a worker by force after 60 seconds (worker-reload-mercy)
  • Use strict mode to catch unknown uWSGI options (strict)
  • Require an application module to start (need-app)
  • Avoid multiple interpreters (single-interpreter)
  • Only use processes for concurrency, so only run one thread per
    process
  • Suppress errors about clients closing sockets
  • Add Harakiri options
  • Add Sentry-setup
  • Add uwsgitop and settings

Refs: PT-1937

@mhieta mhieta requested a review from a team as a code owner June 26, 2025 11:20
Comment thread requirements-prod.in Outdated
@mhieta mhieta force-pushed the PT-1937-uwsgi-improvements branch from f052475 to 1e61dff Compare June 26, 2025 12:09
Refs: PT-1937
@mhieta mhieta force-pushed the PT-1937-uwsgi-improvements branch 2 times, most recently from 9f1c4c2 to 85aee1c Compare June 30, 2025 11:06
- Restart a worker after 1000 requests (max-requests)
- Restart a worker every hour (max-worker-lifetime)
- Restart a worker after 300MB resident memory usage (reload-on-rss)
- Restart a worker by force after 60 seconds (worker-reload-mercy)
- Use strict mode to catch unknown uWSGI options (strict)
- Require an application module to start (need-app)
- Avoid multiple interpreters (single-interpreter)
- Only use processes for concurrency, so only run one thread per
  process
- Suppress errors about clients closing sockets
- Add Harakiri options
- Add Sentry-setup
- Add uwsgitop settings

Refs: PT-1937
@mhieta mhieta force-pushed the PT-1937-uwsgi-improvements branch from 85aee1c to 717e9ae Compare June 30, 2025 12:18
@sonarqubecloud

Copy link
Copy Markdown

@terovirtanen

Copy link
Copy Markdown
Contributor

KULTUS-API branch is deployed to platta: https://kultus-pr418.api.dev.hel.ninja 🚀🚀🚀

@mhieta mhieta merged commit c3e849e into main Jun 30, 2025
22 checks passed
@mhieta mhieta deleted the PT-1937-uwsgi-improvements branch June 30, 2025 12:33
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