From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Real application clustering in postgres.
Date: Wed, 11 Mar 2020 00:21:17 +0100
Message-ID: <20200310232117.GB23156@hjp.at> (raw)
In-Reply-To: <2e3425a044cdc73ae67649dd674df569be55d84d.camel@cybertec.at>
References: <BY5PR01MB58436F3E3FCE8FD0CF73A29F9BE20@BY5PR01MB5843.prod.exchangelabs.com>
<1aa5a345543ea85b3e0e7d3021ed6b1cdc04e66c.camel@cybertec.at>
<a3ba6d89-99cd-6344-28f3-427d60a738ef@gmail.com>
<29d192b7b0b198b5e1253fac35e7654331614053.camel@cybertec.at>
<20200308201316.GD22585@hjp.at>
<2e3425a044cdc73ae67649dd674df569be55d84d.camel@cybertec.at>
On 2020-03-09 09:57:37 +0100, Laurenz Albe wrote:
> On Sun, 2020-03-08 at 21:13 +0100, Peter J. Holzer wrote:
> > But to be fair, a master/slave setup a la patroni isn't immune against
> > "writing junk" either: Not on the hardware level (either of the nodes
> > may have faulty hardware, and you may not notice it until too late), and
> > more importantly, not on the software level. An erroneus DML statement
> > (because of a bug in the application, or because the user/admin made a
> > mistake) will cause the same wrong data to be distributed to all nodes
> > (of course this also applies to RAC).
>
> Of course, nobody debates that.
>
> A high-availability solution only protects you from certain, well-defined
> kinds of problems, usually related to hardware.
Right. And enterprise class SAN storage does this: It protects you from
failure of a single disk, a single cable, a single controller. Very
often you can physically spread out the components so that loss of a
whole rack (or server room) wouldn't affect availability. There are of
course limits: When a message sent over a single cable is corrupted in a
way that the checksum doesn't catch, corrupted data may be stored. But
then if data in RAM is corrupted that ECC doesn't catch, the same will
happen. A Patroni-based cluster isn't free of single points of failure
either.
So I don't buy the argument "X isn't a high availability solution
because it uses shared storage". While I have seen expensive SAN boxes
fail, I've also managed to wreck Patroni clusters. I'm not at all
convinced that the availability of a Patroni cluster is higher than that
of a failover cluster using shared storage.
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: hjp-pgsql@hjp.at
Subject: Re: Real application clustering in postgres.
In-Reply-To: <20200310232117.GB23156@hjp.at>
References: <BY5PR01MB58436F3E3FCE8FD0CF73A29F9BE20@BY5PR01MB5843.prod.exchangelabs.com> <1aa5a345543ea85b3e0e7d3021ed6b1cdc04e66c.camel@cybertec.at> <a3ba6d89-99cd-6344-28f3-427d60a738ef@gmail.com> <29d192b7b0b198b5e1253fac35e7654331614053.camel@cybertec.at> <20200308201316.GD22585@hjp.at> <2e3425a044cdc73ae67649dd674df569be55d84d.camel@cybertec.at> <20200310232117.GB23156@hjp.at>
* 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