Class UniformBroadcastPolicyManager
java.lang.Object
org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
org.apache.hadoop.yarn.server.federation.policies.manager.UniformBroadcastPolicyManager
- All Implemented Interfaces:
FederationPolicyManager
This class represents a simple implementation of a
FederationPolicyManager.
It combines the basic policies: UniformRandomRouterPolicy and
BroadcastAMRMProxyPolicy, which are designed to work together and
"spread" the load among sub-clusters uniformly.
This simple policy might impose heavy load on the RMs and return more
containers than a job requested as all requests are (replicated and)
broadcasted.-
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
amrmProxyFederationPolicy, LOG, routerFederationPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWe get the WeightedPolicyInfo of the subCluster.booleanPolicyManager Whether to support WeightedPolicyInfo.voidsetWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo) We set the WeightedPolicyInfo of the subCluster.Methods inherited from class org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
getAMRMPolicy, getQueue, getRouterPolicy, serializeConf, setQueue
-
Constructor Details
-
UniformBroadcastPolicyManager
public UniformBroadcastPolicyManager()
-
-
Method Details
-
getWeightedPolicyInfo
Description copied from class:AbstractPolicyManagerWe get the WeightedPolicyInfo of the subCluster.- Specified by:
getWeightedPolicyInfoin interfaceFederationPolicyManager- Specified by:
getWeightedPolicyInfoin classAbstractPolicyManager- Returns:
- WeightedPolicyInfo.
-
setWeightedPolicyInfo
Description copied from class:AbstractPolicyManagerWe set the WeightedPolicyInfo of the subCluster.- Specified by:
setWeightedPolicyInfoin interfaceFederationPolicyManager- Specified by:
setWeightedPolicyInfoin classAbstractPolicyManager- Parameters:
weightedPolicyInfo- weightedPolicyInfo of the subCluster.
-
isSupportWeightedPolicyInfo
public boolean isSupportWeightedPolicyInfo()Description copied from interface:FederationPolicyManagerPolicyManager Whether to support WeightedPolicyInfo. Some of PolicyManagers do not support WeightedPolicyInfo.- Returns:
- true, supports WeightedPolicyInfo; false, WeightedPolicyInfo is not supported
-