Replication: re-initialisation of failed master - Mailing list pgsql-admin

From Rob Emery
Subject Replication: re-initialisation of failed master
Date
Msg-id CAPCETpv6pC-qg2Uo8wo7xGDB4uw1weXX-famG5NjHXV+b_y3Bw@mail.gmail.com
Whole thread Raw
Responses Re: Replication: re-initialisation of failed master  (Guillaume Lelarge <guillaume@lelarge.info>)
Re: Replication: re-initialisation of failed master  (Vladimir Borodin <root@simply.name>)
List pgsql-admin
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!

Thanks in advance
Rob




March Newsletter  - Customers want a high quality ‘clicks & bricks’ F & I experience

Last Month 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 

pgsql-admin by date:

Previous
From: Sergey Shchukin
Date:
Subject: Re: Re: [pgadmin-support] Issue with a hanging apply process on the replica db after vacuum works on primary
Next
From: Guillaume Lelarge
Date:
Subject: Re: Replication: re-initialisation of failed master