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-41514][K8S][DOCS] Add PVC-oriented executor pod allocation doc and revise config name #39058

Closed
wants to merge 4 commits into from

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Dec 14, 2022

What changes were proposed in this pull request?

This PR aims to add PVC-oriented executor pod allocation section to K8s documentation.
To be consistent with the existing two configurations, I revise the configuration like the following.

- spark.kubernetes.driver.waitToReusePersistentVolumeClaims
+ spark.kubernetes.driver.waitToReusePersistentVolumeClaim

Why are the changes needed?

To document new feature.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Manual review since this is a documentation.

@dongjoon-hyun
Copy link
Member Author

Hi, @viirya . This is the documentation PR. Could you review this when you have some time?


In addition, since Spark 3.4, Spark driver is able to do PVC-oriented executor allocation which means
Spark counts the total number of created PVCs which the cluster can have and holds on a new executor creation
if the driver owns the maximum number of PVCs. This helps the transition of the existing PVC from one executor
Copy link
Member

Choose a reason for hiding this comment

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

Is the maximum number of PVCs limited by cluster capacity?

Copy link
Member Author

@dongjoon-hyun dongjoon-hyun Dec 14, 2022

Choose a reason for hiding this comment

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

Oh, I used the cluster = the spark cluster = the spark job = the spark driver + executor. It could be misleading as the k8s cluster. Let me revise it. Thank you!

@dongjoon-hyun
Copy link
Member Author

I replaced cluster with job in three places, @viirya .

@dongjoon-hyun
Copy link
Member Author

Since the last commit is a word change in the documentation and config description, I'll merge this. Thank you, @viirya !

@dongjoon-hyun dongjoon-hyun deleted the SPARK-41514 branch December 14, 2022 08:16
@viirya
Copy link
Member

viirya commented Dec 14, 2022

Thank you @dongjoon-hyun

beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
…oc and revise config name

### What changes were proposed in this pull request?

This PR aims to add `PVC-oriented executor pod allocation` section to K8s documentation.
To be consistent with the existing two configurations, I revise the configuration like the following.
```
- spark.kubernetes.driver.waitToReusePersistentVolumeClaims
+ spark.kubernetes.driver.waitToReusePersistentVolumeClaim
```

### Why are the changes needed?

To document new feature.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Manual review since this is a documentation.

Closes apache#39058 from dongjoon-hyun/SPARK-41514.

Authored-by: Dongjoon Hyun <[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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants