Skip to content

Commit ca0884d

Browse files
authored
Merge pull request #9254 from alphaprinz/backport_16
[backport into 5.16] pool server - don't issue MANY_STORAGE_ISSUES after scaling up (dfbugs 4152) (#9235)
2 parents 1d822bf + 27520af commit ca0884d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/server/system_services/pool_server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,8 +1232,11 @@ function calc_hosts_pool_mode(pool_info, storage_by_mode, s3_by_mode) {
12321232
const storage_count = hosts.by_service.STORAGE;
12331233
const storage_offline = storage_by_mode.OFFLINE || 0;
12341234
const storage_optimal = storage_by_mode.OPTIMAL || 0;
1235+
const storage_low_capacity = storage_by_mode.LOW_CAPACITY || 0;
12351236
const storage_offline_ratio = (storage_offline / host_count) * 100;
1236-
const storage_issues_ratio = ((storage_count - storage_optimal) / storage_count) * 100;
1237+
//don't count individual storage with low capacity as having issues.
1238+
//low capacity is handled for the entire BS by free_ratio check below
1239+
const storage_issues_ratio = ((storage_count - storage_optimal - storage_low_capacity) / storage_count) * 100;
12371240
const hosts_initializing = hosts.by_mode.INITIALIZING || 0;
12381241
const hosts_migrating = (hosts.by_mode.INITIALIZING || 0) + (hosts.by_mode.DECOMMISSIONING || 0) + (hosts.by_mode.MIGRATING || 0);
12391242
const s3_count = hosts.by_service.GATEWAY;

0 commit comments

Comments
 (0)