Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jCCSU-000380-N5 for pgsql-general@arkaria.postgresql.org; Thu, 12 Mar 2020 01:16:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCCST-0001Tj-Hw for pgsql-general@arkaria.postgresql.org; Thu, 12 Mar 2020 01:16:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCCSS-0001S5-RV for pgsql-general@lists.postgresql.org; Thu, 12 Mar 2020 01:16:21 +0000 Received: from sonic316-21.consmr.mail.ne1.yahoo.com ([66.163.187.147]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCCSP-0008PN-Lt for pgsql-general@postgresql.org; Thu, 12 Mar 2020 01:16:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1583975775; bh=YhhA/9mg0QP14LZts6dEQ2QRBpUTboAoteQ92i3TPcY=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=LsqPl0E66d7lVF90koMkal9AfpqzAvrbxT9MTPRJWRjHHWtDSZmJzhvlKZgoAUEsq6851rGmeTU1kKEpFcsfiTvfkh10cukDncj8Gn/1Z2Y61/3eBFj69Kj+kIa3gaRJQR+TFA4uiqDCnzLR5/fSkSppJ0JyEAbSm2cyQ2x+hiQj9eReonWL7ku1xgkcfqk2ahuWO8lHQyv0A1vptZFmT+/dx1SiaxQsPhA2THB+WD4gUYzrZvLmf5YrHWK1gvy20B8mcVZC5IAsYbtTmNxR+nUnugJd5kwhxKs25yflVBSeYDiw3H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. eOrQJlZda.7S0EFg4GdWXCGhV71FCnYWZye8T51ycSLduGkqRmt4m5aNJO11cbscZ._p76z3Pjru 10JPTvvC3k7wYLdZbGRfftMaaiFB3l3amFLq0pPqLKoTVXw.vM0WO4.ni6zrmok5I6xplLVNCIyS 9RUmMnqLGcsRBUFIokCXnGQU_wlOqnuP1tXnygC8IhFR0GHnrcfbQSUjgUSx2_uN8DwYDEcDsCiF FPtJSeF7wIjZz_roktw7GpQ23uyq6k0quC2JfxAdo9DwGpCDNdvRHIz70s0ir5wvQB0iye8H7Qos BW_9hnSak8Coyqwtc1LnUrNixSXGFyzaK008eR3Q- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Thu, 12 Mar 2020 01:16:15 +0000 Date: Thu, 12 Mar 2020 01:16:10 +0000 (UTC) From: Virendra Kumar Reply-To: Virendra Kumar To: Tom Lane Cc: Pgsql-general General Message-ID: <446079039.553015.1583975770868@mail.yahoo.com> 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> Subject: Re: Back Port Request for INVALID Startup Packet MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_553014_261482256.1583975770866" X-Mailer: WebService/1.1.15342 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 Content-Length: 5571 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_553014_261482256.1583975770866 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 unders= tand this a bit. On AWS RDS we have primary and secondary hosts known in advance in most cas= es. 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 fa= ils over very quickly under 3 seconds mostly and hence we have set that hea= lth checks to 3seconds. I'll go back to AWS folks and see if they can do th= is in prior releases. Regards, Virendra Kumar =20 On Wednesday, March 11, 2020, 5:29:38 PM PDT, Tom Lane wrote: =20 =20 Virendra Kumar writes: > Can you please back port patch where if a 0 byte packet sent to PG instan= ce (Health Checks), it starts complaining about invalid startup packet and = flood the log which increases log size considerably if the health checks ar= e every 3 seconds or something like that. > Patch Requested - https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a= =3Dpatch;h=3D342cb650e 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.=C2=A0 Also, the discussion leading up to that patch specifica= lly 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. =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 regards, tom lane = =20 ------=_Part_553014_261482256.1583975770866 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Tom,

Th= ank you for your reply!
This is simple patch, would t= hat impact badly if patched to prior versions or some other constraints for= ced 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 mo= st cases. So if a primary instance fails over it will be other host and hen= ce 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 th= at health checks to 3seconds. I'll go back to AWS folks and see if they can= do this in prior releases.

Regards,
Virendra Kumar



=20
=20
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 sta= rts complaining about invalid startup packet and flood the log which increa= ses log size considerably if the health checks are every 3 seconds or somet= hing like that.
> Patch Requested - https://git.postgresql.org= /gitweb/?p=3Dpostgresql.git;a=3Dpatch;h=3D342cb650e


We generally don't like to change behavior of back = branches without
ironclad agreement that the existing beh= avior is a bug ... which this
surely isn't.  Also, t= he discussion leading up to that patch specifically
consi= dered and rejected back-patching; so I'm disinclined to overrule
that decision now.

I would s= uggest that an every-three-second health check is not
app= ropriate, especially one that is so minimal that it only
= detects whether the postmaster is alive.

            regards, tom la= ne
------=_Part_553014_261482256.1583975770866--