-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[staged-updates] Replaced UWSGI with Gunicorn.
After an unreasonable amount of effort with a bug in uwsgi that would cause random 500, 502, 503, and 504 errors I have decided to replace it with Gunicorn, despite my own preference for uwsgi. This situation was deeply debugged and no combination of working settings was found. There are open bugs in UWSGI about similar errors going back for years, and while some people have found solutions virtually nothing I changed had an effect. THE ONLY effect I could force was the statistical prevelance of which 500 code it tended towards by setting up Apache and uwsgi to use the uwsgi protocol instead of http, which dropped 502s in favor of 503s. After switching to (and this time correctly configuring without a critical misread of some documentation) Gunicorn, this time it works and does not unceremoniously kill processes. 500 class errors dropped to zero from hundreds per hour on our production server.
- Loading branch information
1 parent
811d5d6
commit 619255f
Showing
9 changed files
with
104 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: uwsgi --yaml uwsgi-config.yml | ||
web: gunicorn --config=gunicorn_conf.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.