Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
pool server - don't issue MANY_STORAGE_ISSUES after scaling up (dfbug…
…s 4152) (#9235)

Signed-off-by: Amit Prinz Setter <[email protected]>
  • Loading branch information
alphaprinz committed Oct 24, 2025
commit 1d94591eb1e9163599b4523c80ae605156950779
5 changes: 4 additions & 1 deletion src/server/system_services/pool_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1257,8 +1257,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.DECOMMISSIONING || 0) + (hosts.by_mode.MIGRATING || 0);
const s3_count = hosts.by_service.GATEWAY;
Expand Down