Re: debugging server connection issue

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: debugging server connection issue
Date: 2016-03-29 20:40:09
Message-ID: 56FAE829.1000803@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/29/2016 1:28 PM, Stephen Constable wrote:
> """
> This error is only printed under a 32-job load, never a single job load.
>
> The processes are indeed connecting over a local network.
>
> I have only enabled the logging of connections and disconnections
> since I figured that would be the most telling :) perhaps that was not
> the best idea. but, FYI, I see over 5000 such notices in a single
> minute. I will reconfigure the logging to be more verbose.

if your clients are connecting, executing a read, then disconnecting
100s of times per second, maybe you're eating up all the available
'close_wait' states in your OS.

you might try a connection pool, such as pgbouncer. pgbouncer would
open some fixed number of database connections, perhaps 50 or so, and
your clients would connect to pgbounce to get a connection from the
pool, use it, then release it.

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-03-29 20:44:36 Re: debugging server connection issue
Previous Message Stephen Constable 2016-03-29 20:28:30 Re: debugging server connection issue