Database load balancing should use slave lag, not cluster lag

Bug #345835 reported by Stuart Bishop
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Stuart Bishop

Bug Description

Currently, Launchpad stops using the slave database when the cluster's lag is too great (as per the replication_lag() stored procedure). This means that we switch to master-only mode when performing some operations, such as adding a new slave replica.

It should be possible to determine just the lag between the master and the connected to slave, and use this for load balancing instead of the lag on the entire cluster.

Related branches

Stuart Bishop (stub)
Changed in launchpad-foundations:
importance: Undecided → Medium
status: New → Triaged
Stuart Bishop (stub)
Changed in launchpad-foundations:
status: Triaged → In Progress
assignee: nobody → Stuart Bishop (stub)
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit

Fixed in db r8400.

Changed in launchpad-foundations:
status: In Progress → Fix Committed
Stuart Bishop (stub)
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.