public interface FederationRouterPolicy extends ConfigurableFederationPolicy
Modifier and Type | Method and Description |
---|---|
SubClusterId |
getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext,
List<SubClusterId> blackListSubClusters)
Determines the sub-cluster that the user application submission should be
routed to.
|
SubClusterId |
getReservationHomeSubcluster(org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest request)
Determines the sub-cluster where a ReservationSubmissionRequest should be
sent to.
|
reinitialize
SubClusterId getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext, List<SubClusterId> blackListSubClusters) throws org.apache.hadoop.yarn.exceptions.YarnException
appSubmissionContext
- the ApplicationSubmissionContext
that
has to be routed to an appropriate subCluster for execution.blackListSubClusters
- 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.SubClusterId getReservationHomeSubcluster(org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException
request
- the original requestorg.apache.hadoop.yarn.exceptions.YarnException
- if the policy fails to choose a sub-clusterCopyright © 2008–2024 Apache Software Foundation. All rights reserved.