[
https://issues.apache.org/jira/browse/SPARK-30561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun updated SPARK-30561:
----------------------------------
Affects Version/s: (was: 3.0.0)
3.1.0
> start spark applications without a 30second startup penalty
> -----------------------------------------------------------
>
> Key: SPARK-30561
> URL: https://issues.apache.org/jira/browse/SPARK-30561
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 3.1.0
> Reporter: t oo
> Priority: Major
>
> see
> https://stackoverflow.com/questions/57610138/how-to-start-spark-applications-without-a-30second-startup-penalty
> using spark standalone.
> There are several sleeps that can be removed:
> grep -i 'sleep(' -R * | grep -v 'src/test/' | grep -E '^core' | grep -ivE
> 'mesos|yarn|python|HistoryServer|spark/ui/'
> core/src/main/scala/org/apache/spark/util/Clock.scala:
> Thread.sleep(sleepTime)
> core/src/main/scala/org/apache/spark/SparkContext.scala: * sc.parallelize(1
> to 10000, 2).map { i => Thread.sleep(10); i }.count()
> core/src/main/scala/org/apache/spark/deploy/FaultToleranceTest.scala:
> private def delay(secs: Duration = 5.seconds) = Thread.sleep(secs.toMillis)
> core/src/main/scala/org/apache/spark/deploy/FaultToleranceTest.scala:
> Thread.sleep(1000)
> core/src/main/scala/org/apache/spark/deploy/Client.scala:
> Thread.sleep(5000)
> core/src/main/scala/org/apache/spark/deploy/master/ui/MasterPage.scala:
> Thread.sleep(100)
> core/src/main/scala/org/apache/spark/deploy/StandaloneResourceUtils.scala:
> Thread.sleep(duration)
> core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala: def
> sleep(seconds: Int): Unit = (0 until seconds).takeWhile { _ =>
> core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala:
> Thread.sleep(1000)
> core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala:
> sleeper.sleep(waitSeconds)
> core/src/main/scala/org/apache/spark/deploy/worker/DriverRunner.scala: def
> sleep(seconds: Int): Unit
> core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionClient.scala:
> Thread.sleep(REPORT_DRIVER_STATUS_INTERVAL)
> core/src/main/scala/org/apache/spark/scheduler/AsyncEventQueue.scala:
> Thread.sleep(10)
> core/src/main/scala/org/apache/spark/storage/BlockManager.scala:
> Thread.sleep(SLEEP_TIME_SECS * 1000L)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]