public inbox for [email protected]  
help / color / mirror / Atom feed
From: Sameer Kumar <[email protected]>
To: Bill Moran <[email protected]>
Cc: Thomas Harold <[email protected]>
Cc: Albe Laurenz <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: PG replication across DataCenters
Date: Mon, 30 Dec 2013 02:13:44 +0800
Message-ID: <CADp-Sm7UgfWrdjadZB=nLgQWbatTk5vX89K-KkD+E5+oKKFzhg@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAD7Ssm9S__ZQCOq2GEN0G0rrs_4U6aqXiLaX0hh0Ts8JH_LY2w@mail.gmail.com>
	<A737B7A37273E048B164557ADEF4A58B17C5ED75@ntex2010i.host.magwien.gv.at>
	<[email protected]>
	<[email protected]>
	<CADp-Sm5=PZjiUSkXBNDYC6ZEJgcXi0d4KWg+CGGJiwV1cxGpgQ@mail.gmail.com>
	<[email protected]>
	<CADp-Sm4YH6-0Qj8LeW==omZFaF4DAjB0vjF3PQk0uM_qsTb_Vw@mail.gmail.com>
	<[email protected]>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-general>

>
> What I don't see streaming working for is DR drills.  I need to, in a
> controlled manner, move the entire application to the secondary datacenter,
> while keeping all the nodes in sync, make sure everything operates properly
> from there (which means allowing database updates), then move it all back
> to the primary datacenter, without losing sync on any slaves (this is a 2T
> database, which I'm sure isn't the largest anyone has dealt with, but it
> means that reseeding slaves is a multi-hour endeavour).  With Slony, these
> drills are easy: a single slonik command relocates the master to the DR
> datacenter while keeping everything in sync, and when testing is complete,
> another slonik command puts everything back the way it was, without any
> data loss and with minimal chance for human error.


I guess I got your point :)
Agree to you now! :)
With v9.3 I think I would be easy to swap the roles for primary and DR. (I
need to test this before I can say for sure).

But still it will be a pain if one needs to shift all the operations to DR
(which is a a valid case, e.g. you would do that for testing the readiness
of your DR site by doing a mock failover) and then shift back to Primary
Site (assuming while operations were going on on DR site, primary site was
kept down purposefully). This will involve taking a backup from DR to
primary and then swapping the roles.
I guess this limitation will be soon waived off. I guess v9.4 or next one
should have this feature (no backups as long as your wal_keep_segment is
high enough to cater to your testing/mock failover window).

I agree slonik and few other utilities/tool around it
administration/management is quite easy.


If you feel that the current implementation of streaming replication is
> able to do that task, then I'll have to move up my timetable to re-evaluate
> it.  It _has_ been a few versions since I've taken a good look at it.


Given your expectation above, v9.3 is a good candidate. But you can afford
to give it a miss.
You must try once v9.4 is out.


Regards
Sameer
Ashnik Pte. Ltd.
Singapore


view thread (36+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: PG replication across DataCenters
  In-Reply-To: <CADp-Sm7UgfWrdjadZB=nLgQWbatTk5vX89K-KkD+E5+oKKFzhg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox