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

Scott Rankin srankin at motus.com
Tue Mar 17 09:10:19 JST 2015


Would it be possible to just log the un-graceful shutdown but not crash
the pgPool process?



On 3/16/15, 11:28 PM, "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.
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.


More information about the pgpool-general mailing list