diff options
author | Yaroslav Dynnikov <ydynnikov@ydb.tech> | 2025-07-30 19:10:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-30 19:10:27 +0300 |
commit | 1211748c64504194791b0ec356cd729fa6a078ba (patch) | |
tree | 78c56592d3540fce88bafa3284fafc75c10ddc5b | |
parent | ce99134e01d9b6e8cfd5b3707ed8fa838d56f426 (diff) | |
download | ydb-1211748c64504194791b0ec356cd729fa6a078ba.tar.gz |
Add GroupSizeInUnits info to Hive (#21891)
-rw-r--r-- | ydb/core/mind/bscontroller/bsc.cpp | 1 | ||||
-rw-r--r-- | ydb/core/mind/hive/hive_impl.cpp | 1 | ||||
-rw-r--r-- | ydb/core/protos/blobstorage.proto | 1 | ||||
-rw-r--r-- | ydb/core/protos/hive.proto | 1 | ||||
-rw-r--r-- | ydb/core/viewer/viewer_storage.h | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/ydb/core/mind/bscontroller/bsc.cpp b/ydb/core/mind/bscontroller/bsc.cpp index 988ad5f8643..8f46da5e9c8 100644 --- a/ydb/core/mind/bscontroller/bsc.cpp +++ b/ydb/core/mind/bscontroller/bsc.cpp @@ -131,6 +131,7 @@ void TBlobStorageController::TGroupInfo::FillInGroupParameters( FillInResources(params->MutableAssuredResources(), true); FillInResources(params->MutableCurrentResources(), false); FillInVDiskResources(params); + params->SetGroupSizeInUnits(GroupSizeInUnits); } } diff --git a/ydb/core/mind/hive/hive_impl.cpp b/ydb/core/mind/hive/hive_impl.cpp index 7c5570e90fa..356a3efa7d0 100644 --- a/ydb/core/mind/hive/hive_impl.cpp +++ b/ydb/core/mind/hive/hive_impl.cpp @@ -2195,6 +2195,7 @@ void THive::Handle(TEvHive::TEvRequestHiveStorageStats::TPtr& ev) { pbGroup.SetMaximumSize(group.MaximumResources.Size); pbGroup.SetAllocatedSize(group.GroupParameters.GetAllocatedSize()); pbGroup.SetAvailableSize(group.GroupParameters.GetAvailableSize()); + pbGroup.SetGroupSizeInUnits(group.GroupParameters.GetGroupSizeInUnits()); } } Send(ev->Sender, response.Release(), 0, ev->Cookie); diff --git a/ydb/core/protos/blobstorage.proto b/ydb/core/protos/blobstorage.proto index d113c3cb180..abaf82ff02d 100644 --- a/ydb/core/protos/blobstorage.proto +++ b/ydb/core/protos/blobstorage.proto @@ -1318,6 +1318,7 @@ message TEvControllerSelectGroupsResult { optional uint64 AvailableSize = 9; // bytes as reported by VDisk metrics (pessimistic case) optional uint64 AllocatedSize = 10; // the same basis optional NKikimrBlobStorage.TPDiskSpaceColor.E SpaceColor = 11; + optional uint32 GroupSizeInUnits = 14; } message TMatchingGroupList { repeated TGroupParameters Groups = 1; diff --git a/ydb/core/protos/hive.proto b/ydb/core/protos/hive.proto index 7bb49b9ac13..c05406f837f 100644 --- a/ydb/core/protos/hive.proto +++ b/ydb/core/protos/hive.proto @@ -355,6 +355,7 @@ message THiveStorageGroupStats { optional uint64 MaximumSize = 9; optional uint64 AllocatedSize = 10; optional uint64 AvailableSize = 11; + optional uint32 GroupSizeInUnits = 12; } message THiveStoragePoolStats { diff --git a/ydb/core/viewer/viewer_storage.h b/ydb/core/viewer/viewer_storage.h index 533e51efd31..8d58d888312 100644 --- a/ydb/core/viewer/viewer_storage.h +++ b/ydb/core/viewer/viewer_storage.h @@ -301,6 +301,7 @@ public: stats.SetMaximumIOPS(stats.GetMaximumIOPS() + pbGroup.GetMaximumIOPS()); stats.SetMaximumThroughput(stats.GetMaximumThroughput() + pbGroup.GetMaximumThroughput()); stats.SetMaximumSize(stats.GetMaximumSize() + pbGroup.GetMaximumSize()); + stats.SetGroupSizeInUnits(pbGroup.GetGroupSizeInUnits()); } } } |