Skip to content

Chore: Fix worker OOM sigkill and add timeout of 30s instead of default 5s#149

Open
mittal-ishaan wants to merge 1 commit into
mainfrom
ishaan/worker-sigkill
Open

Chore: Fix worker OOM sigkill and add timeout of 30s instead of default 5s#149
mittal-ishaan wants to merge 1 commit into
mainfrom
ishaan/worker-sigkill

Conversation

@mittal-ishaan

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 gthread and 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.

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.

2 participants