Librarian allows an unbounded number of database connections
Bug #840046 reported by
Stuart Bishop
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.
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → High |
To post a comment you must log in.
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.