From: Dimitri Fontaine <dfontaine@hi-media.com>
To: Jamie Tufnell <diesql@googlemail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Advice on HA/LB setup for small installation
Date: Mon, 31 May 2010 15:43:45 +0200
Message-ID: <87bpbwtcdq.fsf@hi-media-techno.com> (raw)
In-Reply-To: <AANLkTinIn272FP0BcPnjgV82jPQ7xesFiuQ_Lo46tZSk@mail.gmail.com>
References: <AANLkTinIn272FP0BcPnjgV82jPQ7xesFiuQ_Lo46tZSk@mail.gmail.com>
Jamie Tufnell <diesql@googlemail.com> writes:
> 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.
If you mean distributing the read-only queries to more than one server
backend, you can use haproxy in TCP mode for that. Application talks to
pgbouncer, which talks to haproxy, which connects to PostgreSQL.
Please note that nothing there will triage the read-only queries apart
from your application, and the hot-standby PostgreSQL (which will error
out).
Regards,
--
dim
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: dfontaine@hi-media.com, diesql@googlemail.com
Subject: Re: Advice on HA/LB setup for small installation
In-Reply-To: <87bpbwtcdq.fsf@hi-media-techno.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