Re: Heartbeat between Primary and Standby replicas

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: fazool mein <fazoolmein(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Heartbeat between Primary and Standby replicas
Date: 2010-09-26 23:19:41
Message-ID: AANLkTinJYgTcNN7J7cX5qoLwS9aB_Z==bS-rz0werodH@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 27, 2010 at 7:46 AM, fazool mein <fazoolmein(at)gmail(dot)com> wrote:
> I checked the code for the keepalive feature. It seems that the socket
> options are only set on the primary's socket connection. The tcp connection
> created on the secondary for walreceiver does not use the keepalive
> parameters from the configuration.

You can use libpq keepalive parameters for walreceiver.

keepalives_idle
keepalives_interval
keepalives_count
http://developer.postgresql.org/pgdocs/postgres/libpq-connect.html

Those can be set in primary_connection in recovery.conf.

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 fazool mein 2010-09-26 23:27:08 Re: Heartbeat between Primary and Standby replicas
Previous Message fazool mein 2010-09-26 22:46:38 Re: Heartbeat between Primary and Standby replicas