Skip to content

Slightly more light weight health check #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

drdrsh
Copy link
Collaborator

@drdrsh drdrsh commented Jul 29, 2022

Gitlab folks updated Rails connection health check to be ; instead of SELECT 1 because the empty query skips the query planner which makes the health check a tad bit easier on the database. Gitlab PR, Rails PR

Rails health checks are probably much more expensive given we run orders of magnitude more Rails processes than Pgcat processes. Nevertheless, I don't think it hurts to make the health checks less expensive.

@drdrsh drdrsh marked this pull request as ready for review July 29, 2022 18:50
@levkk levkk merged commit 48cff1f into postgresml:main Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants