pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vladimir Borodin <root@simply.name>
To: Robert Emery <robertemery@codeweavers.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Replication: re-initialisation of failed master
Date: Wed, 4 Mar 2015 11:34:40 +0300
Message-ID: <CFF7C505-1C80-4712-9EB8-2BBD0320F039@simply.name> (raw)
In-Reply-To: <CAPCETptKTKz4MqRw1eE-Hiy24fgFP8q4MmpwWjMOSvx9zAeQCA@mail.gmail.com>
References: <CAPCETpv6pC-qg2Uo8wo7xGDB4uw1weXX-famG5NjHXV+b_y3Bw@mail.gmail.com>
	<C494E8DE-22DA-4345-87CA-F5838F89CDA3@simply.name>
	<CAPCETptKTKz4MqRw1eE-Hiy24fgFP8q4MmpwWjMOSvx9zAeQCA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


> 4 марта 2015 г., в 11:23, Robert Emery <robertemery@codeweavers.net> написал(а):
> 
> That looks like a really cool tool, I've not seen that before! 
> 
> Have you used that yourself in a real scenario?

Yes, I do use it for 9.3 and 9.4 in production about a couple of times a month.

> 
> On 4 March 2015 at 06:16, Vladimir Borodin <root@simply.name <mailto:root@simply.name>> wrote:
> Hi.
> 
>> 3 марта 2015 г., в 22:59, Rob Emery <re-pgsql@codeweavers.net <mailto:re-pgsql@codeweavers.net>> написал(а):
>> 
>> Hello all,
>> 
>> We run a 2 node setup replicating between a master and synchronous slave, currently when we want to failover we basically kill the master off, create a recovery file and re-point the traffic via a DNS record etc, we're looking at implementing a corosync/pacemaker setup shortly.
>> 
>> Once we're running with the old secondary as the master the only way we have to re-stage the old master is to use pg_basebackup against the new master to replace the previous master's data directory.
>> 
>> It feels that given how little has probably changed on the new master versus the old master that there should be a faster way of re-initializing the old master as a slave. Is there some sort of short-cut speedup I'm missing here? I suppose I'm mainly curious as to what techniques most admins use to accomplish this!
> 
> https://github.com/vmware/pg_rewind <https://github.com/vmware/pg_rewind; is the solution for your problem.
> 
>> 
>> Thanks in advance
>> Rob
>> 
>> 
>>  <http://www.codeweavers.net/;
>> ​
>> 
>> March Newsletter  - Customers want a high quality ‘clicks & bricks’ F & I experience <http://us6.campaign-archive2.com/?u=db934935d4174e46e9063c8c4&id=2578f201d7&e=[UNIQID]>
>> 
>> Last Month Product Highlights <https://www.codeweavers.net/company-blog/february-product-highlights;
>> 
>> Codeweavers Ltd | Barn 4 | Dunston Business Village | Dunston | ST18 9AB
>> Registered in England and Wales No. 04092394 | VAT registration no. 974 9705 63 
>> 
>>  <https://twitter.com/CodeweaversTeam;
>>  <http://www.codeweavers.net/;
>>  <mailto:contactus@codeweavers.net>
>>  <http://www.linkedin.com/company/225698?trk=tyah;
>>  <https://www.facebook.com/codeweaverssoftware;
> 
> --
> May the force be with you…
> https://simply.name <https://simply.name/;
> 
> 
> 
> -- 
> Robert Emery
> Head of Infrastructure
> 
> E: robertemery@codeweavers.net <mailto:robertemery@codeweavers.net> | T: 01785 711633 | W: www.codeweavers.net <http://www.codeweavers.net/;
> 
>  <http://www.codeweavers.net/;
> ​
> 
> March Newsletter  - Customers want a high quality ‘clicks & bricks’ F & I experience <http://us6.campaign-archive2.com/?u=db934935d4174e46e9063c8c4&id=2578f201d7&e=[UNIQID]>
> 
> Last Month Product Highlights <https://www.codeweavers.net/company-blog/february-product-highlights;
> 
> Codeweavers Ltd | Barn 4 | Dunston Business Village | Dunston | ST18 9AB
> Registered in England and Wales No. 04092394 | VAT registration no. 974 9705 63 
> 
>  <https://twitter.com/CodeweaversTeam;
>  <http://www.codeweavers.net/;
>  <mailto:contactus@codeweavers.net>
>  <http://www.linkedin.com/company/225698?trk=tyah;
>  <https://www.facebook.com/codeweaverssoftware;

--
May the force be with you…
https://simply.name

view thread (4+ messages)

Message-ID: <CFF7C505-1C80-4712-9EB8-2BBD0320F039@simply.name>
Permalink:  ../CFF7C505-1C80-4712-9EB8-2BBD0320F039@simply.name/
Also on:    postgresql.org/message-id/CFF7C505-1C80-4712-9EB8-2BBD0320F039@simply.name

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: root@simply.name, robertemery@codeweavers.net
  Subject: Re: Replication: re-initialisation of failed master
  In-Reply-To: <CFF7C505-1C80-4712-9EB8-2BBD0320F039@simply.name>
  References: <CAPCETpv6pC-qg2Uo8wo7xGDB4uw1weXX-famG5NjHXV+b_y3Bw@mail.gmail.com> <C494E8DE-22DA-4345-87CA-F5838F89CDA3@simply.name> <CAPCETptKTKz4MqRw1eE-Hiy24fgFP8q4MmpwWjMOSvx9zAeQCA@mail.gmail.com> <CFF7C505-1C80-4712-9EB8-2BBD0320F039@simply.name>

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

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