Migrate to Uvicorn or Gunicorn #1283
yatesdr
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
|
Hi, I've been using both uwsgi and gunicorn on multiple projects and have no preference. Moving to gunicorn would be ok, but as long as we've identified that this has actually been a bottleneck (which is the case as you describe). Feel free to open a PR and we can discuss there! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been using MediaCMS as a back-end for hosting educational content in Canvas LMS, and as the user base has ramped up, uwsgi was causing a bunch of issues with scaling for me. It was okay (but a bit laggy) until the simultaneous user count moved north of about 30. Adjusting processes, threads, and workers did help some with uwsgi and kept it rolling, but moving the install to Uvicorn or Gunicorn has been far more stable for me recently, eliminating the WSGI bottlenecks. There are still of course bandwidth limitations, but the site's not falling apart under load now at least. My production instance is currently running on Gunicorn and tested to 100 simultaneous users with acceptable site responsiveness.
The symptoms I was getting with uwsgi were primarily intermittent 'bad gateway' and slow loading times during peak usage, while the machine was basically idling (8 cores, 8g, 10gbe), and I believe were partially related to the default 2-process setting in uWSGI with no threads.
I'm expecting to have > 100 simultaneous users in the near future, and have been testing both Uvicorn and Gunicorn[gevent] for scaling to that level on the current server, and my opinion is that they both work well and are better suited for this particular application than uwsgi is at this point, and there's no real down-side for smaller installations or private hosts.
Are you open to this? If so I can prepare and submit a patch for nginx and service files, but if you have some other reason for still using uwsgi would like to discuss.
Beta Was this translation helpful? Give feedback.
All reactions