Dejan Muhamedagic wrote:
> Hi,
> 
> On Sun, Nov 15, 2009 at 09:09:53PM +0100, Tomasz Chmielewski wrote:
>> I have two nodes, node_1 and node_2.
>>
>> node_2 was down, but is now up.
>>
>>
>> How can I execute a custom script on node_1 when it detects that node_2 
>> is back?
> 
> That's not possible. What would you want to with that script?

I have two PostgreSQL servers running; pgpool-ii is started by Heartbeat 
to distribute the load (reads) among two servers and to send writes to 
both servers.

When one PostgreSQL server fails, the setup will still work fine. When 
the failed PostgreSQL instance is back, the data should be first 
"synchronized" from the running PostgreSQL server to a server which was 
failed a while ago.

It is best if such a script could be started by Heartbeat running on the 
active node, as soon as it detects that the other node is back.


-- 
Tomasz Chmielewski
http://wpkg.org
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to