holdenk commented on a change in pull request #26440: [WIP][SPARK-20628][CORE]
Start to improve Spark decommissioning & preemption support
URL: https://github.com/apache/spark/pull/26440#discussion_r344395443
##########
File path:
core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala
##########
@@ -71,6 +72,9 @@ private[spark] class CoarseGrainedExecutorBackend(
private[executor] val taskResources = new mutable.HashMap[Long, Map[String,
ResourceInformation]]
override def onStart(): Unit = {
+ logInfo("Registering PWR handler.")
+ SignalUtils.register("PWR")(decommissionSelf)
Review comment:
That's a good point. Right now we register SIGPWR regardless, but we only
really need it on K8s & stand alone. Do you think there is any harm in having
SIGPWR registered in YARN deployments?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]