Re: streaming replication trigger file - Mailing list pgsql-general

From John R Pierce
Subject Re: streaming replication trigger file
Date
Msg-id 4DF9C287.2000907@hogranch.com
Whole thread Raw
In response to streaming replication trigger file  (AI Rumman <rummandba@gmail.com>)
Responses practical Fail-over methods (was: streaming replication trigger file)
List pgsql-general
On 06/16/11 1:31 AM, AI Rumman wrote:
> When I manually create the C:\\pg\\stopreplication\\standby.txt' file,
> then it is working. That is, B is becoming the master.
> So, my question is, how this trigger file should be created so that B
> will become master automatically as soon as A goes down?

you need cluster management software, such as Heartbeat (on linux) or
Veritas Cluster Service (on various operating systems) configured to
detect system failure, and reconfigure the slave to be the master.
This software also generally is used to manage things like the shared IP

really really REALLY important is what to do when the failed original
master is brought back up.  it can NOT be allowed to wake up thinking
its still a master since its lacking any updates since it went down,
instead it has to be reconfigured to be a new slave.

--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Encryption For Specific Column- Where to store the key
Next
From: "Albe Laurenz"
Date:
Subject: Re: Invalid byte sequence for encoding "UTF8": 0xedbebf