Closed Bug 582709 Opened 15 years ago Closed 15 years ago

Why do we run max-requests=200 for wsgi procs?

Categories

(mozilla.org Graveyard :: Server Operations, task)

All
Other
task
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jbalogh, Assigned: oremj)

Details

WSGIDaemonProcess zamboni_prod processes=16 threads=1 maximum-requests=200 display-name=amo I think I've asked about this before but I forgot the answer. Bugs never forget!
Weren't you the one telling me we do this so leaking memory gets recollected?
What's the default? If it's relatively high it might explain why product-details don't expire quickly for Input.
Because mod_wsgi/python leaks and I've seen these processes get to ~750M each. The default is to never expire. Would you like to set it higher/lower?
(In reply to comment #3) > Because mod_wsgi/python leaks and I've seen these processes get to ~750M each. > The default is to never expire. Would you like to set it higher/lower? I'll try figuring out what's leaking someday. I'd like to move it higher since it's expensive to restart the wsgi process.
Assignee: server-ops → jeremy.orem+bugs
I'm starting to see issues with the generic cluster as well, because of these leaks. Boxes that are doing fine are suddenly in swap hell and have to sometimes be rebooted or in better cases, have their apache kicked before they can recover.
(In reply to comment #3) > Because mod_wsgi/python leaks and I've seen these processes get to ~750M each. > The default is to never expire. Would you like to set it higher/lower? Is there a way to set this as a default? I think it makes sense to respawn our WSGI processes in general. Since an app must not rely on its process living forever, I think having a default maximum-requests value for all our Python apps of, say, 500, sounds like a good idea to me. Objections?
Skimming through the docs it looks like this is only available in the WSGIDaemonProcess directive, so it's probably not possible to set a global default.
Looks like input currently has: WSGIDaemonProcess input processes=8 threads=1 maximum-requests=200 display-name=input Closing this bug. Let me know if there is something else to do.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.