need an upper thread cap

Bug #586141 reported by Robert Collins
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loggerhead
Triaged
Low
Unassigned
loggerhead-breezy
Triaged
Low
Unassigned

Bug Description

when loggerhead gets busy, it keeps spawning new threads whenever there are lots of stuck ones. This is a problem because stuck threads still consume CPU and memory resources and exacerbate whatever problem is going on.

We should be able to say that there is a hard cap - say 20 - of threads, and that loggerhead never exceeds that. This would mean that if thread killing fails, we might stop servicing requests (but in that situation today we stop anyway). It would mean that when thread killing works, or busy threads eventually succeed, that service will be degraded not halted.

Bug 518689 has more discussion on the original report of this issue.

Revision history for this message
Max Kanat-Alexander (mkanat) wrote :

There is no current hard evidence that this would resolve (or even assist with) the problems that codebrowse experiences. Codebrowse has also been particularly stable recently.

Changed in loggerhead:
importance: High → Low
Revision history for this message
Robert Collins (lifeless) wrote :

The more workers working concurrently the less efficient python servers become, there is plenty of hard evidence backing that up. We have a fixed time budget for requests; its trivial to throw lots of work at loggerhead and make it slower and slower. We also have a front end that limits the concurrent requests, but if threads are not killed, then we can still have a thundering horde appear.

Changed in loggerhead:
status: Confirmed → Triaged
Jelmer Vernooij (jelmer)
Changed in loggerhead-breezy:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.