Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jBoBl-0005SI-PZ for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2020 23:21:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBoBi-0004aL-L3 for pgsql-general@arkaria.postgresql.org; Tue, 10 Mar 2020 23:21:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBoBi-0004aE-7l for pgsql-general@lists.postgresql.org; Tue, 10 Mar 2020 23:21:26 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBoBc-0004gT-QD for pgsql-general@lists.postgresql.org; Tue, 10 Mar 2020 23:21:24 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 913D52063; Wed, 11 Mar 2020 00:21:17 +0100 (CET) Date: Wed, 11 Mar 2020 00:21:17 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Real application clustering in postgres. Message-ID: <20200310232117.GB23156@hjp.at> References: <1aa5a345543ea85b3e0e7d3021ed6b1cdc04e66c.camel@cybertec.at> <29d192b7b0b198b5e1253fac35e7654331614053.camel@cybertec.at> <20200308201316.GD22585@hjp.at> <2e3425a044cdc73ae67649dd674df569be55d84d.camel@cybertec.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline In-Reply-To: <2e3425a044cdc73ae67649dd674df569be55d84d.camel@cybertec.at> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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). >=20 > Of course, nobody debates that. >=20 > 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.=20 hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --VrqPEDrXMn8OVzN4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl5oIOIACgkQ8g5IURL+ KF2PLw//dzySs6MR1dMvy0Osm7FJ+JQW4hptFj8u4vQ/WJabgBkhdMZSD/XG4wmw Z22aZCF1goiIG3x7Cwwy91np14WPSN9uKLeoTiaP6KTV7kB8ixky2e1KMJLsan4c sDoSJmyn2Mq6wzndgTyq/brxYDANYmY7oZlZd1nyKwMTYU8KEW5H+rHaM06fSq// MShXek4sOsRjpzRiwMB8AvmSsMAd/tOOFgIs6LYcd66tjiJCCq0bsMc9vaV3aIaH 58Im4SfV6GWaDd9pctaHZmwCyZp/XvTf1n2cWatrUSyVQaV01zQaTcgeP1XBLBm+ UHfAbN6KXWZNcYkY7FuaOyqq9jEQNN5k0NPoOZF9nW/lixNrpw1eqwXcxUXnGWkd oHVu5MAFljPK837rsCqpyocn3MV1jS51Cn3BmMqgdMjqA2G4Tgy9AsCUPwSgIfhu 32D9f+cBW3MIh+wv/lAJROHSJM+8ImNJbhcD6I3bj2IeL1Z9UZGP1VnI2gLLQePL t9Q5+cHc5QNZAcpCbBZBpWKZ1WQOlz1RieN1tizTm4nq3T9Sd6vqppGuyrnZ4Lyc 2gQ67zV4dY7IZXZBVKboQeEBDQPj2SbsbHpPo9paNgMfSXYVU2ivrXDZ/PcunKdF AKPLnAKVjP152qnAtYm7zRhiTmUJ4GE7r2Zl68CrivRiaZpK/Zg= =DZ7k -----END PGP SIGNATURE----- --VrqPEDrXMn8OVzN4--