-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More information about deployment? #552
Comments
The Gunicorn approach seems to make sense. I've made some suggested edits to the Gunicorn deployment page in the hopes of making it a bit easier to understand for newcomers to Gunicorn and web deployment in general. I'm still uncertain as to the deployment workflow if using the Supervisor / Child (with os.fork()) workflow shown in some of the aiohttp examples? I presume that these cases would be deployed directly behind nginx as a reverse proxy? |
Yes, forked model is not intended to be run behind gunicorn. |
About the fact to handle by yourself supervisor/multiworker pattern with os.fork(), I've started with that in API-Hour, finally, it was easier to subcontract that to Gunicorn. If you serve only HTTP/Websocket, at least to me, Gunicorn deployment is the simplest way for newcomers. However, launch several times your daemon on several ports and loadbalance HTTP queries with Nginx or HAproxy is also a good pattern, especially with HAproxy, because you can control precisely the loadbalancing behaviour in HAproxy. |
what about uWSGI? |
What is the reason to run aiohttp behind uWSGI? |
same as running behind gunicorn. does aiohttp support self hosted deployment behind nginx? |
|
wasn't aware!! thanks for sharing! |
Just to confirm, is it still recommend to use |
|
Thanks for the clarification. |
Fixed by 702dd0a |
As someone new to deploying websites, I'm wondering if it would be possible to provide more information about aiohttp deployment along with some recommended setups and settings, and some recommendations for when to use what type of setup given different goals. (e.g. websockets, CPU intensive apps, etc.)
What I've found so far:
The text was updated successfully, but these errors were encountered: