int getCapacityOfHealthyDisks(Collection<DiskId> allDiskIds, Collection<DiskId> failedDiskIds) {
    int capacityReportingPercentage = storeConfig.storeDiskCapacityReportingPercentage;
    long healthyDiskCapacity = allDiskIds.stream()
        .filter(((Predicate<DiskId>) failedDiskIds::contains).negate())
        .mapToLong(DiskId::getRawCapacityInBytes)
        .sum();
    final long GB = 1024 * 1024 * 1024;
    long capacityInGB = healthyDiskCapacity / GB;
    return (int) ((double) capacityInGB * capacityReportingPercentage / 100);
  }
Return the disk capacity for healthy disks. This capacity is the sum of all healthy disks. The unit
is GiB. This disk capacity is the value to report in instance config.
@param allDiskIds All the disks on data node config
@param failedDiskIds The failed disks
@return The disk capacity.
ambry-store/src/main/java/com/github/ambry/store/StorageManager.java