Re: High SYS CPU - need advise - Mailing list pgsql-general

From John R Pierce
Subject Re: High SYS CPU - need advise
Date
Msg-id 50A40BE2.3010504@hogranch.com
Whole thread Raw
In response to High SYS CPU - need advise  (Vlad <marchenko@gmail.com>)
Responses Re: High SYS CPU - need advise
List pgsql-general
On 11/14/12 1:13 PM, Vlad wrote:
> Postgresql 9.1.6.
> Postgres usually has 400-500 connected clients, most of them are idle.
> Database is over 1000 tables (across 5 namespaces), taking ~150Gb on disk.

thats a really high client connection count for a 8 core system.

I'd consider implementing a connection pool (like pgbouncer), and
rewriting your client applications to connect, do a transaction,
disconnect, so the actual number of postgres connections is much lower,
say in the 16-48 range.


--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Failed Login Attempts parameter
Next
From: Vlad
Date:
Subject: Re: High SYS CPU - need advise