Re: multi-tenant vs. multi-cluster

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Ben Chobot <bench(at)silentmedia(dot)com>
Cc: "Nicholson, Brad (Toronto, ON, CA)" <bnicholson(at)hp(dot)com>, pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: multi-tenant vs. multi-cluster
Date: 2011-03-18 20:41:42
Message-ID: AANLkTin8rQaSs+Q8B+=CdK5or_H1yo7Afx4P7gS-95X6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Mar 18, 2011 at 1:44 PM, Ben Chobot <bench(at)silentmedia(dot)com> wrote:

> OK, so are there any good ways to keep a bad/clueless user from gumming up a whole cluster? Something like statement_timeout, but for transactions, seems like it would be idle.

Newer versions of postgresql aren't quite as susceptible to problems
of open transactions in one DB affecting another in the same cluster /
instance. I.e. if dbA has an open transaction, that will no longer
prevent dbB from being properly vacuumed etc.

I'd suggest using check_postgresql.pl to keep track of things like
open transactions, vacuum wraparound etc.

Note that it might be worthwhile to have two or more but not dozens of
individual clusters. Let's say you've got a critical app, and a bunch
of not so critical apps. You can make a cluster for the more critical
app(s) so it's / they're isolated from the other apps if things go
wrong.

A rogue query using all the memory or IO in the machine up can still
be a bit of a problem, of course, but it will be limited if it happens
in another cluster.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-03-18 20:45:51 Re: pgagent installation -- ccmake - getting selected wxWidgets configuration (version: 2.6, debug: no, static
Previous Message Pavel Stehule 2011-03-18 20:19:56 Re: How do I do this in plpgsql ?