Re: Heartbeat + pacemaker configuration for PostgreSQL log shipping - Mailing list pgsql-admin

From Jody McIntyre
Subject Re: Heartbeat + pacemaker configuration for PostgreSQL log shipping
Date
Msg-id AANLkTi=zo4ZnP3G0gz8y998GOG7Gq0pmO9d=cjT-Jbpw@mail.gmail.com
Whole thread Raw
In response to Re: Heartbeat + pacemaker configuration for PostgreSQL log shipping  (Fujii Masao <masao.fujii@gmail.com>)
Responses Re: Heartbeat + pacemaker configuration for PostgreSQL log shipping  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
List pgsql-admin
On Mon, Feb 21, 2011 at 10:00 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
The resource agents for MySQL and DRBD have been implemented as
master/slave ones. So I think that the resource agent for PostgreSQL also
should be done the same way, i.e., you should implement only "start" and
"stop" but also "promote" and "demote".

The trouble with postgres is there's no easy way to "demote" a master machine to a slave.  You need to create a new master, back up its database, and restore it onto the slave before starting it.  This seems difficult to implement, and pacemaker is already very complicated as it is.

We are seriously considering writing our own tool that simply tests the master from the slave, and runs a very simple shell script to take over if necessary.

Cheers,
Jody

pgsql-admin by date:

Previous
From: Bernhard Rohrer
Date:
Subject: PG_update to 9.0.4 in ubuntu lucid 64
Next
From: Bernhard Schrader
Date:
Subject: Re: PG_update to 9.0.4 in ubuntu lucid 64