Re: Database size growing over time and leads to performance impact

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Gnanakumar <gnanam(at)zoniac(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Database size growing over time and leads to performance impact
Date: 2010-03-30 13:50:14
Message-ID: 4BB20196.2050301@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

On 3/30/2010 6:17 AM, Gnanakumar wrote:
> We're using pgpool-II version 2.0.1 for PostgreSQL connection management.
>
> pgpool configurations are:
> num_init_children = 450
> child_life_time = 300
> connection_life_time = 120
> child_max_connections = 30
>
> As you recommended, I ran "ps -ax|grep postgres" at almost a busy
> transaction time and I can find "idle" entries:
> [root(at)newuser ~]# ps -ax|grep postgres
> 2664 ? Ss 0:00 postgres: newuser mydb 192.168.0.200(43545) idle
> 2783 ? Ss 0:00 postgres: newuser mydb 192.168.0.200(43585) idle
> 2806 ? Ss 0:02 postgres: newuser mydb 192.168.0.200(43588) idle
> 2807 ? Ss 0:01 postgres: newuser mydb 192.168.0.200(43589) idle
> 2818 ? Ss 0:00 postgres: newuser mydb 192.168.0.200(43601) idle
> 2819 ? Ss 0:00 postgres: newuser mydb 192.168.0.200(43602) idle
> 2833 ? Ss 0:02 postgres: newuser mydb 192.168.0.200(43603) idle
> 2856 ? Ss 0:03 postgres: newuser mydb 192.168.0.200(43614) idle
>
> Based on pgpool documentation, and also as far as I know, even though
> application layer returns/closes the application, pgpool will only handle
> actual closing of connections based on the connection_life_time parameter
> defined. And if this timeout, it goes to "wait for connection request"
> state.
>
> Can you throw some light on this? Is there any better way that we need to
> re-configure our pgpool parameters?
>

Connections are ok. Connection is different than transaction. The
output above looks good, that's what you want to see. (If it had said
"idle in transaction" that would be a problem). I dont think you need
to change anything.

Hopefully just vacuuming more often will help.

-Andy

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Iñigo Martinez Lasala 2010-03-30 14:29:29 Re: Migrate postgres to newer hardware
Previous Message Renato Oliveira 2010-03-30 12:45:41 Re: Migrate postgres to newer hardware

Browse pgsql-performance by date

  From Date Subject
Next Message Andy Colson 2010-03-30 14:05:21 Re: REINDEXing database-wide daily
Previous Message Ireneusz Pluta 2010-03-30 13:20:47 3ware vs. MegaRAID