devmadhuu commented on PR #12179: URL: https://github.com/apache/ozone/pull/12179#issuecomment-7371181779
> Thanks for the review [@devmadhuu](https://github.com/devmadhuu) . I have addressed the comments and I have also added functionality to count volumes of the requested tier alone when checking the EC pipeline limit. > > The EC pipeline limit, `max(`ozone.scm.ec.pipeline.minimum`, factor * volumes / (data + parity))`, earlier counted only the healthy volumes of the requested tier. So each tier got a limit that was too large. For example, with 5 datanodes that each have 1 DISK and 1 SSD volume and EC-3-2, the limit was 10 / 5 = 2 for each tier, but only 5 volumes can serve a tier. It is now 5 / 5 = 1. > > * `NodeManager` has a new `totalHealthyVolumeCount(StorageType)`. > > * `DatanodeInfo` has a new `getHealthyVolumeCount(StorageType)`, which gets all healthy volumes of the given storageType on that DN. > > * The description of `ozone.scm.ec.pipeline.per.volume.factor` has been updated to say that the count is of the volumes of the requested storage type. > > > PTAL ! Thanks @anuragp010 — The EC pipeline-limit per-tier fix looks correct. One thing I'd like to settle before merge — null-tier container reuse differs from `RATIS`: - EC `getContainerFromPipeline`: if (storageTier.equals(container.getStorageTier())) → a legacy null-tier container never matches, so the pipeline is closed and a new one allocated. - RATIS `ContainerManagerImpl.getContainersForOwnerAndStorageTier:` a null-tier container is kept and reused for any tier (documented upgrade-compat for pre-StorageTier containers). It's mostly latent because PipelineStateMap.matchesStorageTier already filters out null-tier pipelines for both paths, but on an upgraded cluster legacy EC pipelines then won't be reused or counted. nit: the pre-existing "final attempt" bump to `getNodeCount(inServiceHealthy())` is tier-blind, so under that fallback path a tier can exceed its new per-tier limit. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
