← Back to team overview

launchpad-dev team mailing list archive

Re: Connections left open after switching to read only mode

 

On Tue, 2010-05-11 at 13:36 +0700, Jeroen Vermeulen wrote:
> On 05/08/2010 07:34 PM, Stuart Bishop wrote:
> 
> > Hmm... yeah. All the DatabasePolicies would need to know about RO
> > mode, which sucks. Instead, we could just do this in the
> > IStoreSelector - if read-only mode is detected, ignore any installed
> > DatabasePolicy and return the read-only Stores.
> 
> Would it make sense (and help) to keep existing read-write connections 
> alive, but make them begin only read-only transactions when read-only 
> mode is detected?

No. The goal here is to close these read-write connections so that the
roll out can proceed -- the LOSAs don't proceed with a roll out if
there's any open connections to any DB other than the standalone
(read-only) replica.

-- 
Guilherme Salgado <https://launchpad.net/~salgado>

Attachment: signature.asc
Description: This is a digitally signed message part


References