From: Brent Wood <pcreso@yahoo.com>
To: Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>
To: Zahir Lalani <ZahirLalani@oliver.agency>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: RE: Multi-master replication
Date: Sat, 14 Aug 2021 03:27:43 +0000 (UTC)
Message-ID: <579706705.466018.1628911663610@mail.yahoo.com> (raw)
In-Reply-To: <XXPRRPUL2852VEIzfDrMacDJiPQKYLJayTXq6jTycH3jlRuj1NXuYuYXB7HtoBXJUGquP0qv56QX2xb_TQEKRdgOjDj43GtghB_BnWTTH3M=@protonmail.ch>
References: <DB9P251MB0091B4610EFBBBEDEEDAF3BCA7FA9@DB9P251MB0091.EURP251.PROD.OUTLOOK.COM>
<u13RKkbT2qJqho2kimhLGIBjXWYF8ztHM3XzRCjQh4j5QNlHNp8awT6HzBF7nK2K0L9nMid0kcIYsAUSZ-9a4s1gJOt6vNn4aSpyH540Vf0=@protonmail.ch>
<DB9P251MB0091CF7B5A3605F4B3B6296CA7FA9@DB9P251MB0091.EURP251.PROD.OUTLOOK.COM>
<XXPRRPUL2852VEIzfDrMacDJiPQKYLJayTXq6jTycH3jlRuj1NXuYuYXB7HtoBXJUGquP0qv56QX2xb_TQEKRdgOjDj43GtghB_BnWTTH3M=@protonmail.ch>
BDS
Only using the free v1.0...
Sent from Yahoo Mail on Android
On Sat, 14 Aug 2021 at 2:07, Laura Smith<n5d9xq3ti233xiyif2vp@protonmail.ch> wrote: ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, August 13th, 2021 at 12:35 PM, Zahir Lalani <ZahirLalani@oliver.agency> wrote:
> Confidential
>
> Thx Laura
>
> So here is the dilemma - everything in the cloud world tends toward horizontal scaling. We do that with PG using single master and multiple slaves. But we are write heavy and of course the load on the master is quite high. It does seem that multi-master has risks (everyone seems to talk about conflict resolution!) so I wonder whether the sensible route is simply to scale vertically on the master?
>
Scaling on the master remains a popular choice these days even in the trendy world of cloud and horizontal scaling. See, for example Let's Encrypt - admittedly a MySQL/InnoDB infrastructure, but still master/replica - https://letsencrypt.org/2021/01/21/next-gen-database-servers.html
I suppose (depending on the nature of your data), you could perhaps use sharding, so multiple master/slaves with data (and hence load) spread across. Most likely you would need something like Redis at the frontend to push clients in to the right shard.
Conflict resolution (whether due to split brain or otherwise) is a big worry of mine with multi-master setups. The Googles and Facebook's of this world seem to be solving the problem on the basis of having super precise time sync setup on their database servers and use high-resolution timestamps to act as tie-break arbitrator. But of course that comes with significant expense as it needs PTP infrastructure.
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: pcreso@yahoo.com, n5d9xq3ti233xiyif2vp@protonmail.ch, ZahirLalani@oliver.agency
Subject: Re: Multi-master replication
In-Reply-To: <579706705.466018.1628911663610@mail.yahoo.com>
References: <DB9P251MB0091B4610EFBBBEDEEDAF3BCA7FA9@DB9P251MB0091.EURP251.PROD.OUTLOOK.COM> <u13RKkbT2qJqho2kimhLGIBjXWYF8ztHM3XzRCjQh4j5QNlHNp8awT6HzBF7nK2K0L9nMid0kcIYsAUSZ-9a4s1gJOt6vNn4aSpyH540Vf0=@protonmail.ch> <DB9P251MB0091CF7B5A3605F4B3B6296CA7FA9@DB9P251MB0091.EURP251.PROD.OUTLOOK.COM> <XXPRRPUL2852VEIzfDrMacDJiPQKYLJayTXq6jTycH3jlRuj1NXuYuYXB7HtoBXJUGquP0qv56QX2xb_TQEKRdgOjDj43GtghB_BnWTTH3M=@protonmail.ch> <579706705.466018.1628911663610@mail.yahoo.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