Re: PostgreSQL Replication

From: Mutuku Ndeti <jnmutuku(at)gmail(dot)com>
To: Thomas Guyot <tguyot(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL Replication
Date: 2021-02-17 09:22:50
Message-ID: CABZ-Guu7V_0EpGW9cSx3J2NagHwBaWXs3pe-6iqhRMr9ZtUoaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you.

I agree with you. Single master, with a standby replica, seems easier to
manage. Is there a way to automatically promote the standby, when the
active master fails? Is it feasible to have 2 instances of the application,
writing onto the same DB, reason for two instances of the application is to
allow for redundancy/load balancing.

On Wed, Feb 17, 2021 at 11:22 AM Thomas Guyot <tguyot(at)gmail(dot)com> wrote:

> On 2021-02-16 09:28, Raul Giucich wrote:
> > This article will help you
> > https://wiki.postgresql.org/wiki/Multimaster
> > <https://wiki.postgresql.org/wiki/Multimaster>.
> >
> > El mar., 16 feb. 2021 10:56, Mutuku Ndeti <jnmutuku(at)gmail(dot)com
> > <mailto:jnmutuku(at)gmail(dot)com>> escribió:
> >
> > Hi,
> >
> > Need some advice here. I have an application using PostgreSQL. I
> > need to install it on 2 servers for redundancy purposes and have 2
> > databases. I need the DBs to replicate to each other, in real-time.
> > Writes can be done on both DBs.
> >
> > Please let me know if this is a feasible setup and the best way to
> > proceed.
> >
>
> Hi,
>
> While I have no experience with replication on pgsql, in general
> multi-master database replication is much more complex and often require
> a pretty rigid setup. The graphs on that page seems to tell the same
> story for pgsql.
>
> Are you sure you really need multi-master replication as opposed to
> having a single active master in a replicated set? If properly
> configured, cluster software can automatically fail over the active
> master, which provides very good redundancy and is much simpler from a
> technological standpoint.
>
> Regards,
>
> --
> Thomas
>

--
www.agile.co.ke

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Guyot 2021-02-17 10:04:54 Re: PostgreSQL Replication
Previous Message Alexander Farber 2021-02-17 09:15:36 Re: How to return a jsonb list of lists (with integers)