Re: Why is this system swapping? - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Why is this system swapping?
Date
Msg-id 200504271702.49992.josh@agliodbs.com
Whole thread Raw
In response to Re: Why is this system swapping?  (Greg Stark <gsstark@mit.edu>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: Greg Stark
Date:
Subject: Re: Why is this system swapping?
Next
From: Josh Berkus
Date:
Subject: Re: Final decision