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

[multikueue] Use batch/Job spec.managedBy field. #2331

Merged
merged 6 commits into from
Jun 5, 2024

Conversation

trasc
Copy link
Contributor

@trasc trasc commented May 30, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

Use spec.managedBy to detect delegatable jobs.
Enable live status updates for batch/Jobs.
No longer keep the multikueue admission check state Pending when the job is running in a worker cluster.

Which issue(s) this PR fixes:

Relates to #693

Special notes for your reviewer:

Does this PR introduce a user-facing change?

MultiKueue: Use batch/Job `spec.managedBy` field

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. labels May 30, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 30, 2024
Copy link

netlify bot commented May 30, 2024

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit 359134f
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/66605e66018a98000870a75b

@alculquicondor
Copy link
Contributor

/assign @mimowo

@trasc
Copy link
Contributor Author

trasc commented Jun 4, 2024

@alculquicondor @mimowo @mwielgus

We could also keep the old integration approach and put the spec.managedBy support under kueue featuregate (say MultiKueueBetchJobWithManage) WDYT?

@mimowo
Copy link
Contributor

mimowo commented Jun 4, 2024

@alculquicondor @mimowo @mwielgus

We could also keep the old integration approach and put the spec.managedBy support under kueue featuregate (say MultiKueueBetchJobWithManage) WDYT?

+1 sounds like a good idea.

It will let users configure kueue according to their k8s configuration. Yet, we will not introduce API configuration which may turn out unnecessary over time.

@k8s-ci-robot k8s-ci-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 5, 2024
@trasc trasc force-pushed the multikueue-job-managed-by branch from 5387923 to 1ce0cf4 Compare June 5, 2024 06:50
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 5, 2024
@tenzen-y
Copy link
Member

tenzen-y commented Jun 5, 2024

@trasc Thank you for responding to my questions. It seems that I missed reading codes somehow.
Now, everything is clear. So feel free to close my thread.

@tenzen-y
Copy link
Member

tenzen-y commented Jun 5, 2024

@alculquicondor @mimowo @mwielgus

We could also keep the old integration approach and put the spec.managedBy support under kueue featuregate (say MultiKueueBetchJobWithManage) WDYT?

SGTM

@trasc trasc force-pushed the multikueue-job-managed-by branch from 1ce0cf4 to e1ded24 Compare June 5, 2024 08:25
trasc added 4 commits June 5, 2024 13:13
Use `spec.managedBy` to detect delegatable jobs.
Enable live status updates for batch/Jobs.
No longer keep the multikueue admission check state `Pending`
when the job is running in a worker cluster.
@trasc trasc force-pushed the multikueue-job-managed-by branch from e1ded24 to cbb7107 Compare June 5, 2024 10:34
Copy link
Contributor

@mimowo mimowo left a comment

Choose a reason for hiding this comment

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

LGTM, one naming nit from me.

I think we should also have defaulting of managedBy field for Jobs, as we do for JobSet. when the feature gate is enabled.

@trasc would you like to extend this PR or follow up?

pkg/features/kube_features.go Outdated Show resolved Hide resolved
@trasc
Copy link
Contributor Author

trasc commented Jun 5, 2024

I think we should also have defaulting of managedBy field for Jobs, as we do for JobSet. when the feature gate is enabled.

@trasc would you like to extend this PR or follow up?

Foillow-up I think @mbobrovskyi has some experience around this topic.

PrioritySortingWithinCohort: {Default: true, PreRelease: featuregate.Beta},
MultiKueue: {Default: false, PreRelease: featuregate.Alpha},
LendingLimit: {Default: false, PreRelease: featuregate.Alpha},
MultiKueueBatchJobWithManagadBy: {Default: false, PreRelease: featuregate.Alpha},
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
MultiKueueBatchJobWithManagadBy: {Default: false, PreRelease: featuregate.Alpha},
MultiKueueBatchJobWithManagedBy: {Default: false, PreRelease: featuregate.Alpha},

almost there :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@trasc trasc force-pushed the multikueue-job-managed-by branch from 8beb725 to 0486135 Compare June 5, 2024 12:10
@mimowo
Copy link
Contributor

mimowo commented Jun 5, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 5, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: c5295e560277a3d5f7d1a565c48a78ec03f90d2e

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mimowo, trasc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 5, 2024
@k8s-ci-robot k8s-ci-robot merged commit d49cb51 into kubernetes-sigs:main Jun 5, 2024
16 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.8 milestone Jun 5, 2024
@trasc trasc deleted the multikueue-job-managed-by branch June 5, 2024 13:14
Fiona-Waters pushed a commit to Fiona-Waters/kueue that referenced this pull request Jun 25, 2024
)

* [multikueue] Use batch/Job `spec.managedBy` field.

Use `spec.managedBy` to detect delegatable jobs.
Enable live status updates for batch/Jobs.
No longer keep the multikueue admission check state `Pending`
when the job is running in a worker cluster.

* Review remarks

* [multikueue] Add `MultiKueueBatchJobWithManageBy` featuregate

* Review remarks

* Review remarks

* Fix linter issues.
@alculquicondor
Copy link
Contributor

/release-note-edit

MultiKueue: Use batch/Job `spec.managedBy` field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants