Answer the question
In order to leave comments, you need to log in
How to run many applications at once under Gunicorn vs. uwsgi?
There was a task to launch several applications running Gunicorn
. I used to use it for this uwsgi
and there, launching applications looked pretty intuitive. The directory /etc/uwsgi/apps-enabled
contained files with settings for each project and after changes or, if necessary, reloaded uwsgi
: service uwsgi restart
And that's it. And gunicorn
in the documentation for aiohttp it is written that it is necessary to execute the command from the folder with the application:
gunicorn app:app -k aiohttp.worker.GunicornWebWorker -b localhost:80
screen
-e, but you just want to do: service gunicorn restart
/etc/gunicorn.d
?
Answer the question
In order to leave comments, you need to log in
Consider using supervisord or another supervisor to manage your Gunicorn instances.
Supervisord, however, is not well suited for managing non-foreground processes, so I personally prefer eye ( https://github.com/kostya/eye) , it also has a more understandable state machine for managed processes than supervisord.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question