Librarian allows an unbounded number of database connections

Bug #840046 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

It seems the Librarian holds open one database connection per concurrent request. There are no limits to the number of concurrent requests being processed, and no limits to the number of concurrent database connections held open.

We should ensure that things are limited to avoid odd errors when database limits are hit (number of concurrent connections etc.). Squid could be useful for this, or adding proper thread or database connection pools into the Librarian.

Stuart Bishop (stub)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Stuart Bishop (stub) wrote :

This bug is referenced by get_error_code() in lib/canonical/librarian/tests/test_db_outage.py. This needs to be updated as part of fixing this bug.

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.