pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: armand pirvu <armand.pirvu@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: authentication failure
Date: Thu, 12 Apr 2018 07:48:36 -0700
Message-ID: <745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.com> (raw)
In-Reply-To: <4CF15AC7-6D2B-43B8-8838-0F429240905E@gmail.com>
References: <365D2700-44D4-4849-A434-E78BF6F526C3@gmail.com>
	<2496e0fb-bb23-ae29-b0d8-1b96456de56d@aklaver.com>
	<56528F6F-A2FF-4748-BA3B-15E57855F285@gmail.com>
	<a7fa504e-8295-bd5d-c9e9-c4be0baafa40@aklaver.com>
	<0DAF9812-45BC-42F9-8C69-C3EDF6B5E66D@gmail.com>
	<6E90358D-6986-4222-9059-374D7F205F58@gmail.com>
	<e43d2516-6db6-a981-aedf-0239a883ee9b@aklaver.com>
	<4CF15AC7-6D2B-43B8-8838-0F429240905E@gmail.com>

On 04/12/2018 07:37 AM, armand pirvu wrote:
> 
>> On Apr 12, 2018, at 9:28 AM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>
>> On 04/12/2018 07:15 AM, armand pirvu wrote:
>>
>>>>
>>>>
>>> Sorry for the double posting but could it be from
>>> #authentication_timeout = 1min# 1s-600s
>>
>>  From you previous post:
>>
>> "It is almost like the authnetication stops working for whatever reason"
>>
>> So to be clear the initial connections in the process go through, but at some point they start failing. Is that correct?
>>
>> The timeout could be an issue. It would helpful to also see what max_connections setting is.
>>
>>> So if the server gets a bit oveloaded this could play a role ?
>>
>>
>> -- 
>> Adrian Klaver
>> adrian.klaver@aklaver.com
> 
> 
> Yes correct initially they go through but at some point they start failing
> Max_connections is set to 200 on the postgres server, but I did not notice any message about being maxed out connections wise
> As a workaround for this very specific set of processes, until things get back in line so to speak, do you think from the devweb2004 (where processing is done) to devdb2004 (where the postgres database resides), should I just go from md5 to trusted ?

I would be inclined to raise the authentication_timeout first before 
setting the auth method to trust.

I would also set the below.:

https://www.postgresql.org/docs/10/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT

log_connections (boolean)
Causes each attempted connection to the server to be logged, as well as 
successful completion of client authentication. Only superusers can 
change this parameter at session start, and it cannot be changed at all 
within a session. The default is off.

log_disconnections (boolean)

That will give you a better idea of what is going on connection wise.

> 
> 
> 
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (38+ messages)  latest in thread

Message-ID: <745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.com>
Permalink:  ../745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.com/
Also on:    postgresql.org/message-id/745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.com

 · 

reply

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: adrian.klaver@aklaver.com, armand.pirvu@gmail.com
  Subject: Re: authentication failure
  In-Reply-To: <745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.com>
  References: <365D2700-44D4-4849-A434-E78BF6F526C3@gmail.com> <2496e0fb-bb23-ae29-b0d8-1b96456de56d@aklaver.com> <56528F6F-A2FF-4748-BA3B-15E57855F285@gmail.com> <a7fa504e-8295-bd5d-c9e9-c4be0baafa40@aklaver.com> <0DAF9812-45BC-42F9-8C69-C3EDF6B5E66D@gmail.com> <6E90358D-6986-4222-9059-374D7F205F58@gmail.com> <e43d2516-6db6-a981-aedf-0239a883ee9b@aklaver.com> <4CF15AC7-6D2B-43B8-8838-0F429240905E@gmail.com> <745881b7-5dfb-edba-1700-a58e1ddd270f@aklaver.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