public class LoadBasedRouterPolicy extends AbstractRouterPolicy
| Constructor and Description |
|---|
LoadBasedRouterPolicy() |
| Modifier and Type | Method and Description |
|---|---|
SubClusterId |
getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext,
List<SubClusterId> blacklist)
Determines the sub-cluster that the user application submission should be
routed to.
|
void |
reinitialize(FederationPolicyInitializationContext policyContext)
This method is invoked to initialize of update the configuration of
policies.
|
validate, 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 SubClusterId getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext, List<SubClusterId> blacklist) throws org.apache.hadoop.yarn.exceptions.YarnException
FederationRouterPolicyappSubmissionContext - the ApplicationSubmissionContext that
has to be routed to an appropriate subCluster for execution.blacklist - the list of subClusters as identified by
SubClusterId to blackList from the selection of the home
subCluster.SubClusterId that will be the "home" for this
application.org.apache.hadoop.yarn.exceptions.YarnException - if the policy cannot determine a viable subcluster.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.