goiri commented on code in PR #5672:
URL: https://github.com/apache/hadoop/pull/5672#discussion_r1198012980
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java:
##########
@@ -703,6 +703,24 @@ protected static void validateConfigs(Configuration conf) {
+ ", " + YarnConfiguration.RM_NM_HEARTBEAT_INTERVAL_MS + "="
+ heartbeatIntvl);
}
+
+ if (HAUtil.isFederationEnabled(conf)) {
+ /*
+ * In Yarn Federation, we need UAMs in secondary sub-clusters to stay
+ * alive when the next attempt AM in home sub-cluster gets launched. If
+ * the previous AM died because the node is lost after NM timeout. It
will
+ * already be too late if AM timeout is even shorter.
+ */
+ int amExpireIntvl =
conf.getInt(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS,
Review Comment:
Can we switch to getTimeDuration() or would that break backwards
compatibility.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]