Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6082#discussion_r30178501
  
    --- Diff: 
yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala ---
    @@ -300,11 +300,14 @@ private[spark] class ApplicationMaster(
         val expiryInterval = 
yarnConf.getInt(YarnConfiguration.RM_AM_EXPIRY_INTERVAL_MS, 120000)
     
         // we want to be reasonably responsive without causing too many 
requests to RM.
    -    val schedulerInterval =
    -      sparkConf.getTimeAsMs("spark.yarn.scheduler.heartbeat.interval-ms", 
"5s")
    +    val heartbeatInterval = math.max(0, math.min(expiryInterval / 2,
    +      sparkConf.getTimeAsMs("spark.yarn.scheduler.heartbeat.interval-ms", 
"5s")))
     
    -    // must be <= expiryInterval / 2.
    -    val interval = math.max(0, math.min(expiryInterval / 2, 
schedulerInterval))
    +    // we want to check more frequently for pending containers
    +    val eagerAllocationInterval = math.min(heartbeatInterval,
    +      sparkConf.getTimeAsMs("spark.yarn.scheduler.allocation.interval-ms", 
"200"))
    --- End diff --
    
    See my comment in the docs about getting rid of units in config names.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to