pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matt Clark <matt@ymogen.net>
To: Ron Johnson <ron.l.johnson@cox.net>
To: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: Hardware recommendations to scale to silly load
Date: Sat, 30 Aug 2003 16:36:20 +0100
Message-ID: <OAEAKHEHCMLBLIDGAFELGEHIDHAA.matt@ymogen.net> (raw)
In-Reply-To: <1062220877.669.406.camel@haggis>

>     SELECT <blah>
>     IF <some circumstance that happens about 1/8th of the time>
>         BEGIN
>             INSERT
>                or
>             UPDATE
>         COMMIT;
>
> He says his current h/w peaks at 1/10th that rate.
>
> My question is: is that current peak rate ("300 inserts/updates
> *or* 2500 selects") based upon 1 connection, or many connections?
> With 4 CPUs, and a 4 disk RAID10, I wouldn't be surprised if 4 con-
> current connections gives the optimum speed.

Well it's more like each user interaction looks like:

	SELECT
	SELECT
	SELECT
	SELECT
	SELECT
	SELECT
	INSERT
	SELECT
	SELECT
	SELECT
	SELECT
	INSERT
	SELECT
	SELECT
	SELECT
	UPDATE
	SELECT
	SELECT
	UPDATE
	SELECT

And concurrency is very high, because it's a web app, and each httpd has one connection to PG, and there can be hundreds of active
httpd processes.  Some kind of connection pooling scheme might be in order when there are that many active clients.  Any views?





view thread (45+ messages)  latest in thread

Message-ID: <OAEAKHEHCMLBLIDGAFELGEHIDHAA.matt@ymogen.net>
Permalink:  ../OAEAKHEHCMLBLIDGAFELGEHIDHAA.matt@ymogen.net/
Also on:    postgresql.org/message-id/OAEAKHEHCMLBLIDGAFELGEHIDHAA.matt@ymogen.net

 · 

reply

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-performance@postgresql.org
  Cc: matt@ymogen.net, ron.l.johnson@cox.net
  Subject: Re: Hardware recommendations to scale to silly load
  In-Reply-To: <OAEAKHEHCMLBLIDGAFELGEHIDHAA.matt@ymogen.net>
  References: <1062220877.669.406.camel@haggis> <OAEAKHEHCMLBLIDGAFELGEHIDHAA.matt@ymogen.net>

* 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