ConfigurableFederationPolicy, FederationRouterPolicyLocalityRouterPolicypublic class WeightedRandomRouterPolicy extends AbstractRouterPolicy
| Constructor | Description |
|---|---|
WeightedRandomRouterPolicy() |
| Modifier and Type | Method | Description |
|---|---|---|
protected SubClusterId |
chooseSubCluster(java.lang.String queue,
java.util.Map<SubClusterId,SubClusterInfo> preSelectSubclusters) |
This method is implemented by the specific policy, and it is used to route
both reservations, and applications among a given set of
sub-clusters.
|
getHomeSubcluster, getReservationHomeSubcluster, prefilterSubClusters, validate, validategetActiveSubclusters, getIsDirty, getPolicyContext, getPolicyInfo, reinitialize, setPolicyContext, setPolicyInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreinitializeprotected SubClusterId chooseSubCluster(java.lang.String queue, java.util.Map<SubClusterId,SubClusterInfo> preSelectSubclusters) throws org.apache.hadoop.yarn.exceptions.YarnException
AbstractRouterPolicychooseSubCluster in class AbstractRouterPolicyqueue - the queue for this application/reservationpreSelectSubclusters - a pre-filter set of sub-clustersorg.apache.hadoop.yarn.exceptions.YarnException - if the policy fails to choose a sub-clusterCopyright © 2008–2025 Apache Software Foundation. All rights reserved.