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

    https://github.com/apache/spark/pull/636#discussion_r12507640
  
    --- Diff: 
core/src/main/scala/org/apache/spark/deploy/ApplicationDescription.scala ---
    @@ -28,6 +28,7 @@ private[spark] class ApplicationDescription(
       extends Serializable {
     
       val user = System.getProperty("user.name", "<unknown>")
    -
    +  // only valid when spark.executor.multiPerWorker is set to true
    +  var maxCorePerExecutor = maxCores
    --- End diff --
    
    yes,but in ApplicationInfo,app.coresLeft is equal to app.maxCores. so in 
schedule when the sum of all worker free cores is greater than app.coresLeft, 
now leftCoreToAssign actually is equal to maxCorePerExecutor. 


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to