pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Geographical multi-master replication
7+ messages / 4 participants
[nested] [flat]

* Geographical multi-master replication
@ 2019-01-24 23:02  Ruben Rubio Rey <tk421.1@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Ruben Rubio Rey @ 2019-01-24 23:02 UTC (permalink / raw)
  To: pgsql-general

Hi Everybody,

I am currently working with a client that has requirements for
geographically dispersed multi-master replication.

The current solution that we have in place is the BDR 1.0.7, which is
asynchronous and eventually consistent and it is actually very close to
real time. So far we are managing a small cluster of three nodes and we are
very happy with this solution.

The problem is that the version for BDR 1.0.7, which has an implementation
for postgres 9.4, will be on end of live at the end of this year.
Unfortunately the paid solution is out of our budget, so we currently have
two options: find an alternative or remove the multi-region implementation.
We are currently looking for alternatives.

Reading the different replication options in PostgreSQL 11
<https://www.postgresql.org/docs/11/different-replication-solutions.html;,
it looks like there are two options that might be suitable:

1 - *Logical Replication*, which according to the documentation *Logical
replication doesn't require a particular server to be designated as a
master or a replica but allows data to flow in multiple directions. *It
should be suitable. The limitations
<https://www.postgresql.org/docs/11/logical-replication-restrictions.html;
are OK for us, however there is no such thing as conflict resolution
<https://www.postgresql.org/docs/11/logical-replication-conflicts.html;. If
there is a conflict, the replication just stops. In our application
(currently replicated using BDR), we have a very small amount of conflicts,
and when conflict happens they are harmless.

What do you think about this solution for geographically dispersed
multi-master replication ?
Is there any configuration options for the conflict resolution in the
Logical Replication ?

2 - *Asynchronous Multimaster Replication* - For example by using Bucardo.
Does anybody has experience for using Bucardo for Asynchronous Multimaster
Replication ? Would be suitable for geographically dispersed
infrastructures ?

Is there any other option available that I might be missing ?

Thanks in advance,
Ruben

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Geographical multi-master replication
@ 2019-01-25 05:10  Jeremy Finzel <finzelj@gmail.com>
  parent: Ruben Rubio Rey <tk421.1@gmail.com>
  0 siblings, 2 replies; 7+ messages in thread

From: Jeremy Finzel @ 2019-01-25 05:10 UTC (permalink / raw)
  To: Ruben Rubio Rey <tk421.1@gmail.com>; +Cc: pgsql-general

>
> The problem is that the version for BDR 1.0.7, which has an implementation
> for postgres 9.4, will be on end of live at the end of this year.
> Unfortunately the paid solution is out of our budget, so we currently have
> two options: find an alternative or remove the multi-region implementation.
> We are currently looking for alternatives.
>

You are missing all of the alternatives here.  Why don't you consider
upgrading from postgres 9.4 and with it to a supported version of BDR?
There is nothing better you can do to keep your infrastructure up to date,
performant, secure, and actually meet your multi-master needs than to
upgrade to a newer version of postgres which does have BDR support.

Even "stock" postgres 9.4 is set for end of life soon.  Upgrade!

Thanks,
Jeremy

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Geographical multi-master replication
@ 2019-01-25 05:45  Andreas Kretschmer <andreas@a-kretschmer.de>
  parent: Jeremy Finzel <finzelj@gmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Andreas Kretschmer @ 2019-01-25 05:45 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org



Am 25.01.19 um 06:10 schrieb Jeremy Finzel:
>
>     The problem is that the version for BDR 1.0.7, which has an
>     implementation for postgres 9.4, will be on end of live at the end
>     of this year. Unfortunately the paid solution is out of our
>     budget, so we currently have two options: find an alternative or
>     remove the multi-region implementation. We are currently looking
>     for alternatives.
>
>
> You are missing all of the alternatives here.  Why don't you consider 
> upgrading from postgres 9.4 and with it to a supported version of 
> BDR?  There is nothing better you can do to keep your infrastructure 
> up to date, performant, secure, and actually meet your multi-master 
> needs than to upgrade to a newer version of postgres which does have 
> BDR support.
>
> Even "stock" postgres 9.4 is set for end of life soon. Upgrade!

