pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Guyot <tguyot@gmail.com>
To: Mutuku Ndeti <jnmutuku@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL Replication
Date: Wed, 17 Feb 2021 03:22:44 -0500
Message-ID: <5269d50b-3d30-d36b-a7a6-f54f34eeff57@gmail.com> (raw)
In-Reply-To: <CAN0zQZ6o3d2UrJ6RD6t8-gNwfN90KK3T0WW9C2fWN3++RaMjUw@mail.gmail.com>
References: <CABZ-GuuVThq5sX9v4T4CBFgUL+OHui1rh=o54RqWg9Q0PdqoxQ@mail.gmail.com>
	<CAN0zQZ6o3d2UrJ6RD6t8-gNwfN90KK3T0WW9C2fWN3++RaMjUw@mail.gmail.com>

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@gmail.com
> <mailto:jnmutuku@gmail.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





view thread (91+ messages)  latest in thread

Message-ID: <5269d50b-3d30-d36b-a7a6-f54f34eeff57@gmail.com>
Permalink:  ../5269d50b-3d30-d36b-a7a6-f54f34eeff57@gmail.com/
Also on:    postgresql.org/message-id/5269d50b-3d30-d36b-a7a6-f54f34eeff57@gmail.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 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-general@postgresql.org
  Cc: tguyot@gmail.com, jnmutuku@gmail.com
  Subject: Re: PostgreSQL Replication
  In-Reply-To: <5269d50b-3d30-d36b-a7a6-f54f34eeff57@gmail.com>
  References: <CABZ-GuuVThq5sX9v4T4CBFgUL+OHui1rh=o54RqWg9Q0PdqoxQ@mail.gmail.com> <CAN0zQZ6o3d2UrJ6RD6t8-gNwfN90KK3T0WW9C2fWN3++RaMjUw@mail.gmail.com> <5269d50b-3d30-d36b-a7a6-f54f34eeff57@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