pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benjamin Krajmalnik <kraj@servoyant.com>
To: pgsql-admin@postgresql.org
Subject: Failover question
Date: Mon, 22 Apr 2013 12:06:52 -0600
Message-ID: <F4E6A2751A2823418A21D4A160B6898892BC78@fletch.stackdump.local> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

I currently have 2 servers running PostgreSQL 9.0 under FreeBSD
configured with streaming replication.

DB1 is the primary server, and DB2 is the replicated server, which is
used for all of the read only queries.

I am having some hardware issues on DB1 which is affecting its
performance, resulting in data getting queued up.

I would like to change roles on these servers, such that DB1 becomes the
replicated server and DB2 the master server.

This is a production system, so I cannot take any chances of anything
going wrong.

What is the correct procedure for accomplishing this?

If needed, although not preferred, I can take the system offline for a
maintenance window.

 

Thank you in advance,

 

Benjamin

 

 

 

view thread (2+ messages)  latest in thread

Message-ID: <F4E6A2751A2823418A21D4A160B6898892BC78@fletch.stackdump.local>
Permalink:  ../F4E6A2751A2823418A21D4A160B6898892BC78@fletch.stackdump.local/
Also on:    postgresql.org/message-id/F4E6A2751A2823418A21D4A160B6898892BC78@fletch.stackdump.local

 · 

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: kraj@servoyant.com
  Subject: Re: Failover question
  In-Reply-To: <F4E6A2751A2823418A21D4A160B6898892BC78@fletch.stackdump.local>
  References: <F4E6A2751A2823418A21D4A160B6898892BC78@fletch.stackdump.local>

* 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