← Back to context

Comment by doctorpangloss

6 hours ago

Is a load balancer HA?

Not by itself if it's naive, but if it's able to assess target health and avoid degraded instances then it becomes a component in HA, the other being integrating an orchestrator for gracious recovery.

  • from their docs:

    > PgDog does not detect primary failure and will not call pg_promote(). It is expected that the databases are managed externally by another tool, like Patroni or AWS RDS, which handle replica promotion.

Combined with a replication strategy and automated health checks, a load balancer could direct traffic to a healthy instance automatically.

What happens when the load balancer fails?

  • HA has to be all the way through, in which case you might not need a load balancer because each client already connects to a separate server. If you do, then you can have one load balancer per client machine.