Re: Upgrade to dual processor machine?

From: Shaun Thomas <sthomas(at)townnews(dot)com>
To: Henrik Steffen <steffen(at)city-map(dot)de>
Cc: Justin Clift <justin(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Upgrade to dual processor machine?
Date: 2002-11-11 18:08:55
Message-ID: Pine.LNX.4.44.0211111203180.1697-100000@hamster.inn.lee.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

On Mon, 11 Nov 2002, Henrik Steffen wrote:

> > - How many clients simultaneously connecting to it?
> one webserver with max. 50 instances, approximately 10.000 users a day,
> about 150.000 Pageviews daily. All pages are created on the fly using
> mod_perl connecting to the db-server.

Aha. What kind of web-side data caching are you doing? That alone can
drop your load down to < 1. Even something like a 1-hour cache, or
something you can manually expire can work amazing wonders for database
usage. So far, the only thing we've found that doesn't really fit this
model are full text searches.

Here, the biggest difference to our DB server was caused by *not* having
all of our 9 webservers doing 50+ connections per second, which we
achieved mainly through caching. Adding another CPU will work as well,
but as far as a long-term, not just throwing hardware at the problem
kind of solution goes, see if you can get caching worked in there
somehow.

Since you know you're using Pg.pm (switch to DBI::pg, trust me on this
one), you should have little problem either caching your result set or
even the whole resulting page with select non-cachable parts. Not only
will that reduce page-load time, but the strain on your database as
well.

--
Shaun M. Thomas INN Database Administrator
Phone: (309) 743-0812 Fax : (309) 743-0830
Email: sthomas(at)townnews(dot)com Web : www.townnews.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2002-11-11 18:25:45 Re: Upgrade to dual processor machine?
Previous Message Tom Lane 2002-11-11 17:55:32 Re: Win2K Questions

Browse pgsql-performance by date

  From Date Subject
Next Message scott.marlowe 2002-11-11 18:25:45 Re: Upgrade to dual processor machine?
Previous Message Andrew Sullivan 2002-11-11 17:59:50 Re: Slow response from 'SELECT * FROM table'