ACK!

Sure, you have to pay for a support contract, and this isn't for free, 
but you will get a first-class support for BDR. If you really needs a 
worldwide distributed multi-master solution you should be able to buy that.


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com





^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: [External] Re: Geographical multi-master replication
@ 2019-01-25 06:12  Vijaykumar Jain <vjain@opentable.com>
  parent: Andreas Kretschmer <andreas@a-kretschmer.de>
  0 siblings, 0 replies; 7+ messages in thread

From: Vijaykumar Jain @ 2019-01-25 06:12 UTC (permalink / raw)
  To: Andreas Kretschmer <andreas@a-kretschmer.de>; +Cc: pgsql-general@lists.postgresql.org

I do not know the use case but we did try the following.
We had a small requirement wrt some regional data written to tables but
needs to be available to all regions.
We made use of logical replication to replicate/publish  each local table
to all the other regions ( like a many to many)
In theory, if there were no network delay all regions will have all the
data at any point of time.
If there is a wan outage b/w A and B,
They both still talk to C and c can be considered the region with more
correct data, till we have others recovered.

basically given we had disjoint data, we were able to make use of this
feature.

And it it definitely not for HA, there are other options for it.

On Fri, 25 Jan 2019 at 11:16 AM Andreas Kretschmer <andreas@a-kretschmer.de>
wrote:

>
>
> Am 25.01.19 um 06:10 schrieb Jeremy Finzel:
> >
> >     The problem is that the version for BDR 1.0.7, which has an
> >     implementation for postgres 9.4, will be on end of live at the end
> >     of this year. Unfortunately the paid solution is out of our
> >     budget, so we currently have two options: find an alternative or
> >     remove the multi-region implementation. We are currently looking
> >     for alternatives.
> >
> >
> > You are missing all of the alternatives here.  Why don't you consider
> > upgrading from postgres 9.4 and with it to a supported version of
> > BDR?  There is nothing better you can do to keep your infrastructure
> > up to date, performant, secure, and actually meet your multi-master
> > needs than to upgrade to a newer version of postgres which does have
> > BDR support.
> >
> > Even "stock" postgres 9.4 is set for end of life soon. Upgrade!
>
> ACK!
>
> Sure, you have to pay for a support contract, and this isn't for free,
> but you will get a first-class support for BDR. If you really needs a
> worldwide distributed multi-master solution you should be able to buy that.
>
>
> Regards, Andreas
>
> --
> 2ndQuadrant - The PostgreSQL Support Company.
> www.2ndQuadrant.com
>
>
> --

Regards,
Vijay

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Geographical multi-master replication
@ 2019-01-28 21:32  Ruben Rubio Rey <tk421.1@gmail.com>
  parent: Jeremy Finzel <finzelj@gmail.com>
  1 sibling, 1 reply; 7+ messages in thread

From: Ruben Rubio Rey @ 2019-01-28 21:32 UTC (permalink / raw)
  To: Jeremy Finzel <finzelj@gmail.com>; +Cc: pgsql-general

Hi Jeremy,

> Why don't you consider upgrading from postgres 9.4 and with it to a
supported version of BDR?  There is nothing better you can do to keep your
infrastructure up to date, performant, secure, and actually meet your
multi-master needs than to upgrade to a newer version of postgres which
does have BDR support.

This is something that we have definitely thought of. That would be a good
alternative but I have an strong feeling that the business won't be willing
to pay for it. The cost of the paid BDR version, in comparison with the
current fixed expenses of the infrastructure, are just too large. That's
why we are researching alternatives.


On Fri, Jan 25, 2019 at 4:10 PM Jeremy Finzel <finzelj@gmail.com> wrote:

