pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Peter Wainaina <petwah17@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: PGBOUNCER FAILOVER AND HIGH AVAILABILITY
Date: Mon, 18 May 2020 08:22:32 +0200
Message-ID: <9558122d82fc8fa0215c3d8861d59774f654c0f4.camel@cybertec.at> (raw)
In-Reply-To: <CAEEbwbfmAwC86GnMrS5Tw_CBThCvMspb04Pw8GscJvA18XDEww@mail.gmail.com>
References: <CAEEbwbfmAwC86GnMrS5Tw_CBThCvMspb04Pw8GscJvA18XDEww@mail.gmail.com>

On Fri, 2020-05-15 at 23:56 -0400, Peter Wainaina wrote:
> Hello hope you well ,want to implement the below:
>  a) Pg-bouncer to detect a promoted standby database automatically
>  b) High availability by having more than pg-bouncer

That is not pgBounder's job.

For high availability, run a pg_bouncer on each standby.

Use libpg's HA features to make the client connect to the right one:

"host=host1,host2 port=port1,port2 target_session_attrs=read-write"

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (2+ messages)

Message-ID: <9558122d82fc8fa0215c3d8861d59774f654c0f4.camel@cybertec.at>
Permalink:  ../9558122d82fc8fa0215c3d8861d59774f654c0f4.camel@cybertec.at/
Also on:    postgresql.org/message-id/9558122d82fc8fa0215c3d8861d59774f654c0f4.camel@cybertec.at

 · 

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-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, petwah17@gmail.com
  Subject: Re: PGBOUNCER FAILOVER AND HIGH AVAILABILITY
  In-Reply-To: <9558122d82fc8fa0215c3d8861d59774f654c0f4.camel@cybertec.at>
  References: <CAEEbwbfmAwC86GnMrS5Tw_CBThCvMspb04Pw8GscJvA18XDEww@mail.gmail.com> <9558122d82fc8fa0215c3d8861d59774f654c0f4.camel@cybertec.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