Worker change - reduces memory usage by 60%#109
Merged
Merged
Conversation
Bumps [requests](https://github.com/psf/requests) from 2.33.1 to 2.34.1. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.33.1...v2.34.1) --- updated-dependencies: - dependency-name: requests dependency-version: 2.34.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…uests-2.34.1 Bump requests from 2.33.1 to 2.34.1
There was a problem hiding this comment.
Pull request overview
This PR adjusts the container runtime configuration to reduce memory usage by changing Gunicorn’s concurrency model, and updates the pinned requests dependency version.
Changes:
- Switch Gunicorn from 4 worker processes to 1 worker process with 4 threads.
- Bump
requestsfrom2.33.1to2.34.1.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
start.sh |
Changes Gunicorn worker/thread settings to reduce memory footprint. |
requirements.txt |
Updates the pinned requests version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Start the Flask application | ||
| echo "Starting Gunicorn server..." | ||
| exec gunicorn --bind 0.0.0.0:8080 --workers 4 --timeout 120 app:app | ||
| exec gunicorn --bind 0.0.0.0:8080 --workers 1 --threads 4 --timeout 120 app:app |
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.
Worker change - reduces memory usage by 60%