-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Add asynchronous metrics on MergeTree tables data volume #17639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks okay in the rest of it. Although I am a bit uneasy on changing MergeTreeData::getTotalActiveSizeInBytes()
and two others b/c they might lose their guarantees of returning consistent values. Let us see how it plays out.
There is something wrong with |
Looks ok now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
But we should keep an eye on the behavior of count()
since it uses MergeTreeData::getTotalActiveSizeInRows()
under the hood, and the method has changed its consistency guarantees with this PR.
All of the failed performance tests are due to "Unexpected Query Duration" and that's irrelevant to this PR |
Avoid potential copy-construction of Settings
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add asynchronous metrics on total amount of rows, bytes and parts in MergeTree tables.
This fix #11714
Detailed description / Documentation draft:
Add metrics on total MergeTree Tables data volume into AsynchronousMetrics.