pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
issue with 9.0 1 slave becomes master with new timeline
2+ messages / 2 participants
[nested] [flat]

* issue with 9.0 1 slave becomes master with new timeline
@ 2010-11-11 11:26 Dragos Valentin Moinescu <dragos.moinescu@gmail.com>
  2010-11-11 15:08 ` Re: issue with 9.0 1 slave becomes master with new timeline Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 1 reply; 2+ messages in thread

From: Dragos Valentin Moinescu @ 2010-11-11 11:26 UTC (permalink / raw)
  To: pgsql-admin

Hello,

I have an issue with the following architecture:
1. master
3. slaves with streaming replication (used for backup and read-only queries)

When the master goes offline, 1 of the slaves must become master. Thus
I am creating trigger_file and the slave becomes the master.

The problem is that the other 2 slaves are using timeline 1, when the
new master is in a different universe.

How can I easile migrate the 2 slaves on the new master without
creating a new base backup (which unfortunately takes too long as the
databases contain arround 200GB)?

Shoud I use pg_resetxlog? If yes, what is the command?

The problem is that the slaves are used for reading and I really need
to have them synced with the new master in matter of seconds not
minutes (the slaves are distributed globally - 2 in us, 1 in europe, 1
in asia).

Thank you.

PS:
you postgresql guys did a magnificent job with 9.0 (streaming and
performance). you guys rock.


-- 
Best regards,
Dragos Moinescu



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: issue with 9.0 1 slave becomes master with new timeline
  2010-11-11 11:26 issue with 9.0 1 slave becomes master with new timeline Dragos Valentin Moinescu <dragos.moinescu@gmail.com>
@ 2010-11-11 15:08 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
  0 siblings, 0 replies; 2+ messages in thread

From: Kevin Grittner @ 2010-11-11 15:08 UTC (permalink / raw)
  To: Dragos Valentin Moinescu <dragos.moinescu@gmail.com>; pgsql-admin

Dragos Valentin Moinescu <dragos.moinescu@gmail.com> wrote:
 
> How can I easile migrate the 2 slaves on the new master without
> creating a new base backup (which unfortunately takes too long as
> the databases contain arround 200GB)?
 
Have you tested rsync using a daemon from the new master (after
pg_start_backup) to the copy the slave already has?  It should send
the delta pretty quickly -- perhaps quickly enough to meet your
needs.  It's worth testing, anyway.
 
I believe this is an area people are trying to improve for 9.1.
 
-Kevin



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-11-11 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-11 11:26 issue with 9.0 1 slave becomes master with new timeline Dragos Valentin Moinescu <dragos.moinescu@gmail.com>
2010-11-11 15:08 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>

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