From 341b3463db32695f4bc98459e95c45382f8ccdad Mon Sep 17 00:00:00 2001 From: Amit Prinz Setter Date: Fri, 3 Oct 2025 12:02:32 -0700 Subject: [PATCH] pool server - don't issue MANY_STORAGE_ISSUES after scaling up (dfbugs 4152) Signed-off-by: Amit Prinz Setter --- src/server/system_services/pool_server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/system_services/pool_server.js b/src/server/system_services/pool_server.js index e42ff61517..42fa26fbf1 100644 --- a/src/server/system_services/pool_server.js +++ b/src/server/system_services/pool_server.js @@ -1190,8 +1190,11 @@ function calc_hosts_pool_mode(pool_info, storage_by_mode, s3_by_mode) { const storage_count = hosts.by_service.STORAGE; const storage_offline = storage_by_mode.OFFLINE || 0; const storage_optimal = storage_by_mode.OPTIMAL || 0; + const storage_low_capacity = storage_by_mode.LOW_CAPACITY || 0; const storage_offline_ratio = (storage_offline / host_count) * 100; - const storage_issues_ratio = ((storage_count - storage_optimal) / storage_count) * 100; + //don't count individual storage with low capacity as having issues. + //low capacity is handled for the entire BS by free_ratio check below + const storage_issues_ratio = ((storage_count - storage_optimal - storage_low_capacity) / storage_count) * 100; const hosts_initializing = hosts.by_mode.INITIALIZING || 0; const hosts_migrating = (hosts.by_mode.INITIALIZING || 0) + (hosts.by_mode.MIGRATING || 0); const s3_count = hosts.by_service.GATEWAY;