Remix.run Logo
doctorpangloss 3 hours ago

Is a load balancer HA?

gchamonlive 2 hours ago | parent | next [-]

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.

doctorpangloss 2 hours ago | parent [-]

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.

nikolatt an hour ago | parent [-]

Why the snark comment? The PgDog project has been around for a while, it's not vibe coded.

doctorpangloss 41 minutes ago | parent [-]

okay, it does appear that the LLM didn't write any of this. i guess the simple answer is that it is not HA.

dev-ns8 2 hours ago | parent | prev | next [-]

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

dotancohen an hour ago | parent | prev [-]

What happens when the load balancer fails?

inigyou 2 minutes ago | parent [-]

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.