Skip to content

Report inferred PDisk SlotCount in metrics #21115

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rosik
Copy link
Collaborator

@rosik rosik commented Jul 14, 2025

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

This PR includes two changes:

  1. Add inferred values of ExpectedSlotCount and SlotSizeInUnits to PDiskMetrics so it can be inspected with dstool (tested manually, missing unit-test)
  2. Respect explicit values provided in PDiskConfig (don't override them with inferred values) and test it

Copy link
Contributor

@Copilot Copilot AI left a 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 exposes inferred PDisk ExpectedSlotCount and SlotSizeInUnits in metrics, skips inference when explicit config is set, and updates tooling and tests to reflect these new fields.

  • Add SlotCount and SlotSizeInUnits to TPDiskMetrics in the proto definition.
  • Populate the new metrics in the PDisk whiteboard report and controller update.
  • Adjust node warden logic to respect explicit PDiskConfig, update unit tests, and enhance dstool output with metric fields.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ydb/core/protos/blobstorage_disk.proto Added two optional fields (SlotCount, SlotSizeInUnits) to metrics proto.
ydb/core/blobstorage/pdisk/blobstorage_pdisk_impl.cpp Populated new metrics fields in whiteboard and controller update.
ydb/core/blobstorage/nodewarden/node_warden_pdisk.cpp Skip inferring slot count when explicit config values are set.
ydb/core/blobstorage/nodewarden/blobstorage_node_warden_ut.cpp Updated CreatePDisk signature, modified existing test, and added a test for explicit config.
ydb/apps/dstool/lib/dstool_cmd_pdisk_list.py Show new metrics fields in pdisk list, falling back to config when metrics are absent.
Comments suppressed due to low confidence (1)

ydb/core/blobstorage/nodewarden/blobstorage_node_warden_ut.cpp:1026

  • The new test uses CUSTOM_UNIT_TEST, which may not be registered by the existing test suite. Use the standard Y_UNIT_TEST macro to ensure this test is discovered and executed.
    CUSTOM_UNIT_TEST(TestInferPDiskSlotCountExplicitConfig) {

Copy link

🟢 2025-07-14 16:41:33 UTC The validation of the Pull Request description is successful.

Copy link

github-actions bot commented Jul 14, 2025

2025-07-14 16:42:11 UTC Pre-commit check linux-x86_64-release-asan for 3c594b3 has started.
2025-07-14 16:42:24 UTC Artifacts will be uploaded here
2025-07-14 16:46:10 UTC ya make is running...
🟡 2025-07-14 19:30:24 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16452 15924 0 296 202 30

🟢 2025-07-14 19:31:55 UTC Build successful.

Copy link

github-actions bot commented Jul 14, 2025

2025-07-14 16:42:13 UTC Pre-commit check linux-x86_64-relwithdebinfo for 3c594b3 has started.
2025-07-14 16:42:26 UTC Artifacts will be uploaded here
2025-07-14 16:46:06 UTC ya make is running...
🟡 2025-07-14 18:44:11 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38921 36159 0 9 2704 49

2025-07-14 18:47:39 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-07-14 19:10:26 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
769 (only retried tests) 696 0 4 31 38

2025-07-14 19:10:37 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-07-14 19:30:41 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
350 (only retried tests) 309 0 5 0 36

🟢 2025-07-14 19:30:49 UTC Build successful.

@rosik rosik force-pushed the report-inferred-pdisk-slot-count branch from 81f48a3 to 83b365c Compare July 14, 2025 21:43
Copy link

github-actions bot commented Jul 14, 2025

2025-07-14 21:45:48 UTC Pre-commit check linux-x86_64-relwithdebinfo for cc48e39 has started.
2025-07-14 21:46:02 UTC Artifacts will be uploaded here

Copy link

github-actions bot commented Jul 14, 2025

2025-07-14 21:45:57 UTC Pre-commit check linux-x86_64-release-asan for cc48e39 has started.
2025-07-14 21:46:10 UTC Artifacts will be uploaded here

@rosik rosik force-pushed the report-inferred-pdisk-slot-count branch from 83b365c to 09dd7a5 Compare July 14, 2025 21:49
@rosik rosik force-pushed the report-inferred-pdisk-slot-count branch from 09dd7a5 to b0f921a Compare July 14, 2025 21:51
Copy link

github-actions bot commented Jul 14, 2025

2025-07-14 21:55:24 UTC Pre-commit check linux-x86_64-release-asan for 31ca371 has started.
2025-07-14 21:55:37 UTC Artifacts will be uploaded here
2025-07-14 21:59:19 UTC ya make is running...
🟡 2025-07-15 00:13:15 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
16454 16141 0 89 198 26

🟢 2025-07-15 00:14:39 UTC Build successful.

Copy link

github-actions bot commented Jul 14, 2025

2025-07-14 21:57:32 UTC Pre-commit check linux-x86_64-relwithdebinfo for 31ca371 has started.
2025-07-14 21:57:46 UTC Artifacts will be uploaded here
2025-07-14 22:01:37 UTC ya make is running...
🟡 2025-07-14 23:51:00 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38921 36171 0 4 2694 52

2025-07-14 23:54:32 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-07-15 00:15:44 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
493 (only retried tests) 429 0 0 25 39

🟢 2025-07-15 00:15:53 UTC Build successful.

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

Successfully merging this pull request may close these issues.

2 participants