Re: limiting resources to users

From: "Jean-Yves F(dot) Barbier" <12ukwn(at)gmail(dot)com>
To: Bill Moran <wmoran(at)potentialtech(dot)com>
Cc: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: limiting resources to users
Date: 2009-11-25 19:09:12
Message-ID: 4B0D80D8.9040407@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill Moran a écrit :
> In response to "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>:
>
>> Hi:
>>
>> Is there a way in Postgres to limit how much cpu, memory, other resources a
>>certain DB gets? A MySQL DB that I'm now replacing with PG has been having
>>problems with run-away users that pound one DB with intense processes running
>>periodically in cron jobs. The effect is that it takes up all the resources
>> and the users of other DBs suffer because the CPU is pegged servicing the first guy..
>>
>> The PG versio will have one PG instance with many DBs. One set of these DBs are vital for operations and should have the highest priority. Another set of DBs are not vital but their users are the culprits that consume all the resources. I want to give DBs A, B, and C the highest priority, DBs D, E, F the lowest. If a DB F user is taking up all the resources, and a DB B users runs a query, I want to service the DB B guys first and backburner the DB F guy until the DB B guy is serviced first.
>
> You can try various tricks with nice. Have you conclusively determined that
> the bottlenecked resource is CPU? In my experience, it's much more likely
> to be disk IO, and nice doesn't help with that.

I agree, unless you use SCSI 640 with SSD front cache, HDz are always the
bottleneck.

...
> A better solution would probably be to buy a second database server. Put
> the mission-critical DBs on one physical system and the rest on another
> system and your problem goes away. Honestly, you might want to consider
> this anyway, since it seems like your existing system is nearing overload
> if it can't maintain reasonable performance during concurrent loads.

or may be using virtual machines (with a minimum daemons running on each),
this way you'll be able to fine tweak each server (and also each Qty of RAM),
but you'll need much power available, as usual YMMV.

JY
--
BOHICA:
Bend over, here it comes again.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Oyler 2009-11-25 19:17:57 Re: Re: I need help creating a composite type with some sort of constraints.
Previous Message Merlin Moncure 2009-11-25 19:02:08 Re: Re: I need help creating a composite type with some sort of constraints.