You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Janus Chow (Jira)" <ji...@apache.org> on 2021/08/17 03:50:00 UTC
[jira] [Created] (HDDS-5622) Some improvements in
SCMCommonPlacementPolicy
Janus Chow created HDDS-5622:
--------------------------------
Summary: Some improvements in SCMCommonPlacementPolicy
Key: HDDS-5622
URL: https://issues.apache.org/jira/browse/HDDS-5622
Project: Apache Ozone
Issue Type: Improvement
Reporter: Janus Chow
Assignee: Janus Chow
This ticket consists of the following changes in SCMCommonPlacementPolicy.
* refactor getRequiredRackCount() to getRequiredRackCount(int numReplicas)
* Add a method to check if a datanode is available.
Currently getRequiredRackCount() ingests no input arguments and the default value is ususally 1 or 2, but for EC placement policy, the required racks will be based on the numReplicas.
The availability check method is added to SCMCommonPlacementPolicy so that it can be reused by other PlacementPolicy subclasses.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org