Skip to content

[LB] Don't allow traffic on database until healthcheck passes #1309

Description

@levkk

PgDog version
v0.1.51

Description
When databases are added to pgdog.toml, PgDog creates the pool immediately and adds it to the load balancer, assuming those databases are reachable. If they are not, the clients will return errors temporarily while the load balancer banning logic kicks in. We can avoid this by running a health check first and only allow the database to serve traffic once it passes the initial check.

Configuration
Multiple databases, with role = "replica" or role = "auto".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions