From 482e8a43cf2a0ab5b27704aa0cac7010e063a903 Mon Sep 17 00:00:00 2001 From: Alexander Dmitriev Date: Wed, 22 Jan 2025 15:46:18 +0000 Subject: [PATCH] fix bug in throttling by log chunk count --- .../blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp b/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp index d444f1a370d4..17b232866579 100644 --- a/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp +++ b/ydb/core/blobstorage/vdisk/skeleton/skeleton_overload_handler.cpp @@ -262,10 +262,12 @@ namespace NKikimr { ui64 minSstCount = (ui64)VCfg->ThrottlingMinSstCount; ui64 minInplacedSize = (ui64)VCfg->ThrottlingMinInplacedSize; ui64 minOccupancy = (ui64)VCfg->ThrottlingMinOccupancyPerMille * 1000; + ui64 minLogChunkCount = (ui64)VCfg->ThrottlingMinLogChunkCount; return CurrentSstCount > minSstCount || CurrentInplacedSize > minInplacedSize || - CurrentOccupancy > minOccupancy; + CurrentOccupancy > minOccupancy || + CurrentLogChunkCount > minLogChunkCount; } TDuration BytesToDuration(ui64 bytes) const {