-
-
Notifications
You must be signed in to change notification settings - Fork 669
set workers to 2 #2970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set workers to 2 #2970
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| bind = 'unix:/var/run/cabotage/nginx.sock' | ||
| backlog = 1024 | ||
| workers = 2 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If the cabotage web process is already close to its memory limit, Useful? React with 👍 / 👎. |
||
| preload_app = True | ||
| max_requests = 2048 | ||
| max_requests_jitter = 128 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description says setting workers to 2 may help memory, but in this repo Gunicorn is started via
gunicorn -c gunicorn.conf ...(see Procfile), so without an explicit value Gunicorn would default to 1 worker. Addingworkers = 2will generally increase the number of processes and can increase memory usage (and could also change throughput/latency characteristics). Consider either keeping workers at 1 for the memory experiment, or making it environment-configurable (e.g., via an env var) so you can tune per deployment without code changes.