I can't seem to find the answer in gunicorn documentations. When you run a flask app using gunicorn without specifying the number of workers and threads, what is the default values for them?
Command:
gunicorn -b :$PORT main:app
According to the Gunicorn documentation for the number of workers:
By default, the value of the
WEB_CONCURRENCY
environment variable. If it is not defined, the default is1
.
2
. Seems this is how they do it; exporting this env var results in a change to the default as shown within gunicorn --help
.