Ngone51 commented on code in PR #36716:
URL: https://github.com/apache/spark/pull/36716#discussion_r885313120
##########
core/src/main/scala/org/apache/spark/deploy/master/ApplicationInfo.scala:
##########
@@ -65,7 +66,70 @@ private[spark] class ApplicationInfo(
appSource = new ApplicationSource(this)
nextExecutorId = 0
removedExecutors = new ArrayBuffer[ExecutorDesc]
- executorLimit = desc.initialExecutorLimit.getOrElse(Integer.MAX_VALUE)
+ val initialExecutorLimit =
desc.initialExecutorLimit.getOrElse(Integer.MAX_VALUE)
+
+ rpIdToResourceProfile = new mutable.HashMap[Int, ResourceProfile]()
+ rpIdToResourceProfile(DEFAULT_RESOURCE_PROFILE_ID) = desc.defaultProfile
+ rpIdToResourceDesc = new mutable.HashMap[Int, ResourceDescription]()
+ createResourceDescForResourceProfile(desc.defaultProfile)
+
+ targetNumExecutorsPerResourceProfileId = new mutable.HashMap[Int, Int]()
+ targetNumExecutorsPerResourceProfileId(DEFAULT_RESOURCE_PROFILE_ID) =
initialExecutorLimit
Review Comment:
I think the original `executorLimit` limits the total executor number of the
whole application. But now it looks like `initialExecutorLimit` only limits the
executor number of the `DEFAULT_RESOURCE_PROFILE_ID` type. How about other
resource profile types?
--
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]