From: | Adam Sjøgren <asjo(at)koldfront(dot)dk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Stephen Frost <sfrost(at)snowman(dot)net> |
Subject: | Re: Database logins taking longer and longer, showing up as "authentication" in ps(1) |
Date: | 2020-08-18 15:00:05 |
Message-ID: | 87364kc83u.fsf@tullinup.koldfront.dk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Stephen writes:
> * Adam Sjøgren (asjo(at)koldfront(dot)dk) wrote:
>>
>> We have 60 processes (workers) running on different machines accessing
>> the database, that all grab jobs from a queue and update rows in a table
>> after doing some calculations (which vary in time from <1s to perhaps a
>> minute, many of them fast).
>>
>> Sometimes new database logins slow down, from usually taking <0.05s to
>> taking minutes. This is for psql as a normal user using Kerberos, for
>> psql as the postgres superuser, for the web-application logging into the
>> database, for everything.
>
> When in doubt, blame DNS.
I'd love to! However I don't see any DNS outages on our local network
correlating with whether I run 60 workers or 5 workers.
> Alternatively, in your case, the issue might be the KDC taking forever
> to issue a ticket for the service.
If that was the cause, logging in as the 'postgres' superuser (not using
Kerberos) locally on the server should be fast regardless, right?
> (though you might check if you have log_hostnames on..).
It's off:
$ grep hostname /etc/postgresql/11/main/postgresql.conf
#log_hostname = off
Thanks for replying!
Best regards,
Adam
--
"Probabilistic algorithms don't appeal to me. (This Adam Sjøgren
is a question of aesthetics, not practicality.) So asjo(at)koldfront(dot)dk
later, I figured out how to remove the probability
and turn it into a deterministic algorithm."
From | Date | Subject | |
---|---|---|---|
Next Message | Srinivasa T N | 2020-08-18 15:00:39 | Re: Database logins taking longer and longer, showing up as "authentication" in ps(1) |
Previous Message | Tom Lane | 2020-08-18 14:54:09 | Re: Database logins taking longer and longer, showing up as "authentication" in ps(1) |