-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Suspend/Resume feature on SparkApplication #2387
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
base: master
Are you sure you want to change the base?
Conversation
e2c2b7a
to
4c5b807
Compare
feb525d
to
7f87e65
Compare
@everpeace Maybe u can resolve this conflict so that this PR can continue to move forward? we also think about use kueue with sparkoperator , depend this suspend state feature . It would be better if you could push further down ~ |
…cationStates(Suspending/Suspended/Resuming) Signed-off-by: Shingo Omura <everpeace@gmail.com>
…r and its unit tests Signed-off-by: Shingo Omura <everpeace@gmail.com>
Signed-off-by: Shingo Omura <everpeace@gmail.com>
Signed-off-by: Shingo Omura <everpeace@gmail.com>
Signed-off-by: Shingo Omura <everpeace@gmail.com>
…on loop. Signed-off-by: Shingo Omura <everpeace@gmail.com>
7f87e65
to
4d6dd1d
Compare
@Kevinz857 Hi, thanks for your comment!! I rebaed my PR. |
My original
However, I already opened a PR for this which will be needed to support |
/assign @jacobsalway @vara-bonthu @ImpSy |
@Kevinz857 Would you mind help reviewing the PR? |
@ChenYi015 Very happy, I will review this PR together in detail later. |
@everpeace Suggestions for Improvement
// Suspend indicates whether the SparkApplication should be suspended.
Add unit tests for the suspension logic to ensure the controller skips job submission when @ChenYi015 If have time, we can take a look together to see if these suggestions are suitable @everpeace Or if there are any better suggestions, we can discuss them together |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cd6bae6
to
7926292
Compare
@Kevinz857 Thanks for your review.
hmmm.
Perhaps, you saw spark-operator/internal/controller/scheduledsparkapplication/controller.go Lines 109 to 112 in 4d6dd1d
Could you elaborate on your suggestion if I missed something?
hmmm. I think I already did. spark-operator/pkg/common/event.go Lines 33 to 38 in 4d6dd1d
Could you elaborate on your suggestion if I missed something?
Thanks. Fixed in b3f8e8c
I think it's already covered: spark-operator/internal/controller/sparkapplication/controller_test.go Lines 579 to 584 in 4d6dd1d
Could you elaborate on your suggestion if I missed something?
IIUC, the current |
… make it more descriptive Signed-off-by: Shingo Omura <everpeace@gmail.com>
7926292
to
b3f8e8c
Compare
@everpeace Thanks for your contribution ! @ChenYi015 I think the current submission can be merged. This commit will not have a destructive impact on the current core functionality. |
Purpose of this PR
This PR implements Suspend/Resume operation on SparkApplication.
Proposed changes:
Suspend: true|false
field inSparkApplicationSpec
**
--Suspend: true
-->SUSPENDING
-->SUSPENDED
(**
=any non-Terminal Application State)SUSPENDING | SUSPENDED
--Suspend: false
-->RESUMING
-->SUBMITTED
Fixes #2290
Change Category
Rationale
Supporting Suspend/Resume feature could make Kueue integration easier.
Checklist
Additional Notes