M
M
Muriam2021-11-29 17:09:42
Software Deployment
Muriam, 2021-11-29 17:09:42

What are workers in gunicorn?

$ gunicorn -w 4 --bind 0.0.0.0:8000 wsgi:app

And how many workers should I specify when configuring the application? Why is there 4 in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-11-29
@Muriam

The processes in which the application runs. Their number depends on the number of processor cores, available memory, resource requirements of the application, the nature and speed of its work, as well as the predicted load.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question