[pgpool-general: 3526] Re: Amazon EC2 Load Balancer health check kills pgPool node

James Sewell james.sewell at lisasoft.com
Tue Mar 17 09:26:32 JST 2015


Hey,

We use the same setup on 3.3.1 (AWS with ELB doing TCP health check), but
we get these error messages:

2015-03-16 17:38:05 ERROR: pid 3049: read_startup_packet: incorrect packet
length (0)
2015-03-16 17:38:15 ERROR: pid 3049: read_startup_packet: incorrect packet
length (0)
2015-03-16 17:38:25 ERROR: pid 3049: read_startup_packet: incorrect packet
length (0)
2015-03-16 17:38:35 ERROR: pid 3049: read_startup_packet: incorrect packet
length (0)

There is no backend crash I can see.


Cheers,


James Sewell,
PostgreSQL Team Lead / Solutions Architect
______________________________________


 Level 2, 50 Queen St, Melbourne VIC 3000

*P *(+61) 3 8370 8000  *W* www.lisasoft.com  *F *(+61) 3 8370 8099


On Tue, Mar 17, 2015 at 10:28 AM, Tatsuo Ishii <ishii at postgresql.org> wrote:

> I guess pgpool-II complains that EC2 Elastic Load Balancer does not
> disconnect the session in a grace manner. As far as I know, EC2
> Elastic Load Balancer supports HTTP/HTTPS but does not support the
> PostgreSQL protocol. So I think there is not too much that pgpool-II
> can do.
>
> Best regards,
> --
> Tatsuo Ishii
> SRA OSS, Inc. Japan
> English: http://www.sraoss.co.jp/index_en.php
> Japanese:http://www.sraoss.co.jp
>
> > Hi all,
> >
> > I’m running pgPool 3.4.1 on a pair of CentOS 6.6 boxes at AWS, and I
> have an EC2 Elastic Load Balancer configured to balance requests between
> them.  I have health checks set up on the load balancer, and I’ve noticed
> that every time I get a health check, the pgPool worker process that
> services that request dies.  Here’s an excerpt from the log:
> >
> > pgpool[389]: [951-2] 2015-03-16 18:14:36: pid 389: DETAIL: EOF
> encountered with frontend
> > pgpool[27]: [749-1] 2015-03-16 18:14:36: pid 27: LOG: child process with
> pid: 389 exits with status 256
> > pgpool[27]: [750-1] 2015-03-16 18:14:36: pid 27: LOG: fork a new child
> process with pid: 480
> >
> > pgpool[502]: [733-1] 2015-03-16 18:15:06: pid 502: FATAL: unable to read
> data from frontend
> > pgpool[502]: [733-2] 2015-03-16 18:15:06: pid 502: DETAIL: EOF
> encountered with frontend
> > pgpool[28]: [759-1] 2015-03-16 18:15:06: pid 28: LOG: child process with
> pid: 502 exits with status 256
> > pgpool[28]: [760-1] 2015-03-16 18:15:06: pid 28: LOG: fork a new child
> process with pid: 524
> >
> > This was happening every 30 seconds.  When I change the health check to
> be every 5 minutes, the child process dying also moved to every 5 minutes.
> I don’t have a whole lot of control over the health check �#| it’s a TCP
> connection on the pgPool port.
> >
> > Has anybody seen something like this before?
> >
> > Thanks,
> > Scott
> >
> > SCOTT RANKIN
> > Vice President, Technology
> > Motus, LLC
> > Two Financial Center, 60 South Street, Boston, MA 02111
> > 617.467.1931 (W) | srankin at motus.com<mailto:%20tgebski at motus.com>
> >
> > Follow us on LinkedIn<https://www.linkedin.com/company/motus-llc/> |
> Visit us at motus.com<http://www.motus.com/>
> >
> >
> > This email message contains information that Motus, LLC considers
> confidential and/or proprietary, or may later designate as confidential and
> proprietary. It is intended only for use of the individual or entity named
> above and should not be forwarded to any other persons or entities without
> the express consent of Motus, LLC, nor should it be used for any purpose
> other than in the course of any potential or actual business relationship
> with Motus, LLC. If the reader of this message is not the intended
> recipient, or the employee or agent responsible to deliver it to the
> intended recipient, you are hereby notified that any dissemination,
> distribution, or copying of this communication is strictly prohibited. If
> you have received this communication in error, please notify sender
> immediately and destroy the original message.
> >
> > Internal Revenue Service regulations require that certain types of
> written advice include a disclaimer. To the extent the preceding message
> contains advice relating to a Federal tax issue, unless expressly stated
> otherwise the advice is not intended or written to be used, and it cannot
> be used by the recipient or any other taxpayer, for the purpose of avoiding
> Federal tax penalties, and was not written to support the promotion or
> marketing of any transaction or matter discussed herein.
>
> _______________________________________________
> pgpool-general mailing list
> pgpool-general at pgpool.net
> http://www.pgpool.net/mailman/listinfo/pgpool-general
>
>

-- 


------------------------------
The contents of this email are confidential and may be subject to legal or 
professional privilege and copyright. No representation is made that this 
email is free of viruses or other defects. If you have received this 
communication in error, you may not copy or distribute any part of it or 
otherwise disclose its contents to anyone. Please advise the sender of your 
incorrect receipt of this correspondence.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20150317/f56fb19b/attachment-0001.html>


More information about the pgpool-general mailing list