public class UniformBroadcastPolicyManager extends AbstractPolicyManager
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.amrmProxyFederationPolicy, LOG, routerFederationPolicy
Constructor and Description |
---|
UniformBroadcastPolicyManager() |
Modifier and Type | Method and Description |
---|---|
WeightedPolicyInfo |
getWeightedPolicyInfo()
We get the WeightedPolicyInfo of the subCluster.
|
boolean |
isSupportWeightedPolicyInfo()
PolicyManager Whether to support WeightedPolicyInfo.
|
void |
setWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo)
We set the WeightedPolicyInfo of the subCluster.
|
getAMRMPolicy, getQueue, getRouterPolicy, serializeConf, setQueue
public WeightedPolicyInfo getWeightedPolicyInfo()
AbstractPolicyManager
getWeightedPolicyInfo
in interface FederationPolicyManager
getWeightedPolicyInfo
in class AbstractPolicyManager
public void setWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo)
AbstractPolicyManager
setWeightedPolicyInfo
in interface FederationPolicyManager
setWeightedPolicyInfo
in class AbstractPolicyManager
weightedPolicyInfo
- weightedPolicyInfo of the subCluster.public boolean isSupportWeightedPolicyInfo()
FederationPolicyManager
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.