Skip to content
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

Expose clients maxwait time in SHOW CLIENTS response via admin #639

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

calvinhughes
Copy link
Contributor

Displays the maxwait via maxwait_seconds and maxwait_us columns for each client. This can be used to track down the wait time per client in a case where the overall pool stats shows increased waiting time.

The maxwait_us value is configured as a remainder of the total maxwait alongside the maxwait_seconds to match how we display it for the overall pool wait time.

@calvinhughes calvinhughes changed the title Expose clients maxwait time in SHOW CLIENTS response via PgCat admin Expose clients maxwait time in SHOW CLIENTS response via admin Nov 13, 2023
Displays the maxwait via maxwait_seconds and maxwait_us columns for each client that can be used to track down the wait time per client in a case where the overall pool stats shows waiting time. The maxwait_us, similar to the pool stats setup, is configured to display as a remainder alongside the maxwait_seconds.
@calvinhughes calvinhughes force-pushed the expose-maxwait-clients-admin branch from f7705f4 to 5f6a5b3 Compare November 13, 2023 11:01
src/admin.rs Outdated Show resolved Hide resolved
@levkk
Copy link
Contributor

levkk commented Nov 13, 2023

LGTM, thank you!

@levkk levkk merged commit 998cc16 into postgresml:main Nov 13, 2023
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