heroku / heroku/buildpacks-python

Automatically configure `WEB_CONCURRENCY`

Open
#267 0 comments 0 reactions 0 assignees View on GitHub
classic buildpack parity semver: major
Dominant language
Rust
Stars
33
Forks
3
Avg merge
12h 51m
Merged PRs (30d)
9

Description

The classic Python buildpack automatically configures the `WEB_CONCURRENCY` env var based on available total CPU and RAM:
https://github.com/heroku/heroku-buildpack-python/blob/main/vendor/WEB_CONCURRENCY.sh
https://devcenter.heroku.com/articles/python-concurrency

The env var is then used by web servers like gunicorn and uvicorn to automatically set the number of worker processes to spawn.

We should add something similar to the CNB.

GUS-W-9538302.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.