D.R. Site Failover (Streaming Replication) - user access / network options

From: CS DBA <cs_dba(at)consistentstate(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: D.R. Site Failover (Streaming Replication) - user access / network options
Date: 2016-03-08 16:48:46
Message-ID: 56DF026E.6010401@consistentstate.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi All;

We are assisting a client with an Oracle to PostgreSQL conversion. They
did not have any replication with Oracle due to the version they ran,
however moving to PostgreSQL they want to setup a local HOT Standby and
a remote / DR Site standby. Setting up the Standby's is easy enough,
we've setup standby's multiple times and automated failover lots of
times as well. We have in the past leveraged a number of approaches to
keep a failover seamless to the app. In most DR / remote site cases
we've recommended that the full stack be replicated so if we completely
loose a site (or cloud region) then we switch to the secondary site,
promote the secondary / DR site standby to a master and we're back in
business.

I do however have a few questions related to this, I'm interested to
find out what others have done here, in particular how do you go about
moving end users (assuming a web app is the end user entry point) to
point seamlessly to the secondary site? Also how have you all dealt
with the possible split brain issue (i.e. we fail over, then the primary
site comes back up and existing/old connections to the old site then
write to the old master)

Thanks in advance for your feedback....

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Fernando Hevia 2016-03-08 18:00:41 Re: D.R. Site Failover (Streaming Replication) - user access / network options
Previous Message HEMPLEMAN Matthew 2016-03-08 00:03:36 Pgpool failing to connect to standby postgres server