pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Greg Stark <gsstark@mit.edu>
Cc: Jeff <threshar@torgo.978.org>
Cc: Anjan Dave <adave@vantage.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Why is this system swapping?
Date: Wed, 27 Apr 2005 17:02:49 -0700
Message-ID: <200504271702.49992.josh@agliodbs.com> (raw)
In-Reply-To: <87r7gv3hrx.fsf@stark.xeocode.com>
References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF78509899C@vt-pe2550-001.vantage.vantage.com>
	<cbe3ad2481e7cf5fcde552427c98f540@torgo.978.org>
	<87r7gv3hrx.fsf@stark.xeocode.com>

Greg,

> In fact I think it's generally superior to having a layer like pgpool
> having to hand off all your database communication. Having to do an extra
> context switch to handle every database communication is crazy.

Although, one of their issues is that their database connection pooling is 
per-server.    Which means that a safety margin of pre-allocated connections 
(something they need since they get bursts of 1000 new users in a few 
seconds) has to be maintained per server, increasing the total number of 
connections.   

So a pooling system that allowed them to hold 100 free connections centrally 
rather than 10 per server might be a win.

Better would be getting some of this stuff offloaded onto database replication 
slaves.

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco



view thread (10+ messages)  latest in thread

Message-ID: <200504271702.49992.josh@agliodbs.com>
Permalink:  ../200504271702.49992.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200504271702.49992.josh@agliodbs.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, gsstark@mit.edu, threshar@torgo.978.org, adave@vantage.com
  Subject: Re: Why is this system swapping?
  In-Reply-To: <200504271702.49992.josh@agliodbs.com>

* 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