pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Suggest the best values for the postgres configuration parameters
Date: Wed, 11 Apr 2018 09:25:52 +0200
Message-ID: <1523431552.2428.16.camel@cybertec.at> (raw)
In-Reply-To: <CAEHH7R4NhZ8EvEubw9vo6j4xZ0RSsYxBumo_FC73OECRb6cfGA@mail.gmail.com>
References: <CAEHH7R4NhZ8EvEubw9vo6j4xZ0RSsYxBumo_FC73OECRb6cfGA@mail.gmail.com>

Raghavendra Rao J S V wrote:
> We are using postgres 9.2  version on Centos operating system. 

That's no good, 9.2 is out of support.
Use v10 or at least 9.6.

> Total ram available is 80GB . At present we don't have any connection pool mechanisiam.  Max number of  connections are allowed is 1000. 

That's not good either. Use a connection pool.

> Could you please suggest the best values for the below configuration parameters?
> 
> shared_buffers 

4 or 8 GB

> effective_cache_size 

80 GB minus what the OS and other applications need.

> work_mem 

Depends on your queries. With max_connections absurdly high as 1000, no more than 50MB.

> maintenance_work_mem 

1GB

> checkpoint_segments 

Depends on your workload.

> wal_keep_segments 

0  (unless you need replication and have nothing better)

> checkpoint_completion_target 

0.8

> Max_prepared_transactions =0  

0  (unless you need distributed transactions)

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




view thread (2+ messages)

Message-ID: <1523431552.2428.16.camel@cybertec.at>
Permalink:  ../1523431552.2428.16.camel@cybertec.at/
Also on:    postgresql.org/message-id/1523431552.2428.16.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, raghavendrajsv@gmail.com
  Subject: Re: Suggest the best values for the postgres configuration parameters
  In-Reply-To: <1523431552.2428.16.camel@cybertec.at>
  References: <CAEHH7R4NhZ8EvEubw9vo6j4xZ0RSsYxBumo_FC73OECRb6cfGA@mail.gmail.com> <1523431552.2428.16.camel@cybertec.at>

* 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