pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: abhilash.mb <mermidons@poornam.com>
To: pgsql-admin@postgresql.org
Subject: Please advice a best solution for postgresql replication with load balancing
Date: Tue, 18 Feb 2014 21:04:50 -0800 (PST)
Message-ID: <1392786290813-5792675.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hello Team,

Could you guys please suggest the best solution for postgresql replication
setup with load balancing ? 

Better have the ability to control where read operation goes by tables.
Let's "select table A" goes only to master, "select table B" goes only to
save, "select table C" goes to master and slave in turns

We have found that pgpool supports load balancing with many other feature
like connection pooling, replication, online recovery etc. 

However, it doesn't support connection pooling with database multiplexing as
given below :

=============
test_db1 = host=master= port=5433= dbname=test_db1

test_db2 = host=slave= port=5433= dbname=test_db2

=========== 

So we tried to implement following setup: 

1. Application Client Connects to PgBouncer

2. PgBouncer forwards request to a PgPool for that cluster

3. PgPool forwards Request to the PostreSQL server (master or slave)

4. PostgreSQL responds to the request


If the above architecture is possible and is the best, could you guys please
advice on how this can be implemented (backend-settings) ?


Thank you,
Abhilash
System Enginner
  




--
View this message in context: http://postgresql.1045698.n5.nabble.com/Please-advice-a-best-solution-for-postgresql-replication-wit...
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



Message-ID: <1392786290813-5792675.post@n5.nabble.com>
Permalink:  ../1392786290813-5792675.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1392786290813-5792675.post@n5.nabble.com

 · 

reply

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: mermidons@poornam.com
  Subject: Re: Please advice a best solution for postgresql replication with load balancing
  In-Reply-To: <1392786290813-5792675.post@n5.nabble.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