Skip to content

[Question] - Best way to check pool health? #3208

Description

@WoodyWoodsta

Running our client in Kubernetes, we'd like to provide a readiness endpoint which can report whether or not it is ready to accept connections. This will be based on whether we know to have a healthy connection with the DB.

Is there a recommended way to check for the health of a pg pool? Is this as simple as checking to see if there is at least 1 connection in the pool, or would it require something different?

We'd prefer not to have to perform a query to make this check, but will resort to this approach if there is no reliable alternative.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions