Skip to content

Commit 5dd45bd

Browse files
author
Andrew Or
committed
[SPARK-8958] Dynamic allocation: change cached timeout to infinity
pwendell and I discussed this a little more offline and concluded that it would be good to keep it more conservative. Losing cached blocks may be very expensive and we should only allow it if the user knows what he/she is doing. FYI harishreedharan sryza. Author: Andrew Or <[email protected]> Closes #7329 from andrewor14/da-cached-timeout and squashes the following commits: cef0b4e [Andrew Or] Change timeout to infinity
1 parent 11e22b7 commit 5dd45bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/src/main/scala/org/apache/spark/ExecutorAllocationManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private[spark] class ExecutorAllocationManager(
102102
"spark.dynamicAllocation.executorIdleTimeout", "60s")
103103

104104
private val cachedExecutorIdleTimeoutS = conf.getTimeAsSeconds(
105-
"spark.dynamicAllocation.cachedExecutorIdleTimeout", s"${2 * executorIdleTimeoutS}s")
105+
"spark.dynamicAllocation.cachedExecutorIdleTimeout", s"${Integer.MAX_VALUE}s")
106106

107107
// During testing, the methods to actually kill and add executors are mocked out
108108
private val testing = conf.getBoolean("spark.dynamicAllocation.testing", false)

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ Apart from these, the following properties are also available, and may be useful
12061206
</tr>
12071207
<tr>
12081208
<td><code>spark.dynamicAllocation.cachedExecutorIdleTimeout</code></td>
1209-
<td>2 * executorIdleTimeout</td>
1209+
<td>infinity</td>
12101210
<td>
12111211
If dynamic allocation is enabled and an executor which has cached data blocks has been idle for more than this duration,
12121212
the executor will be removed. For more details, see this
@@ -1222,7 +1222,7 @@ Apart from these, the following properties are also available, and may be useful
12221222
</tr>
12231223
<tr>
12241224
<td><code>spark.dynamicAllocation.maxExecutors</code></td>
1225-
<td>Integer.MAX_VALUE</td>
1225+
<td>infinity</td>
12261226
<td>
12271227
Upper bound for the number of executors if dynamic allocation is enabled.
12281228
</td>

0 commit comments

Comments
 (0)