Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-26446][CORE] Add cachedExecutorIdleTimeout docs at ExecutorAllocationManager #23386

Closed
wants to merge 1 commit into from

Conversation

TopGunViper
Copy link

What changes were proposed in this pull request?

Add docs to describe how remove policy act while considering the property spark.dynamicAllocation.cachedExecutorIdleTimeout in ExecutorAllocationManager

How was this patch tested?

comment-only PR.

@SparkQA
Copy link

SparkQA commented Dec 26, 2018

Test build #4486 has finished for PR 23386 at commit dec0449.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@TopGunViper
Copy link
Author

retest this please.

@SparkQA
Copy link

SparkQA commented Dec 27, 2018

Test build #4487 has finished for PR 23386 at commit dec0449.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

Retest this please.

@dongjoon-hyun
Copy link
Member

Hi, @TopGunViper . Thank you for your first contribution!
Can we use a more specific PR title?

- [SPARK-26446][CORE] Improve docs on ExecutorAllocationManager
+ [SPARK-26446][CORE] Add cachedExecutorIdleTimeout docs at ExecutorAllocationManager

@TopGunViper TopGunViper changed the title [SPARK-26446][CORE] Improve docs on ExecutorAllocationManager [SPARK-26446][CORE] Add cachedExecutorIdleTimeout docs at ExecutorAllocationManager Dec 28, 2018
@TopGunViper
Copy link
Author

Hi, @dongjoon-hyun Thank you for your review.
The PR title have already modified.

@SparkQA
Copy link

SparkQA commented Dec 28, 2018

Test build #100482 has finished for PR 23386 at commit dec0449.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thanks, @TopGunViper .

@@ -57,7 +57,8 @@ import org.apache.spark.util.{Clock, SystemClock, ThreadUtils, Utils}
* a long time to ramp up under heavy workloads.
*
* The remove policy is simpler: If an executor has been idle for K seconds, meaning it has not
* been scheduled to run any tasks, then it is removed.
* been scheduled to run any tasks, then it is removed. Note that if an executor caching any data
* blocks will be removed until it has been idle for more then L seconds.
Copy link
Member

@dongjoon-hyun dongjoon-hyun Dec 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ur, I know the meaning, but this sentence itself looks unclear to me; if, until? Could you make this simpler?

Note that if an executor caching any data blocks will be removed until it has been idle for more then L seconds.

Copy link
Member

@Ngone51 Ngone51 Dec 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about remove if and change until to if or once ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And, more then -> more than

@dongjoon-hyun
Copy link
Member

Merged to master.

Thank you, @TopGunViper , @srowen , @Ngone51 .

@asfgit asfgit closed this in f2adb61 Dec 28, 2018
@TopGunViper
Copy link
Author

Thanks a lot for review, @dongjoon-hyun @Ngone51 @srowen

holdenk pushed a commit to holdenk/spark that referenced this pull request Jan 5, 2019
…ocationManager

## What changes were proposed in this pull request?

Add docs to describe how remove policy act while considering the property `spark.dynamicAllocation.cachedExecutorIdleTimeout` in ExecutorAllocationManager

## How was this patch tested?
comment-only PR.

Closes apache#23386 from TopGunViper/SPARK-26446.

Authored-by: wuqingxin <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…ocationManager

## What changes were proposed in this pull request?

Add docs to describe how remove policy act while considering the property `spark.dynamicAllocation.cachedExecutorIdleTimeout` in ExecutorAllocationManager

## How was this patch tested?
comment-only PR.

Closes apache#23386 from TopGunViper/SPARK-26446.

Authored-by: wuqingxin <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants