From: Virendra Kumar <viru_7683@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pgsql-general General <pgsql-general@postgresql.org>
Subject: Re: Back Port Request for INVALID Startup Packet
Date: Thu, 12 Mar 2020 01:16:10 +0000 (UTC)
Message-ID: <446079039.553015.1583975770868@mail.yahoo.com> (raw)
In-Reply-To: <10013.1583972967@sss.pgh.pa.us>
References: <1580001356.490624.1583970710532.ref@mail.yahoo.com>
<1580001356.490624.1583970710532@mail.yahoo.com>
<10013.1583972967@sss.pgh.pa.us>
Hi Tom,
Thank you for your reply!
This is simple patch, would that impact badly if patched to prior versions or some other constraints forced to not do that. I am just trying to understand this a bit.
On AWS RDS we have primary and secondary hosts known in advance in most cases. So if a primary instance fails over it will be other host and hence we have to update the active nodes in targets using lamda function. AWS RDS fails over very quickly under 3 seconds mostly and hence we have set that health checks to 3seconds. I'll go back to AWS folks and see if they can do this in prior releases.
Regards,
Virendra Kumar
On Wednesday, March 11, 2020, 5:29:38 PM PDT, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Virendra Kumar <viru_7683@yahoo.com> writes:
> Can you please back port patch where if a 0 byte packet sent to PG instance (Health Checks), it starts complaining about invalid startup packet and flood the log which increases log size considerably if the health checks are every 3 seconds or something like that.
> Patch Requested - https://git.postgresql.org/gitweb/?p=postgresql.git;a=patch;h=342cb650e
We generally don't like to change behavior of back branches without
ironclad agreement that the existing behavior is a bug ... which this
surely isn't. Also, the discussion leading up to that patch specifically
considered and rejected back-patching; so I'm disinclined to overrule
that decision now.
I would suggest that an every-three-second health check is not
appropriate, especially one that is so minimal that it only
detects whether the postmaster is alive.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: viru_7683@yahoo.com, tgl@sss.pgh.pa.us
Subject: Re: Back Port Request for INVALID Startup Packet
In-Reply-To: <446079039.553015.1583975770868@mail.yahoo.com>
References: <1580001356.490624.1583970710532.ref@mail.yahoo.com> <1580001356.490624.1583970710532@mail.yahoo.com> <10013.1583972967@sss.pgh.pa.us> <446079039.553015.1583975770868@mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox