Re: Heartbeat between Primary and Standby replicas

From: fazool mein <fazoolmein(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Heartbeat between Primary and Standby replicas
Date: 2010-09-18 02:05:14
Message-ID: AANLkTi=uD+pOErz=vEOo1vrUR-Eg_KeVXqVPWyPgtOGW@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Apologies. I'm new to Postgres and I didn't see that feature. It satisfies
what I want to do.

Thanks.

On Thu, Sep 16, 2010 at 7:34 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:

> On Fri, Sep 17, 2010 at 6:49 AM, fazool mein <fazoolmein(at)gmail(dot)com> wrote:
> > I am designing a heartbeat system between replicas to know when a replica
> > goes down so that necessary measures can be taken. As I see, there are
> two
> > ways of doing it:
> >
> > 1) Creating a separate heartbeat process on replicas.
> > 2) Creating a heartbeat message, and sending it over the connection that
> is
> > already established between walsender and walreceiver.
> >
> > 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 walreceiver is always in the
> > PGASYNC_COPY_OUT mode (except in the beginning when handshaking is done).
> >
> > Can you recommend the right way of doing this?
>
> The existing keepalive feature doesn't help?
>
> Regards,
>
> --
> Fujii Masao
> NIPPON TELEGRAPH AND TELEPHONE CORPORATION
> NTT Open Source Software Center
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2010-09-18 02:17:29 Re: BUG #5661: The character encoding in logfile is confusing.
Previous Message Bruce Momjian 2010-09-18 01:34:35 Re: VACUUM produces odd freespace values