Codeimportworker using too many DB connections.

Bug #239569 reported by Herb McNew
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Michael Hudson-Doyle

Bug Description

It has been noticed on a couple of occassions since we rolled out the new code import system that the codeimportworker has anywhere from 30-50 DB connections open at any given time. Using today as an example there hasn't been less that 30 connections open and has ranged as high as 56. Attached you'll find a debug log with some additional information.

Related branches

Revision history for this message
Herb McNew (herb) wrote :
Revision history for this message
Diogo Matsubara (matsubara) wrote :

Do we have a limit to the number of open connections? What problem is this causing?

Changed in launchpad:
status: New → Incomplete
Revision history for this message
Herb McNew (herb) wrote :

We had a hard limit of 180 that was recently increased to 250 for 2 addtional app servers that are about to come online. At 50+ open connections the code import system is obviously using 20% of our available connections. Further it's using 3x-5x the number of connections that any of the other software uses. As an example the app servers use 8 connections and the authserver uses 15 connections.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This should apparently drop to 20 connections with Storm. I chatted to Stuart about it and he didn't seem to think it was a super high priority problem.

Revision history for this message
Tim Penhey (thumper) wrote :

We'll look to make the import slaves to talk to the database through the web service.

Changed in launchpad-bazaar:
assignee: nobody → mwhudson
importance: Undecided → Medium
status: Incomplete → Confirmed
Changed in launchpad-code:
status: Triaged → In Progress
visibility: private → public
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in launchpad-code:
milestone: none → 10.03
status: In Progress → Fix Committed
tags: added: qa-needstesting
tags: added: qa-ok
removed: qa-needstesting
Tim Penhey (thumper)
Changed in launchpad-code:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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