public class BroadcastAMRMProxyPolicy extends AbstractAMRMProxyPolicy
FederationAMRMProxyPolicy that simply
broadcasts each ResourceRequest to all the available sub-clusters.| Constructor and Description |
|---|
BroadcastAMRMProxyPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
reinitialize(FederationPolicyInitializationContext policyContext)
This method is invoked to initialize of update the configuration of
policies.
|
Map<SubClusterId,List<org.apache.hadoop.yarn.api.records.ResourceRequest>> |
splitResourceRequests(List<org.apache.hadoop.yarn.api.records.ResourceRequest> resourceRequests,
Set<SubClusterId> timedOutSubClusters)
Splits the
ResourceRequests from the client across one or more
sub-clusters based on the policy semantics (e.g., broadcast, load-based). |
notifyOfResponse, validategetActiveSubclusters, getIsDirty, getPolicyContext, getPolicyInfo, setPolicyContext, setPolicyInfopublic void reinitialize(FederationPolicyInitializationContext policyContext) throws FederationPolicyInitializationException
ConfigurableFederationPolicyreinitialize in interface ConfigurableFederationPolicyreinitialize in class AbstractConfigurableFederationPolicypolicyContext - the new context to provide to implementor.FederationPolicyInitializationException - in case the initialization
fails.public Map<SubClusterId,List<org.apache.hadoop.yarn.api.records.ResourceRequest>> splitResourceRequests(List<org.apache.hadoop.yarn.api.records.ResourceRequest> resourceRequests, Set<SubClusterId> timedOutSubClusters) throws org.apache.hadoop.yarn.exceptions.YarnException
FederationAMRMProxyPolicyResourceRequests from the client across one or more
sub-clusters based on the policy semantics (e.g., broadcast, load-based).resourceRequests - the list of ResourceRequests from the AM to
be splittimedOutSubClusters - the set of sub-clusters that haven't had a
successful heart-beat response for a while.SubClusterId to the
list of ResourceRequests that should be forwarded to itorg.apache.hadoop.yarn.exceptions.YarnException - in case the request is malformed or no viable
sub-clusters can be found.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.