-
Notifications
You must be signed in to change notification settings - Fork 671
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
[FEAT] add driverPod/executorPod in Spark #6085
Open
machichima
wants to merge
8
commits into
flyteorg:master
Choose a base branch
from
machichima:4105-spark-driver-executor-podtemplate
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[FEAT] add driverPod/executorPod in Spark #6085
machichima
wants to merge
8
commits into
flyteorg:master
from
machichima:4105-spark-driver-executor-podtemplate
+436
−96
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add driverPod/executorPod field in SparkJob class and use them as Spark driver and executor Signed-off-by: machichima <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6085 +/- ##
==========================================
- Coverage 37.10% 36.98% -0.13%
==========================================
Files 1318 1318
Lines 132331 132570 +239
==========================================
- Hits 49097 49026 -71
- Misses 78961 79280 +319
+ Partials 4273 4264 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
fix protobuf number mismatch pass K8sPod instead of annotation and label separately Signed-off-by: machichima <[email protected]>
successfully apply pods specify in SparkJob Signed-off-by: machichima <[email protected]>
Signed-off-by: machichima <[email protected]>
Signed-off-by: machichima <[email protected]>
machichima
force-pushed
the
4105-spark-driver-executor-podtemplate
branch
from
December 15, 2024 15:21
ae39e8f
to
394c269
Compare
Signed-off-by: machichima <[email protected]>
machichima
force-pushed
the
4105-spark-driver-executor-podtemplate
branch
from
December 20, 2024 14:59
394c269
to
da4199b
Compare
Signed-off-by: machichima <[email protected]>
3 tasks
machichima
changed the title
[WIP] feat: add driverPod/executorPod in Spark
[FEAT] add driverPod/executorPod in Spark
Dec 20, 2024
Signed-off-by: machichima <[email protected]>
machichima
force-pushed
the
4105-spark-driver-executor-podtemplate
branch
from
December 21, 2024 03:14
c3eed97
to
70cfdff
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tracking issue
#4105
Why are the changes needed?
Enable setting K8sPod separately for Spark Driver and Executor pods.
What changes were proposed in this pull request?
Add driverPod and executorPod field with type K8sPod in SparkJob. Uses existing
mergePodSpecs
to merge default podSpec with our driverPod or executorPod.How was this patch tested?
Unit tests
I extended the existing Spark unit test
TestBuildResourceContainer
andTestBuildResourcePodTemplate
and create a new test namedTestBuildResourceCustomK8SPod
for testing.Test with my_spark example
Modified the
@task
forhello_spark
function in ``my_spark` example here as follow to set the driver_pod and executor_pod.Verify the pods have Tolerations and EnvVar set.
Setup process
Screenshots
Check all the applicable boxes
Related PRs
flyteorg/flytekit#3016
Docs link