Skip to content

Automatically configure WEB_CONCURRENCY #267

Description

@edmorley

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions