Heartbeat between Primary and Standby replicas - Mailing list pgsql-hackers

From fazool mein
Subject Heartbeat between Primary and Standby replicas
Date
Msg-id AANLkTimw6EDnmjUFcV90ESzq44y0P8jThvethxTgpRiq@mail.gmail.com
Whole thread Raw
Responses Re: Heartbeat between Primary and Standby replicas
List pgsql-hackers
Hello everyone,<br /><br />I am designing a heartbeat system between replicas to know when a replica goes down so that
necessarymeasures can be taken. As I see, there are two ways of doing it:<br /><br />1) Creating a separate heartbeat
processon replicas.<br /> 2) Creating a heartbeat message, and sending it over the connection that is already
establishedbetween walsender and walreceiver.<br /><br />With 2, sending heartbeat from walsender to walreceiver seems
trivial.Sending a heartbeat from walreceiver to walsender seems tricky. Going through the code, it seems that the
walreceiveris always in the PGASYNC_COPY_OUT mode (except in the beginning when handshaking is done).<br /><br />Can
yourecommend the right way of doing this?<br /><br />Thank you.<br /><br />Regards<br /><br
/>---------------------------<br/>Postgres version = 9.0 beta-4<br /> 

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [BUGS] BUG #5305: Postgres service stops when closing Windows session
Next
From: David Fetter
Date:
Subject: Re: can we publish a aset interface?