Skip site navigation (1) Skip section navigation (2)

Re: Admission Control

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Robert Haas" <robertmhaas(at)gmail(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Admission Control
Date: 2010-06-25 21:09:29
Message-ID: 4C24D4B90200002500032B55@gw.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-hackers
Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
 
>> Heck, I think an even *more* trivial admission control policy
>> which limits the number of active database transactions released
>> to execution might solve a lot of problems.
> 
> That wouldn't have any benefit over what you can already do with a
> connection pooler, though, I think.  In fact, it would probably be
> strictly worse, since enlarging the number of backends slows the
> system down even if they aren't actually doing anything much.
 
Agreed -- *if* the connection pool is on another computer. 
Otherwise it'll probably consume about he same resources on the same
machine as what I'm proposing, only with more setup and
configuration involved.  Until we build a connection pooler into the
base product, though, you know what an uphill battle it is to get
people to control contention that way. We can usually get someone to
tweak a GUC when they report a problem, and maybe the tuning tools
could start to take core count and effective spindle count into
consideration and suggest a good setting for this, if we had it.
 
With the right connection pooler built in to core, though, this one
could go right out the window, and they could tune at that layer
instead.  [thinks]  Actually, the transaction count limit doesn't
need the planner to run first, so it could be considered part of the
first-tier admission control.  Essentially, it *would be* a simple
but effective built-in connection pooler.
 
I still think an execution admission controller would be worthwhile,
but the policy I proposed doesn't belong there; it might be the
subject of a pretty simple patch which might solve a lot of
performance problems.  Gotta sleep on that....
 
-Kevin

In response to

pgsql-hackers by date

Next:From: Andres FreundDate: 2010-06-25 21:44:46
Subject: Re: testing plpython3u on 9.0beta2
Previous:From: Robert HaasDate: 2010-06-25 21:07:33
Subject: simplifying emode_for_corrupt_record

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group