Failover question

From: "Benjamin Krajmalnik" <kraj(at)servoyant(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Failover question
Date: 2013-04-22 18:06:52
Message-ID: F4E6A2751A2823418A21D4A160B6898892BC78@fletch.stackdump.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Walter Hurry 2013-04-22 18:11:47 Re: Failover question
Previous Message Bill MacArthur 2013-04-22 16:04:23 Is there any value in using trigger conditions rather than function conditions