-
Notifications
You must be signed in to change notification settings - Fork 738
Capacity metrics #28314
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
Capacity metrics #28314
Conversation
|
🟢 |
935da10 to
0ba7668
Compare
0ba7668 to
e5c30ee
Compare
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
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.
Pull Request Overview
This PR introduces additional disk space metrics to provide more granular visibility into PDisk and VDisk capacity utilization. The changes rename existing fields to better reflect their purpose and add new metrics to distinguish between different types of space measurements.
- Renamed
OccupancytoNormalizedOccupancyandSpaceColortoCapacityAlertLevelto clarify their semantics - Added three new metrics:
VDiskSlotUtilization,VDiskFairPartFillPercent, andPDiskFillPercentto provide different perspectives on disk space usage - Updated tests to validate the new metrics with comprehensive assertions
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| ydb/core/protos/node_whiteboard.proto | Added new disk space metric fields to PDisk and VDisk state info messages |
| ydb/core/protos/blobstorage_disk.proto | Renamed existing fields and added new metric fields to VDisk and PDisk metrics messages |
| ydb/core/mind/hive/hive_ut.cpp | Updated test to use renamed NormalizedOccupancy field |
| ydb/core/mind/bscontroller/bsc.cpp | Updated references to use renamed fields NormalizedOccupancy and CapacityAlertLevel |
| ydb/core/blobstorage/vdisk/skeleton/skeleton_oos_tracker.cpp | Updated to use renamed NormalizedOccupancy field |
| ydb/core/blobstorage/pdisk/mock/pdisk_mock.cpp | Updated mock to use renamed field |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk_ut.cpp | Extended tests with comprehensive validation of all new metrics, fixed comment typos |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk_quota_record.h | Added const qualifier to ColorFlagLimit method |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk_keeper.h | Extended GetSpaceStatusFlags signature to support new metric output parameters |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.h | Extended GetStatusFlags signature to support new metric output parameters |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.cpp | Implemented calculation and reporting of new metrics in WhiteboardReport and CheckSpace |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk_color_limits.h | Added const qualifier to GetOccupancyForColor method |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk_chunk_tracker.h | Implemented calculation logic for new metrics, added const qualifiers, added GetOccupancyForColor helper |
| ydb/core/blobstorage/pdisk/blobstorage_pdisk.h | Added new metric fields to TEvCheckSpaceResult event structure |
| ydb/core/blobstorage/nodewarden/blobstorage_node_warden_ut.cpp | Added assertions to validate PDiskFillPercent field in tests |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
46f5950 to
afe61a8
Compare
8f18eec to
9b72331
Compare
13d8ebe to
044c232
Compare
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
044c232 to
e204220
Compare
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪ Ya make output | Test bloat | Test bloat
⚪ Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
Changelog category
Description for reviewers
Add capacity metrics to whiteboard according to RFC 164_capacity_metrics.md