From bb43dfda86cc5fff808ddfdec409c983c6099a16 Mon Sep 17 00:00:00 2001 From: Aleksandr Dmitriev Date: Wed, 22 Jan 2025 20:23:13 +0300 Subject: [PATCH] fix bug in throttling by log chunk count (#13734) --- .../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 {