From: Denis Braekhus <denis@startsiden.no>
To: pgsql-admin@postgresql.org
Subject: Behaviour patterns on pgsql (7.1.3)
Date: Wed, 30 Oct 2002 12:45:29 +0100
Message-ID: <200210301245.29698.denis@startsiden.no> (raw)
Hi all,
Anyone experienced similar patterns on their Web-DB setups ?
Short setup description :
X frontend webservers (Apache 1.3.x) with php and mod_perl dynamic content.
1 backend db server (Postgresql 7.1.3).
The webservers are _very_ busy, but send only a limited amount of their
requests to the backend (most requests are served using static content).
Every now and then postgresql gets "too busy" and these patterns emerge :
- some connections are just idling and not being reaped (presumably either the
browser/client or the apache webserver timed out the request)
- these connections stack up to a point where the other "live" queries are
handled so inefficiently that pgsql enters a "bad downwards spiral".
(Meaning it cannot serve enough requests fast enough due to high load. The
number of connections increases, giving again more load, and so on ... )
I do VACUUM every night, and with Postgresql 7.1.3 cannot VACUUM during daily
usage.
I know upgrading to the 7.2 series is a sane way out (possibly) of this, but
due to development reasons, cannot do that right now (tm). I have to wait at
least another month or so..
Any clues to possible fixes / workarounds ?
Timeout settings someplace ?
BTW: The server has 1GB RAM, which seems sufficient to loading the entire DB
dataset into memory, disk issues should not be a performance hindering factor
here.
cheers!
--
Denis
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-admin@postgresql.org
Cc: denis@startsiden.no
Subject: Re: Behaviour patterns on pgsql (7.1.3)
In-Reply-To: <200210301245.29698.denis@startsiden.no>
References: <200210301245.29698.denis@startsiden.no>
* 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