Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxbfq-0005e6-LF for pgsql-general@arkaria.postgresql.org; Wed, 05 Sep 2018 17:33:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxbfo-0003OT-PG for pgsql-general@arkaria.postgresql.org; Wed, 05 Sep 2018 17:33:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fxbfo-0003OL-HL for pgsql-general@lists.postgresql.org; Wed, 05 Sep 2018 17:33:00 +0000 Received: from cowfish.bmrb.wisc.edu ([144.92.167.220] helo=mail.bmrb.wisc.edu) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fxbfg-00022y-Kk for pgsql-general@lists.postgresql.org; Wed, 05 Sep 2018 17:32:59 +0000 Received: from perch.bmrb.wisc.edu (perch.bmrb.wisc.edu [144.92.167.190]) by mail.bmrb.wisc.edu (Postfix) with ESMTP id 691F9FA0A67 for ; Wed, 5 Sep 2018 12:32:51 -0500 (CDT) Subject: Re: increasing HA To: pgsql-general@lists.postgresql.org References: <3f3568458e7a4dcdbee781b272900183@PCYINTPEXMU001.NEOPROD.EDF.FR> <20180905113835.5abbc248@firost> <20180905094223.acdb3411826e5317d7853020@bmrb.wisc.edu> <20180905113904.f4db8f6b38e6f0dbcd0bad15@bmrb.wisc.edu> From: Dimitri Maziuk Openpgp: preference=signencrypt Autocrypt: addr=dmaziuk@bmrb.wisc.edu; prefer-encrypt=mutual; keydata= xsDiBD52cmMRBACIczZQoabNLtkFKwP0QQNt4kyjVWslfQZsasB0fLqQYMXNnqCl1AE1Qdr4 6p67PfJg0bXwjVjtYYd4IEfSnkbf9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N9igPol93ywmA== Organization: BMRB Message-ID: Date: Wed, 5 Sep 2018 12:32:42 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="64shwLICfb5h6XzHVzsOy86iCLUryi4g0" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --64shwLICfb5h6XzHVzsOy86iCLUryi4g0 Content-Type: multipart/mixed; boundary="O4ot4X8kh00zoOnfsXKGIO8ZvPq4BZf56"; protected-headers="v1" From: Dimitri Maziuk To: pgsql-general@lists.postgresql.org Message-ID: Subject: Re: increasing HA References: <3f3568458e7a4dcdbee781b272900183@PCYINTPEXMU001.NEOPROD.EDF.FR> <20180905113835.5abbc248@firost> <20180905094223.acdb3411826e5317d7853020@bmrb.wisc.edu> <20180905113904.f4db8f6b38e6f0dbcd0bad15@bmrb.wisc.edu> In-Reply-To: --O4ot4X8kh00zoOnfsXKGIO8ZvPq4BZf56 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 09/05/2018 12:04 PM, Thomas Poty wrote: > I want to get : > Automatic failover (promoting a slave) > Automatic Routing traffic to master > Fencing in case of node failure. Why would you want to fence a node that's already failed? -- You want to fence off the master during the failover so it does not accept any more DB updates. Anyway, here's how we run: - we provide services to customers; customer-facing service access points is where we want to reduce downtime. - We buy decent quality hardware with redundant disks and power circuits. 99.9999% of the downtime is maintenance reboots. - We carefully partition or services so that most of them require read-only access. Those run off slaves. - The master is not even visible to the customers. Its downtime does not affect service availability. Obviously, this works because we can run read-only. If you need read-write on a public-facing database, the above won't work for you. --=20 Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu --O4ot4X8kh00zoOnfsXKGIO8ZvPq4BZf56-- --64shwLICfb5h6XzHVzsOy86iCLUryi4g0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iD8DBQFbkBNDxzG8ttqkbbgRAk8zAKDX5o9EydG3OJRXe7alkVNehXWQIACggDNk T26TnwKFx6ublMflW71KDD4= =Tsbx -----END PGP SIGNATURE----- --64shwLICfb5h6XzHVzsOy86iCLUryi4g0--