From: | Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> |
---|---|
To: | John Mudd <johnbmudd(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Replication recovery? |
Date: | 2012-05-18 07:40:42 |
Message-ID: | CAL_0b1t=Vx07c=mid3sXxDG5-ccqv+6x4cv3HBPNXw7ULLjnfQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, May 17, 2012 at 11:10 PM, John Mudd <johnbmudd(at)gmail(dot)com> wrote:
> For example, I take it that if the master is unavailable then you
> switch to a slave. The former slave becomes the current master. When
> the original "master" is ready to run and network accessible then do
> you bring it online in slave mode and it syncs automatically with the
> current master?
No, you need to rebuild replica on the original master's machine from scratch.
> At which time you're almost back to normal. Once they
> are back in sync do people typically switch the roles back to the
> original designation of who's a slave and who's a master? It's not
> clear to me if the last step is necessary.
It is up to you. I usually switch back only when the original master's
hardware is more powerful.
> Well, that's assuming that the master comes back online with all the
> data it had when it went offline. If it comes back but all data was
> lost (a worst case scenario) then I assume I have to take the current
> master offline and use it to repopulate the recovering master from
> scratch, correct? But... if I have additional slaves then I could just
> take one of the current slaves offline, use it to rebuild the original
> master, and then bring both the slave and the reconstructed master
> (now also a slave) back online and both will sync with the current
> master.
>
> John
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
--
Sergey Konoplev
a database and software architect
http://www.linkedin.com/in/grayhemp
Jabber: gray(dot)ru(at)gmail(dot)com Skype: gray-hemp Phone: +79160686204
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2012-05-18 08:04:49 | Re: archive_command and streaming replication |
Previous Message | Albe Laurenz | 2012-05-18 07:39:05 | Re: Replication recovery? |