pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lazaro Garcia <lazaro3487@gmail.com>
To: 'Robin LUCBERNET' <rlucbernet@maltem.com>
To: pgsql-admin@postgresql.org
Subject: Re: How do you manage cluster replication and failover ?
Date: Fri, 7 Apr 2017 09:26:41 -0400
Message-ID: <000e01d2afa2$98f71ca0$cae555e0$@gmail.com> (raw)
In-Reply-To: <AMXPR05MB216411C9A2BEE861B13C856AB0D0@AMXPR05MB216.eurprd05.prod.outlook.com>
References: <AMXPR05MB216411C9A2BEE861B13C856AB0D0@AMXPR05MB216.eurprd05.prod.outlook.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

You can use repmgr because it performs automatic failover, promotes a master
mores closer to replica and follows other slaves to new master.

 

 

Then pgpool detects the new master promoted by repmgr.

 

Regards.

 

De: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] En nombre de Robin LUCBERNET
Enviado el: jueves, 6 de abril de 2017 05:18 a. m.
Para: pgsql-admin@postgresql.org
Asunto: [ADMIN] How do you manage cluster replication and failover ?

 

Hello,

 

We are currently trying to setup a multi hosts databases cluster with goals:
 * replication (no data-loss is "required", replication timing do not needs
to be instant)
 * failover
 * load-balancing (bonus)

 

We tried:
 * synchronious replication (pgpool replication mode) + load-balancing
(pgpool) : very interesing as we can theorically failover on any node at any
moment. But even after several configuraation tweeks, we never succeed
getting good write performance.
 * asynchronious replication (postgres 9.6 streaming replication) : good
write performance, good replication timings (< 1 second for small
transactions). We could loadbalance select requests using pgpool.

 

How do you manage your postgresql clusters ? Do you use pgpool ? pgbouncer ?
other ?
How do you manage to single access point ? usign pgpool ? pgbouncer ?
Do you use streaming replication ? WAL archiving ? How do you handle to
automatic failover ?

 

Robin

view thread (13+ messages)  latest in thread

Message-ID: <000e01d2afa2$98f71ca0$cae555e0$@gmail.com>
Permalink:  ../000e01d2afa2$98f71ca0$cae555e0$@gmail.com/
Also on:    postgresql.org/message-id/000e01d2afa2$98f71ca0$cae555e0$@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: lazaro3487@gmail.com, rlucbernet@maltem.com
  Subject: Re: How do you manage cluster replication and failover ?
  In-Reply-To: <000e01d2afa2$98f71ca0$cae555e0$@gmail.com>

* 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