-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-41781][K8S] Add the ability to create pvc before creating driver/executor pod #39306
Conversation
58ce0c6
to
4862f5e
Compare
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proposed code changes look like a little too intrusive. Do you think you can minimize some, @dcoliversun ?
@dongjoon-hyun Sorry for my late reply. I'm working on minimize intrusive code :) |
@dongjoon-hyun
I prefer the first option. First option has more scalability, we could set other k8s resource as pre-resource if need. And I agree with you about code intrusiveness. I think it's worth setting PVC as pre-resource. Any suggestion is greatly appreciated. |
4862f5e
to
c89a978
Compare
c89a978
to
ad014e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updates. I have two questions.
- According to the updated PR description, is the only benefit of this refactoring is to remove warning K8s event messages?
- Does this PR work with the existing feature like SPARK-41515 ?
This PR brings two benefit:
|
Thank you for the reviews @dongjoon-hyun , I believe I've addressed your comments! |
gentle ping @dongjoon-hyun :) |
on spark 3.3 i able to shared the same PVC for driver and executors but in spark 3.4 , i get error |
@cometta Hi, this PR is not related to the problem you're having. Could you create an issue in JIRA, attach your spark configuration? I will follow up :) |
@dcoliversun created jira ticket https://issues.apache.org/jira/browse/SPARK-43329 |
What changes were proposed in this pull request?
This patch aims to make PVCs as pre-resources and setup them before driver/executor Pod creation. After this patch, the workflow looks like this:
Why are the changes needed?
These pre-resources are usually necessary in Pod creation and scheduling, they should be ready before Pod creation, should be deleted when user delete Pod, the lifecycle of these resource is same with Pod.
If PVCs are created after Pod creation, we will have warning event in Pod as follow:
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Add new UTs.