[SPARK-22870][CORE] Dynamic allocation should allow 0 idle time#20080
[SPARK-22870][CORE] Dynamic allocation should allow 0 idle time#20080wangyum wants to merge 2 commits intoapache:masterfrom wangyum:SPARK-22870
Conversation
|
Test build #85390 has finished for PR 20080 at commit
|
|
cc @srowen |
|
I wonder if we should do the same for cachedExecutorIdleTimeoutS ? it isn't checked for being nonnegative but should be, I suppose. I think this is fine otherwise. I don't see any reason not to allow it (see JIRA) and the logic is compatible with a value of 0 already. |
There was a problem hiding this comment.
IMO, the goal isn't just to allow the value of 0, but also to ensure the executor are removed immediately, or close to. From what I can see we need to make some changes to support that?
For instance, schedule() is called every intervalMillis.
|
@wangyum have you already run any jobs on a cluster with this patch? |
|
Good point @felixcheung though the polling is hard-coded to 100ms, so will be close enough to "immediately". Allowing a value of 0 on both timeouts seems OK, but yeah not clear whether it does have the desired effect. |
|
@wangyum any comments on the follow-up here? if you've observed it gets the desired behavior, that's pretty convincing. At least we should treat both timeouts consistently. |
|
@srowen @jiangxb1987 I have test on my cluster with this patch.
|
|
This change alone is pretty harmless. If it seems to work as intended, seems OK? Again, just wondering if |
|
Ping @wangyum |
|
Test build #86083 has finished for PR 20080 at commit
|
|
Jenkins, retest this please |
|
Test build #86090 has finished for PR 20080 at commit
|
## What changes were proposed in this pull request? This pr to make `0` as a valid value for `spark.dynamicAllocation.executorIdleTimeout`. For details, see the jira description: https://issues.apache.org/jira/browse/SPARK-22870. ## How was this patch tested? N/A Author: Yuming Wang <yumwang@ebay.com> Author: Yuming Wang <wgyumg@gmail.com> Closes #20080 from wangyum/SPARK-22870. (cherry picked from commit fc6fe8a) Signed-off-by: Sean Owen <sowen@cloudera.com>
What changes were proposed in this pull request?
This pr to make
0as a valid value forspark.dynamicAllocation.executorIdleTimeout.For details, see the jira description: https://issues.apache.org/jira/browse/SPARK-22870.
How was this patch tested?
N/A