Merge ~cjwatson/launchpad:loggerhead-max-requests into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | c7c20d930faad7f3930b3582c9b3aef286f86333 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:loggerhead-max-requests |
Merge into: | launchpad:master |
Diff against target: |
23 lines (+5/-0) 1 file modified
lib/launchpad_loggerhead/wsgi.py (+5/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+454760@code.launchpad.net |
Commit message
loggerhead: Set Gunicorn max_requests to 2000
Description of the change
We've found with Launchpad itself that the application server leaks memory over time. This is surely a bug somewhere, but it's proven extremely difficult to track down, and a cheap and very effective workaround has been to set `max_requests` in Gunicorn. (See the "Memory leaks" section of https:/
Judging by memory graphs, Loggerhead is behaving in very much the same way, so install the same workaround there.
To post a comment you must log in.