Chore: Fix worker OOM sigkill and add timeout of 30s instead of default 5s#149
Open
mittal-ishaan wants to merge 1 commit into
Open
Chore: Fix worker OOM sigkill and add timeout of 30s instead of default 5s#149mittal-ishaan wants to merge 1 commit into
mittal-ishaan wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts runtime configuration to reduce Gunicorn worker memory pressure (mitigating OOM SIGKILLs under load) and makes SQLite wait longer on locks to reduce “database is locked” errors during concurrent writes.
Changes:
- Configure SQLite connection options to use a 30s lock timeout (and set transaction mode to IMMEDIATE).
- Switch Gunicorn to
gthreadand make worker/thread/timeout settings environment-tunable, adding max-requests recycling to bound memory growth. - Add build dependencies to support crypto-related Python packages and introduce a new Python dependency.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| requirements.txt | Adds a new auth/crypto dependency (PyJWT w/ crypto extras). |
| messWebsite/settings.py | Updates SQLite DB connection options (timeout/transaction mode). |
| entrypoint.sh | Reworks Gunicorn runtime flags to reduce memory usage and enable env tuning. |
| Dockerfile | Adds openssl-dev to support building crypto-related wheels. |
| docker-compose.yml | Sets Gunicorn worker/thread/timeout environment variables for the web service. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.