Class UniformWeightedLocalityGlobalPolicy
java.lang.Object
org.apache.hadoop.yarn.server.globalpolicygenerator.policygenerator.GlobalPolicy
org.apache.hadoop.yarn.server.globalpolicygenerator.policygenerator.UniformWeightedLocalityGlobalPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Simple policy that generates and updates uniform weighted locality
policies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManagerupdatePolicy(String queueName, Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId, Map<Class, Object>> clusterInfo, org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager currentManager) Given a queue, cluster metrics, and policy manager, update the policy to account for the cluster status.Methods inherited from class org.apache.hadoop.yarn.server.globalpolicygenerator.policygenerator.GlobalPolicy
getConf, registerPaths, setConf
-
Constructor Details
-
UniformWeightedLocalityGlobalPolicy
public UniformWeightedLocalityGlobalPolicy()
-
-
Method Details
-
updatePolicy
protected org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager updatePolicy(String queueName, Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId, Map<Class, Object>> clusterInfo, org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager currentManager) Description copied from class:GlobalPolicyGiven a queue, cluster metrics, and policy manager, update the policy to account for the cluster status. This method defines the policy generator behavior.- Specified by:
updatePolicyin classGlobalPolicy- Parameters:
queueName- name of the queueclusterInfo- subClusterId map to cluster information about the SubCluster used to make policy decisionscurrentManager- the FederationPolicyManager for the queue's existing policy the manager may be null, in which case the policy will need to be created- Returns:
- policy manager that handles the updated (or created) policy
-