Re: pg 9.0, streaming replication, fail over and fail back strategies

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: "Kyle R(dot) Burton" <kyle(dot)burton(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg 9.0, streaming replication, fail over and fail back strategies
Date: 2010-08-10 01:41:13
Message-ID: AANLkTimQU2nugb9d7obTF7sZ-04VUwOnSBviHSD3=pGx@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 10, 2010 at 7:10 AM, Kyle R. Burton <kyle(dot)burton(at)gmail(dot)com> wrote:
> Is there any way to get PostgreSQL to bind to a new ip address and
> interface without actually shutting it down?  If it could, would I
> need to break all the current (read only) client connections to get
> them to reconnect and have the ability to write?  (am I confused about
> this?)

What about setting listen_addresses to '*'? If so, you would be able to
connect to new master as soon as VIP has been moved to it.

> Now that the master+slave configuration is up and running again, I'm
> looking for advice on how to monitor for faults: I can fail over
> manually, which is fine for now.  What aspects of the postgres system
> should be monitored to watch for faults and what are the kinds of
> faults that should lead to a fail over?  The machine crashing (OS/HW)
> is an obvious one, which will be recognized by corosync and I can
> script the initiation of failover (including using ipmi to power down
> the master).

Probably the crash of the postgres and corosync process, the trouble
of VIP, and network outage between the master and the client should be
monitored, I think. Since any of them prevents the master from running
queries from the client, we should cause a failover.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2010-08-10 02:41:50 Re: Win Server 2003: postgres can't logon
Previous Message Jeff Davis 2010-08-10 01:33:30 Re: pg 9.0, streaming replication, fail over and fail back strategies