Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEkLX-0002WR-5K for pgsql-general@arkaria.postgresql.org; Sat, 14 Aug 2021 03:28:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mEkKy-0007W6-Ap for pgsql-general@arkaria.postgresql.org; Sat, 14 Aug 2021 03:27:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEkKx-0007Vy-Lc for pgsql-general@lists.postgresql.org; Sat, 14 Aug 2021 03:27:56 +0000 Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mEkKu-0000cH-NT for pgsql-general@lists.postgresql.org; Sat, 14 Aug 2021 03:27:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1628911670; bh=XgWaMnh8oirmgaMqDrEqrpMzQ8BGKerSVmIZMcdFByg=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=Sg9NEjmKc+ClpmWproKnxJtmqgfivVcxgu0HmrVmjOcqwYvvp/Z+mLr78HZM3ZPCC304Q4/lHD5xCAMUqJcO+vqWUmtdkiAjX/hAO0GWAn0C4CPEBhtxHg2aKMdtPynJLW8yCAYOb8kBw/+J5Qrf3fy9FpY0e61MLmXrxpZz1DxlOVh3S3moDmd1GAqjyDXi1vwQ9VaVC//gX1+4z9fQCkw45peGH4ShCEY/qlP+qM2GeYnq03Y0Hg5pki9tIyV2Cjkvl98JJHGf7OEoIOwJEmsdCTrJk4Cr9O/tND9xEppA01zCiinGhEGSUdhNdRLY1gPVhPONtP2Mb24ax/GPtg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1628911670; bh=PK3OZnLuNY/4+6rbPV+rFErdh/Qu5gKOGHENI+SRyHR=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=JOhyN6IUGcAoLNTxOcwrI3wsqOOleA28GaeeonDJs67hxVDmXq5a+tU1DO5xyoEOgyyRxsXMHLysV2aO9GdMbJTwkeiyNgej+HHWWsJnsHs+R+41fZ9gbQrGTvr+fk6fJEd/jWgIOVPAOtu6ZmKblaasPMtVzf07+3KjSs6JrzL+ysUrlz62Cv02ZlewdC5b+To+js6Lf7NxsJdRs2LnS65A4OO486h5Zghov8wl5EVYF5T1Qgeu+6fS2wJLQS6/py35AMRttRmdjBmVuvtQYx9Cy1X5McQKD/MZvfumufvEyYmEariRcD5Sj4sn1tMa4ekzrgsDUaxKHbm8omCa2w== X-YMail-OSG: VvBc4okVM1ml3vo14IgKr6WTf9IpkMZsCTdn6CZzu4L1Toi5gQWKoHMkA.pTwgX zSqf_RK5d.U8vF_5PZU56gVMT4pYPfX4CyP466zFfFiTpKBaRIyINljTxX9clBeZQoR9TTn5HQo1 1PLBVYWzMiK7JuFnG.A9.eggXM8HAIRWdPHwAtwGroQO6AJb52VZJ8bcJE199qh_rM.d8gwvUJtM NR3N0KlSG5_ZTamY9PhhRjOWCf_fSJUZJe.ZpXBKE2yrGbo8m94p_OnjVc6pHN9O4RQmN7d4bUGp KhacbwBNw2n.v2._kDW8O1gVN87u9Z1XWpUkPrtHBZ4evc6za6XazSF6RHML1od2l7yjYFeEsLCB Z76z3x8RCyqRThqmJC.mzbk5J6MvEskwRyPU8UBr8oIx7DbIyaI.68lsWCCr6rdTlsz_8kBLTJQ5 wHPwYUjlwYH4kjC3jQiqUjjRCg7Le79tIwbwpCr2tBNtIXYSSCBkVVCbIKwBdf9cr.s5Jb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onic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sat, 14 Aug 2021 03:27:50 +0000 Date: Sat, 14 Aug 2021 03:27:43 +0000 (UTC) From: Brent Wood Reply-To: Brent Wood To: Laura Smith , Zahir Lalani Cc: "pgsql-general@lists.postgresql.org" Message-ID: <579706705.466018.1628911663610@mail.yahoo.com> In-Reply-To: References: Subject: RE: Multi-master replication MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_466017_888457676.1628911663609" X-Mailer: WebService/1.1.18850 YahooMailAndroidMobile Content-Length: 5425 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_466017_888457676.1628911663609 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable BDS Only using the free v1.0... Sent from Yahoo Mail on Android=20 =20 On Sat, 14 Aug 2021 at 2:07, Laura Smith wrote: =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80= =90 Original Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90= =E2=80=90 On Friday, August 13th, 2021 at 12:35 PM, Zahir Lalani wrote: > Confidential > > Thx Laura > > So here is the dilemma - everything in the cloud world tends toward horiz= ontal 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 conf= lict 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 trend= y world of cloud and horizontal scaling.=C2=A0 See, for example Let's Encry= pt - admittedly a MySQL/InnoDB infrastructure, but still master/replica - h= ttps://letsencrypt.org/2021/01/21/next-gen-database-servers.html I suppose (depending on the nature of your data), you could perhaps use sha= rding, so multiple master/slaves with data (and hence load) spread across.= =C2=A0 Most likely you would need something like Redis at the frontend to p= ush clients in to the right shard. Conflict resolution (whether due to split brain or otherwise) is a big worr= y of mine with multi-master setups.=C2=A0 The Googles and Facebook's of thi= s 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 timestam= ps to act as tie-break arbitrator.=C2=A0 But of course that comes with sign= ificant expense as it needs PTP infrastructure. =20 ------=_Part_466017_888457676.1628911663609 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable BDS

Only using the free v1.0...

<= div>On Sat, 14 Aug 2021 at 2:07, Laura Smith
<n5d9xq3ti233xiyi= f2vp@protonmail.ch> wrote:
=E2=80=90=E2=80= =90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Message =E2=80=90= =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90

On Friday, = August 13th, 2021 at 12:35 PM, Zahir Lalani <ZahirLalani@oliver.agency> wrote:

> Confidential
>
> T= hx Laura
>
> So here is the dilem= ma - everything in the cloud world tends toward horizontal scaling. We do t= hat 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 mult= i-master has risks (everyone seems to talk about conflict resolution!) so I= wonder whether the sensible route is simply to scale vertically on the mas= ter?

>


Scaling on the master remains a popular choice these days ev= en in the trendy world of cloud and horizontal scaling.  See, for exam= ple Let's Encrypt - admittedly a MySQL/InnoDB infrastructure, but still mas= ter/replica - https://letsencrypt.org/2= 021/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 a= cross.  Most likely you would need something like Redis at the fronten= d to push clients in to the right shard.

Conflict resolution (whether due to split brain or otherwise) is a big w= orry 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 prec= ise time sync setup on their database servers and use high-resolution times= tamps to act as tie-break arbitrator.  But of course that comes with s= ignificant expense as it needs PTP infrastructure.



------=_Part_466017_888457676.1628911663609--