On 2020-02-17 11:42, Anjul Tyagi wrote:
> we are using PgBouncer for connection pooling, now all are application
> is connecting database via PgBouncer. However I need suggestion, if some
> how VM goes down or something goes wrong with PgBouncer, how can we
> handle that situation. We observe that currently its a single point of
> failure for all application if PgBouncer goes down.
>
> Is there any kind of load balancer or replicate the PgBouncer ti manage
> the high availability?
A typical approach is to run several pgbouncer instances on separate
hosts and use a TCP/IP-level load balancer (e.g., hardware load balancer
or HAProxy) to route traffic.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services