Session database can bottleneck

Bug #490239 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Stuart Bishop

Bug Description

Even if just reading an old (>9 mins) session, its _sweep method is invoked to clean out old data.

Under conditions of high load this can lead to a backlog of requests attempting to clean out all the old session data.

We should decrease the precision in pgsession.py to several hours and increase the fuzz to a couple of hours.

Related branches

Stuart Bishop (stub)
Changed in launchpad-foundations:
assignee: nobody → Stuart Bishop (stub)
importance: Undecided → High
milestone: none → 3.1.11
status: New → Triaged
Revision history for this message
Stuart Bishop (stub) wrote :

Better yet, we should stop sweeping altogether and prune the session data with external scripts.

I've updated the production session pruner to handle this better (session-prune.py), so we can now remove the _sweep code from pgsession.py. Bug #357516 involves moving this garbo-daily.py so it will be in the Launchpad tree.

Stuart Bishop (stub)
tags: added: current-rollout-blocker
Changed in launchpad-foundations:
status: Triaged → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Changed in launchpad-foundations:
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

Remote bug watches

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