Skip to content

feat: replace gunicorn with granian#3510

Merged
nijel merged 1 commit intoWeblateOrg:mainfrom
nijel:granian
Aug 6, 2025
Merged

feat: replace gunicorn with granian#3510
nijel merged 1 commit intoWeblateOrg:mainfrom
nijel:granian

Conversation

@nijel
Copy link
Member

@nijel nijel commented Aug 4, 2025

  • Doesn't fail requests when the worker needs to be restarted in
    multi-threaded environment (issue 502 Bad Gateway with gunicorn threads #3507).
  • Supports limiting RSS usage reducing number of restarts.
  • The WSGI core should perform way better (I don't expect visible impact
    on Weblate here, but still it heavily reduces the overhead).

Fixes #3507

Built on top of #3509 to verify the test is effective.

@nijel nijel self-assigned this Aug 4, 2025
@nijel nijel force-pushed the granian branch 6 times, most recently from fb1141b to fd6c6d7 Compare August 4, 2025 15:04
@nijel nijel mentioned this pull request Aug 4, 2025
2 tasks
@nijel nijel enabled auto-merge (squash) August 6, 2025 07:06
@nijel nijel disabled auto-merge August 6, 2025 07:06
@nijel nijel enabled auto-merge (squash) August 6, 2025 07:07
- Doesn't fail requests when the worker needs to be restarted in
  multi-threaded environment (issue WeblateOrg#3507).
- Supports limiting RSS usage reducing number of restarts.
- The WSGI core should perform way better (I don't expect visible impact
  on Weblate here, but still it heavily reduces the overhead).

Fixes WeblateOrg#3507
@nijel nijel disabled auto-merge August 6, 2025 07:34
@nijel nijel enabled auto-merge (rebase) August 6, 2025 07:34
nijel added a commit to nijel/weblate that referenced this pull request Aug 6, 2025
This is what our Docker container will use, see
WeblateOrg/docker#3510
nijel added a commit to nijel/weblate that referenced this pull request Aug 6, 2025
This is what our Docker container will use, see
WeblateOrg/docker#3510
@nijel nijel merged commit fd7bf4d into WeblateOrg:main Aug 6, 2025
44 checks passed
@nijel nijel deleted the granian branch August 6, 2025 07:53
nijel added a commit to nijel/weblate that referenced this pull request Aug 6, 2025
This is what our Docker container will use, see
WeblateOrg/docker#3510
nijel added a commit to WeblateOrg/weblate that referenced this pull request Aug 6, 2025
* feat: recommend granian for wsgi

This is what our Docker container will use, see
WeblateOrg/docker#3510

* chore(deps): update lockfile

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
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.

502 Bad Gateway with gunicorn threads

1 participant