[
https://issues.apache.org/jira/browse/YARN-6194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15879239#comment-15879239
]
ASF GitHub Bot commented on YARN-6194:
--------------------------------------
Github user kambatla commented on a diff in the pull request:
https://github.com/apache/hadoop/pull/196#discussion_r102573406
--- Diff:
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/SchedulingPolicy.java
---
@@ -91,7 +91,23 @@ public static SchedulingPolicy parse(String policy)
}
return getInstance(clazz);
}
-
+
+ /**
+ * Initialize the scheduling policy with cluster resources. Deprecated
since
+ * it doesn't track cluster resource changes.
+ *
+ * @param clusterCapacity cluster resources
+ */
+ @Deprecated
+ public void initialize(Resource clusterCapacity) {}
+
+ /**
+ * Initialize the scheduling policy with a {@link FSContext} object
which can
--- End diff --
In the future, different policies could use different information from the
FSContext. Maybe, instead of referring to it as the only thing, say something
like "FSContext, which has a pointer to the cluster resources among other
information.
> Cluster capacity in SchedulingPolicy is updated only on allocation file reload
> ------------------------------------------------------------------------------
>
> Key: YARN-6194
> URL: https://issues.apache.org/jira/browse/YARN-6194
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: fairscheduler
> Affects Versions: 2.8.0
> Reporter: Karthik Kambatla
> Assignee: Yufei Gu
>
> Some of the {{SchedulingPolicy}} methods need cluster capacity which is set
> using {{#initialize}} today. However, {{initialize()}} is called only on
> allocation reload. If nodes are added between reloads, the cluster capacity
> is not considered until the next reload.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]