From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: David Kerr <dmk@mr-paradox.net>
Cc: Greg Smith <greg@2ndquadrant.com>
Cc: pgsql-performance@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: pgbench could not send data to client: Broken pipe
Date: Wed, 08 Sep 2010 17:27:24 -0500
Message-ID: <4C87C77C02000025000353D2@gw.wicourts.gov> (raw)
In-Reply-To: <20100908220011.GA59539@mr-paradox.net>
References: <20100908174629.GD40339@mr-paradox.net>
<8037.1283973026@sss.pgh.pa.us>
<4C87E3A6.8060800@2ndquadrant.com>
<20100908195654.GB49941@mr-paradox.net>
<9771.1283978128@sss.pgh.pa.us>
<20100908204443.GG49941@mr-paradox.net>
<4C87B22802000025000353B7@gw.wicourts.gov>
<20100908212056.GI49941@mr-paradox.net>
<4C87BF0502000025000353BE@gw.wicourts.gov>
<20100908220011.GA59539@mr-paradox.net>
David Kerr <dmk@mr-paradox.net> wrote:
> My assertian/hope is that the saturation point
> on this machine should be higher than most.
Here's another way to think about it -- how long do you expect your
average database request to run? (Our top 20 transaction functions
average about 3ms per execution.) What does that work out to in
transactions per second? That's the TPS you can achieve *on each
connection* if your pooler is efficient. If you've determined a
connection pool size based on hardware resources, divide your
anticipated requests per second by that pool size. If the result is
less than the TPS each connection can handle, you're in good shape.
If it's higher, you may need more hardware to satisfy the load.
Of course, the only way to really know some of these numbers is to
test your actual application on the real hardware under realistic
load; but sometimes you can get a reasonable approximation from
early tests or "gut feel" based on experience with similar
applications. I strongly recommend trying incremental changes to
various configuration parameters once you have real load, and
monitor the impact. The optimal settings are often not what you
expect.
And if the pooling isn't producing the results you expect, you
should look at its configuration, or (if you can) try other pooler
products.
-Kevin
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: Kevin.Grittner@wicourts.gov, dmk@mr-paradox.net, greg@2ndquadrant.com, tgl@sss.pgh.pa.us
Subject: Re: pgbench could not send data to client: Broken pipe
In-Reply-To: <4C87C77C02000025000353D2@gw.wicourts.gov>
References: <20100908174629.GD40339@mr-paradox.net> <8037.1283973026@sss.pgh.pa.us> <4C87E3A6.8060800@2ndquadrant.com> <20100908195654.GB49941@mr-paradox.net> <9771.1283978128@sss.pgh.pa.us> <20100908204443.GG49941@mr-paradox.net> <4C87B22802000025000353B7@gw.wicourts.gov> <20100908212056.GI49941@mr-paradox.net> <4C87BF0502000025000353BE@gw.wicourts.gov> <20100908220011.GA59539@mr-paradox.net> <4C87C77C02000025000353D2@gw.wicourts.gov>
* 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