Re: PGBOUNCER FAILOVER AND HIGH AVAILABILITY - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: PGBOUNCER FAILOVER AND HIGH AVAILABILITY
Date
Msg-id 9558122d82fc8fa0215c3d8861d59774f654c0f4.camel@cybertec.at
Whole thread Raw
In response to PGBOUNCER FAILOVER AND HIGH AVAILABILITY  (Peter Wainaina <petwah17@gmail.com>)
List pgsql-admin
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




pgsql-admin by date:

Previous
From: Holger Jakobs
Date:
Subject: Re: pgadmin4 container install: volume mapping not working
Next
From: Raj kumar
Date:
Subject: GSSAPI encryption support