You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/08/12 13:17:21 UTC

[GitHub] [spark] ivoson commented on a diff in pull request #37268: [SPARK-39853][CORE] Support stage level task resource profile for standalone cluster when dynamic allocation disabled

ivoson commented on code in PR #37268:
URL: https://github.com/apache/spark/pull/37268#discussion_r944453072


##########
core/src/main/scala/org/apache/spark/resource/ResourceProfile.scala:
##########
@@ -76,6 +76,11 @@ class ResourceProfile(
     executorResources.asJava
   }
 
+  /**
+   * Target executor's resource profile id, used for schedule.
+   */
+  def targetExecutorRpId: Int = id

Review Comment:
   Thanks @Ngone51 
   I think that's pretty much the idea of sharing/re-use executors with the policy: sharing any executors which can fulfill task's resource requests. The problem may be that do we want to let users to specify re-use policy.
   
   How about we narrow down the scenario here in this PR, schedule tasks with `TaskResourceProfile` to executors with `DEFAULT_RESOURCE_PROFILE` directly when dynamic allocation off(without checking rpId).
   Even thought the idea is pretty much like reuse compatible executors, it's much simpler in this case. And we can still leave [SPARK-36699](https://issues.apache.org/jira/browse/SPARK-36699) to handle the API change, we don't introduce the API change in this PR.
   
   What do you think? @tgravescs @Ngone51 



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org