pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Xiong He <iihero@qq.com>
To: David Johansen <davejohansen@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: Auto-vacuum timing out and preventing connections
Date: Mon, 4 Jul 2022 12:29:38 +0800
Message-ID: <tencent_C015E6D563AD8116DC8D15C8F4F5B3AFCB0A@qq.com> (raw)

You can get the auto vacuum activity from pg_stat view. try to fond which table causes the timeout. and even more you csn disable autovacuum to check whether it still happens.&nbsp;



---Original---
From: "David Johansen"<davejohansen@gmail.com&gt;
Date: Sat, Jul 2, 2022 12:34 PM
To: "Andres Freund"<andres@anarazel.de&gt;;
Cc: "pgsql-bugs"<pgsql-bugs@lists.postgresql.org&gt;;
Subject: Re: Auto-vacuum timing out and preventing connections


On Fri, Jul 1, 2022 at 9:11 PM Andres Freund <andres@anarazel.de&gt; wrote:

Hi,
 
 On 2022-06-27 14:38:21 -0600, David Johansen wrote:
 &gt; We're running into an issue where the database can't be connected to. It
 &gt; appears that the auto-vacuum is timing out and then that prevents new
 &gt; connections from happening. This assumption is based on these logs showing
 &gt; up in the logs:
 &gt; WARNING:&nbsp; worker took too long to start; canceled
 &gt; The log appears about every 5 minutes and eventually nothing can connect to
 &gt; it and it has to be rebooted.
 
 How many databases, tables and functions do you have?


1 database
427 tables
1 function
&nbsp;
&gt; What can we do to diagnose this problem and get our database working
 &gt; reliably again?
 
 Downthread you said you're on RDS - unfortunately you're going to have quite
 limited access and are going to have to take it up with AWS.


Yes, I definitely understand that AWS will likely need to be involved or resolve this issue, but as I said previously, I'm trying to be proactive and just see what I could find.&nbsp;

view thread (12+ messages)  latest in thread

Message-ID: <tencent_C015E6D563AD8116DC8D15C8F4F5B3AFCB0A@qq.com>
Permalink:  ../tencent_C015E6D563AD8116DC8D15C8F4F5B3AFCB0A@qq.com/
Also on:    postgresql.org/message-id/tencent_C015E6D563AD8116DC8D15C8F4F5B3AFCB0A@qq.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-bugs@postgresql.org
  Cc: iihero@qq.com, davejohansen@gmail.com, andres@anarazel.de
  Subject: Re: Auto-vacuum timing out and preventing connections
  In-Reply-To: <tencent_C015E6D563AD8116DC8D15C8F4F5B3AFCB0A@qq.com>
  References: <tencent_C015E6D563AD8116DC8D15C8F4F5B3AFCB0A@qq.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