From: Scott Marlowe <scott.marlowe@gmail.com>
To: Jamie Tufnell <diesql@googlemail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Advice on HA/LB setup for small installation
Date: Thu, 13 May 2010 20:45:50 -0600
Message-ID: <AANLkTinsmFLODZnCFSTdJi7Q_nMfeSH5CPMTiE89Cbh7@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinIn272FP0BcPnjgV82jPQ7xesFiuQ_Lo46tZSk@mail.gmail.com>
References: <AANLkTinIn272FP0BcPnjgV82jPQ7xesFiuQ_Lo46tZSk@mail.gmail.com>
On Thu, May 13, 2010 at 8:15 PM, Jamie Tufnell <diesql@googlemail.com> wrote:
> Hi,
>
> We have a webapp backed by a single PostgreSQL server and I'd like to
> add a second primarily for availability. I figure if we can load
> balance reads too then why not.
>
> Having read over the HA docs/matrix, I'm considering using 9.0's hot
> standby with pgpool-II to automatically balance reads without having
> to adjust our webapp to split the reads/writes.
>
> Firstly, is this a sound setup and does anyone using it have any
> comments fore/against, gotchas?
Well, it's new and shiny, and not a lot of people are running it yet
since it's still in beta. I'd suggest being a beta tester on it and
reporting problems, cause now's the time to do it.
> Secondly, is there a companion tool to achieve this with pgbouncer?
> Note I have nothing against pgpool, just curious as we're already
> using pgbouncer in production.
slony?
Both are asynchronous, so some lag is to be expected. When slony runs
out of disk bandwidth it starts to fall behind. You can put slony
sl_log_x on a separate tablespace and that helps, but that's it's
limit to keeping up. I'm not sure what latency to expect from PITR.
We get 5 to 20 seconds under heavy load with slony generally. With
occasional spikes late at night when we run backups / maintenance
processes into the 30 to 60 second range.
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-admin@postgresql.org
Cc: scott.marlowe@gmail.com, diesql@googlemail.com
Subject: Re: Advice on HA/LB setup for small installation
In-Reply-To: <AANLkTinsmFLODZnCFSTdJi7Q_nMfeSH5CPMTiE89Cbh7@mail.gmail.com>
References: <AANLkTinIn272FP0BcPnjgV82jPQ7xesFiuQ_Lo46tZSk@mail.gmail.com> <AANLkTinsmFLODZnCFSTdJi7Q_nMfeSH5CPMTiE89Cbh7@mail.gmail.com>
* 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