From: | Jaime Casanova <jaime(at)2ndquadrant(dot)com> |
---|---|
To: | David Pirotte <dpirotte(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Promoting sync slave to master without incrementing timeline counter? |
Date: | 2012-06-22 01:08:11 |
Message-ID: | CAJKUy5hPK7HSp6E6UjW7StZA=71m4YdTjqQ-VfCiuLix4YqwRA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Jun 21, 2012 at 10:10 AM, David Pirotte <dpirotte(at)gmail(dot)com> wrote:
>
> 2ndQuadrant's repmgr uses the second option so that the async slave can
> "follow" the new master, saving you from having to do a new base backup.
> Additionally, the old master is able to start streaming replication from the
> new master without a new base backup. (Repmgr does not actually support the
> latter behavior out of the box, but it seemed to work.)
>
is not safe to make old master to start SR from new master without any
additional action.
if the old master crashed/disconnected before some info was sent to
the slave, then the old master has info not in the slave so when it
converts in new master that piece of info is lost... if now the old
master tries to connect to the new master he will except that info to
exists...
> So, given a hard failure (i.e. power loss) of the master, `pg_ctl promote`
> provides availability more quickly, but `pg_ctl restart` provides data
> redundancy more quickly. Is this an accurate assessment of the tradeoffs
> between the two approaches?
yes, i think that's pretty much the difference
> Are there risks associated with the `pg_ctl
> restart` approach, or is it safe to use?
>
it's safe as long as you let repmgr do it ;)
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2012-06-22 06:27:09 | Re: Promoting sync slave to master without incrementing timeline counter? |
Previous Message | Kris Deugau | 2012-06-21 18:20:36 | Re: Conditional cast for eg sorting? |