vacuumdb not letting me connect to db

From: Atul Kumar <akumar14871(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: vacuumdb not letting me connect to db
Date: 2021-02-04 11:26:26
Message-ID: CA+ONtZ7hmwQn+6+fGqSbo_RXE7MBeV=OR86LpG57xRvOerWfag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I have 160 GB of RAM, postgres 9.6 is running on the server.

after upgrade I ran the below command:

"/usr/edb/as9.6/bin/vacuumdb" -U 'enterprisedb' --verbose --all -j 300
--analyze-only

after running that command I was not able to connect the database
using psql for few minutes.

After 20-30 minutes i was able to connect to the db and at that time I
checked the pg_stst_activity, the active connections was reduced to
27.

my max_connections is set to 700.

I tried to find out the reason for not being abled to connect the db
(when 300 jobs were running) but still not got the answer. So
suggestions are welcome.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2021-02-04 11:39:42 Re: vacuumdb not letting me connect to db
Previous Message Zwettler Markus (OIZ) 2021-02-04 10:03:53 curious vacuum full behavior