pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dimitri Maziuk <dmaziuk@bmrb.wisc.edu>
To: pgsql-general@lists.postgresql.org
Subject: Re: increasing HA
Date: Wed, 5 Sep 2018 12:32:42 -0500
Message-ID: <fd28cd15-6ef0-0dda-d3f1-25caa9e7c430@bmrb.wisc.edu> (raw)
In-Reply-To: <CAN_ctnh8sXNukEEAHWaLGzBwJCXY=FLR2n2DVFkQxVVckXRwEg@mail.gmail.com>
References: <CAN_ctnh=Pg6nGDtwxv+qJdpF_yHsJFZx1CcA0YSTgN8nvpnnrw@mail.gmail.com>
	<3f3568458e7a4dcdbee781b272900183@PCYINTPEXMU001.NEOPROD.EDF.FR>
	<20180905113835.5abbc248@firost>
	<CAN_ctnj6eeb1C=6A6QoWHSUgd_hq5dnatLb_sSeikvhzTaPWKQ@mail.gmail.com>
	<20180905094223.acdb3411826e5317d7853020@bmrb.wisc.edu>
	<CAN_ctnj1jrABJUdwgAfLWhwn6nkWPa1=tKKD3+cDLnOPcALaGQ@mail.gmail.com>
	<20180905113904.f4db8f6b38e6f0dbcd0bad15@bmrb.wisc.edu>
	<CAN_ctnh8sXNukEEAHWaLGzBwJCXY=FLR2n2DVFkQxVVckXRwEg@mail.gmail.com>

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.

-- 
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

Attachments:

  signature.asc (application/pgp-signature, 189B) download

view thread (15+ messages)

Message-ID: <fd28cd15-6ef0-0dda-d3f1-25caa9e7c430@bmrb.wisc.edu>
Permalink:  ../fd28cd15-6ef0-0dda-d3f1-25caa9e7c430@bmrb.wisc.edu/
Also on:    postgresql.org/message-id/fd28cd15-6ef0-0dda-d3f1-25caa9e7c430@bmrb.wisc.edu

 · 

reply

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: dmaziuk@bmrb.wisc.edu
  Subject: Re: increasing HA
  In-Reply-To: <fd28cd15-6ef0-0dda-d3f1-25caa9e7c430@bmrb.wisc.edu>
  References: <CAN_ctnh=Pg6nGDtwxv+qJdpF_yHsJFZx1CcA0YSTgN8nvpnnrw@mail.gmail.com> <3f3568458e7a4dcdbee781b272900183@PCYINTPEXMU001.NEOPROD.EDF.FR> <20180905113835.5abbc248@firost> <CAN_ctnj6eeb1C=6A6QoWHSUgd_hq5dnatLb_sSeikvhzTaPWKQ@mail.gmail.com> <20180905094223.acdb3411826e5317d7853020@bmrb.wisc.edu> <CAN_ctnj1jrABJUdwgAfLWhwn6nkWPa1=tKKD3+cDLnOPcALaGQ@mail.gmail.com> <20180905113904.f4db8f6b38e6f0dbcd0bad15@bmrb.wisc.edu> <CAN_ctnh8sXNukEEAHWaLGzBwJCXY=FLR2n2DVFkQxVVckXRwEg@mail.gmail.com> <fd28cd15-6ef0-0dda-d3f1-25caa9e7c430@bmrb.wisc.edu>

* 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