Re: Two questions from the boss (SQL:2003 && scalability)

From: Jeff Davis <jdavis-pgsql(at)empires(dot)org>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: John Wells <jbwellsiv(at)gmail(dot)com>, PgSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Two questions from the boss (SQL:2003 && scalability)
Date: 2004-10-21 22:44:07
Message-ID: 1098398647.2366.43.camel@jeff
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> and what sort of capabilities PostgreSQL has to scale across
> > multiple CPUs and hosts (multithreading, load balancing, etc).
> >
>
> Well, PostgreSQL can certainly take advantage of multiple CPU's,
> although there are some cases where we could do more (use multiple CPU
> on one query). You can also use a combination of tools like pgpool and
> slony to set up load balancing depending on your needs... though I
> should say that PostgreSQL has tremendous ability to scale up even
> without getting into all the buzzword friendly schemes.
>

Just to clarify, PostgreSQL uses multiple processes rather than, e.g.
multiple threads. The developers agree that multiple processes provide
more benefits (mostly in stability and robustness) than costs (more
connection startup costs). The startup costs are easily overcome by
using connection pooling.

Also, each query can only use one processor; a single query can't be
executed in parallel across many CPUs. However, several queries running
concurrently will be spread across the available CPUs.

Slony <http://slony.info> and something like pgpool
<http://www2b.biglobe.ne.jp/~caco/pgpool/index-e.html> can work together
to make a great replication system with load balancing. No one
replication solution is perfect for all, and PostgreSQL has other
options, so you should post your business's needs if you want more
specific advice.

Regards,
Jeff Davis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marc G. Fournier 2004-10-21 23:05:46 Upcoming v8.0.0 Beta 4 ...
Previous Message Gaetano Mendola 2004-10-21 22:32:41 Re: Slony-I 1.0.4 Released