pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: vacuumdb not letting me connect to db
Date: Thu, 4 Feb 2021 11:07:27 -0600
Message-ID: <efacaeb3-3c86-e7f2-a674-9087b812502f@gmail.com> (raw)
In-Reply-To: <CA+ONtZ7L54XXOq4_ZgkTRCP2VGdc-1q4aTTEADaUjkg9ZC6jaA@mail.gmail.com>
References: <CA+ONtZ7hmwQn+6+fGqSbo_RXE7MBeV=OR86LpG57xRvOerWfag@mail.gmail.com>
	<b5c8a7b5a1b90443051c9158970420c1113fd751.camel@cybertec.at>
	<CA+ONtZ7L54XXOq4_ZgkTRCP2VGdc-1q4aTTEADaUjkg9ZC6jaA@mail.gmail.com>

What about disk IO?  That's what really gets saturated when running 300 threads.

On 2/4/21 11:00 AM, Atul Kumar wrote:
> Hi,
>
> The CPU and RAM are normal even on 300 jobs ( only 1-4% of consumption) 
> but I don’t understand one thing here that if max_connections is set to 
> 700 then why I am not able to connect the db.
>
> As the running jobs (300) are lesser than half of max_connections.
>
>
> Regards
> Atul
>
>
> On Thursday, February 4, 2021, Laurenz Albe <laurenz.albe@cybertec.at 
> <mailto:laurenz.albe@cybertec.at>> wrote:
>
>     On Thu, 2021-02-04 at 16:56 +0530, Atul Kumar wrote:
>     > 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.
>
>     That is to be expected.
>
>     If you have 300 processes performing I/O and using CPU, your machine
>     will vertainly be overloaded.
>
>     Yours,
>     Laurenz Albe
>     -- 
>     Cybertec | https://www.cybertec-postgresql.com
>     <https://www.cybertec-postgresql.com;
>

-- 
Angular momentum makes the world go 'round.

view thread (20+ messages)  latest in thread

Message-ID: <efacaeb3-3c86-e7f2-a674-9087b812502f@gmail.com>
Permalink:  ../efacaeb3-3c86-e7f2-a674-9087b812502f@gmail.com/
Also on:    postgresql.org/message-id/efacaeb3-3c86-e7f2-a674-9087b812502f@gmail.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: ronljohnsonjr@gmail.com
  Subject: Re: vacuumdb not letting me connect to db
  In-Reply-To: <efacaeb3-3c86-e7f2-a674-9087b812502f@gmail.com>
  References: <CA+ONtZ7hmwQn+6+fGqSbo_RXE7MBeV=OR86LpG57xRvOerWfag@mail.gmail.com> <b5c8a7b5a1b90443051c9158970420c1113fd751.camel@cybertec.at> <CA+ONtZ7L54XXOq4_ZgkTRCP2VGdc-1q4aTTEADaUjkg9ZC6jaA@mail.gmail.com> <efacaeb3-3c86-e7f2-a674-9087b812502f@gmail.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