> The problem is that the version for BDR 1.0.7, which has an implementation
>> for postgres 9.4, will be on end of live at the end of this year.
>> Unfortunately the paid solution is out of our budget, so we currently have
>> two options: find an alternative or remove the multi-region implementation.
>> We are currently looking for alternatives.
>>
>
> You are missing all of the alternatives here.  Why don't you consider
> upgrading from postgres 9.4 and with it to a supported version of BDR?
> There is nothing better you can do to keep your infrastructure up to date,
> performant, secure, and actually meet your multi-master needs than to
> upgrade to a newer version of postgres which does have BDR support.
>
> Even "stock" postgres 9.4 is set for end of life soon.  Upgrade!
>
> Thanks,
> Jeremy
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Geographical multi-master replication
@ 2019-01-28 21:47  Jeremy Finzel <finzelj@gmail.com>
  parent: Ruben Rubio Rey <tk421.1@gmail.com>
  0 siblings, 1 reply; 7+ messages in thread

From: Jeremy Finzel @ 2019-01-28 21:47 UTC (permalink / raw)
  To: Ruben Rubio Rey <tk421.1@gmail.com>; +Cc: pgsql-general

On Mon, Jan 28, 2019 at 3:32 PM Ruben Rubio Rey <tk421.1@gmail.com> wrote:

> Hi Jeremy,
>
> > Why don't you consider upgrading from postgres 9.4 and with it to a
> supported version of BDR?  There is nothing better you can do to keep your
> infrastructure up to date, performant, secure, and actually meet your
> multi-master needs than to upgrade to a newer version of postgres which
> does have BDR support.
>
> This is something that we have definitely thought of. That would be a good
> alternative but I have an strong feeling that the business won't be willing
> to pay for it. The cost of the paid BDR version, in comparison with the
> current fixed expenses of the infrastructure, are just too large. That's
> why we are researching alternatives.
>

When I said “supported version” of BDR, I mostly meant a newer version of
Postgres. I know you have to decide on getting support BDR but regardless
of what route you take, part of your plan needs to be > 9.4 :).

Thanks,
Jeremy

^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Geographical multi-master replication
@ 2019-01-28 23:29  Ruben Rubio Rey <tk421.1@gmail.com>
  parent: Jeremy Finzel <finzelj@gmail.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Ruben Rubio Rey @ 2019-01-28 23:29 UTC (permalink / raw)
  To: Jeremy Finzel <finzelj@gmail.com>; +Cc: pgsql-general

> When I said “supported version” of BDR, I mostly meant a newer version of
Postgres. I know you have to decide on getting support BDR but regardless
of what route you take, part of your plan needs to be > 9.4 :).

I agree with you. We will be upgrading to the latest postgres version.

On Tue, Jan 29, 2019 at 8:48 AM Jeremy Finzel <finzelj@gmail.com> wrote:

>
> On Mon, Jan 28, 2019 at 3:32 PM Ruben Rubio Rey <tk421.1@gmail.com> wrote:
>
>> Hi Jeremy,
>>
>> > Why don't you consider upgrading from postgres 9.4 and with it to a
>> supported version of BDR?  There is nothing better you can do to keep your
>> infrastructure up to date, performant, secure, and actually meet your
>> multi-master needs than to upgrade to a newer version of postgres which
>> does have BDR support.
>>
>> This is something that we have definitely thought of. That would be a
>> good alternative but I have an strong feeling that the business won't be
>> willing to pay for it. The cost of the paid BDR version, in comparison with
>> the current fixed expenses of the infrastructure, are just too large.
>> That's why we are researching alternatives.
>>
>
> When I said “supported version” of BDR, I mostly meant a newer version of
> Postgres. I know you have to decide on getting support BDR but regardless
> of what route you take, part of your plan needs to be > 9.4 :).
>
> Thanks,
> Jeremy
>

^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2019-01-28 23:29 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 23:02 Geographical multi-master replication Ruben Rubio Rey <tk421.1@gmail.com>
2019-01-25 05:10 ` Jeremy Finzel <finzelj@gmail.com>
2019-01-25 05:45   ` Andreas Kretschmer <andreas@a-kretschmer.de>
2019-01-25 06:12     ` Vijaykumar Jain <vjain@opentable.com>
2019-01-28 21:32   ` Ruben Rubio Rey <tk421.1@gmail.com>
2019-01-28 21:47     ` Jeremy Finzel <finzelj@gmail.com>
2019-01-28 23:29       ` Ruben Rubio Rey <tk421.1@gmail.com>

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