Re: replication help ...

From: "Hunley, Douglas" <douglas(dot)hunley(at)openscg(dot)com>
To: Sunil N Shinde <Sunil(dot)Shinde(at)mastek(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: replication help ...
Date: 2016-09-22 13:22:11
Message-ID: CAAD=pwG_VBXUt3sq4vrzj6v=uCBdvtK5bevKdj-x3Ww8-pp6rQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Sep 22, 2016 at 12:51 AM, Sunil N Shinde <Sunil(dot)Shinde(at)mastek(dot)com>
wrote:

> I need to create some concrete document regarding the replication method.
>
> We want to suggest best method for load balancing to client.
>

If you're wanting load balancing, then you need a hot standby and
pgPool-II. This will send writes to the master and reads to the slave.

You probably want async replication. Unless you're doing financial
transaction (or similar) where it must be guaranteed to be written in two
places (then you want sync). Note though that this both slows down the
master's performance (it waits for the slave to ACK the write) and makes
the slave a point of failure since the master can't commit if it is down
(unless you setup multiple slaves and have them all ready to assume the
sync role)

--
{
"name" : "douglas j hunley",
"email" : "douglas(dot)hunley(at)openscg(dot)com <doug(dot)hunley(at)gmail(dot)com>",
"title" : "database engineer",
"phone" : "+1 614 316 5079",
}

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rainer Leo 2016-09-22 13:44:58 connection problems
Previous Message Tomáš Uko 2016-09-22 12:09:01 Re: Problem with extension