Skip to content

DRA: CEL cost estimate during validation#129749

Merged
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
pohly:dra-cel-cost-estimate-during-validation
Jan 23, 2025
Merged

DRA: CEL cost estimate during validation#129749
k8s-ci-robot merged 1 commit intokubernetes:masterfrom
pohly:dra-cel-cost-estimate-during-validation

Conversation

@pohly
Copy link
Copy Markdown
Contributor

@pohly pohly commented Jan 22, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Compiling a CEL expression used to do the cost estimation, whether the caller needed the result or not. Now callers can disable it and that is done by the code which runs in the scheduler.

The main advantage is that failures in the estimator (like panics) are limited to the apiserver. Performance in the scheduler is not expected to benefit much because compilation results are cached.

Which issue(s) this PR fixes:

Related-to: #129690 (comment)

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

- [KEP]: https://github.com/kubernetes/enhancements/issues/4381

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Jan 22, 2025
@k8s-ci-robot k8s-ci-robot requested a review from bart0sh January 22, 2025 08:01
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 22, 2025
@k8s-ci-robot k8s-ci-robot requested a review from klueska January 22, 2025 08:01
@k8s-ci-robot k8s-ci-robot added sig/node Categorizes an issue or PR as relevant to SIG Node. wg/device-management Categorizes an issue or PR as relevant to WG Device Management. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jan 22, 2025
@pohly pohly changed the title DRA: cel cost estimate during validation DRA: CEL cost estimate during validation Jan 22, 2025
Compiling a CEL expression used to do the cost estimation, whether the caller
needed the result or not. Now callers can skip it. The scheduler does that,
through the CEL cache.

The main advantage is that failures in the estimator (like panics) are limited
to the apiserver. Performance in the scheduler is not expected to benefit much
because compilation results are cached.
@pohly pohly force-pushed the dra-cel-cost-estimate-during-validation branch from 978590a to d889bd1 Compare January 22, 2025 08:27
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pohly

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

The pull request process is described here

Details 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 Jan 22, 2025
@pohly
Copy link
Copy Markdown
Contributor Author

pohly commented Jan 22, 2025

/triage accepted
/priority important-longterm

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Jan 22, 2025
@pohly
Copy link
Copy Markdown
Contributor Author

pohly commented Jan 22, 2025

/assign @jpbetz

@jpbetz
Copy link
Copy Markdown
Contributor

jpbetz commented Jan 23, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 23, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 2dd16656f186c6ac7f3043485c9ae851be5aa073

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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. release-note-none Denotes a PR that doesn't merit a release note. sig/node Categorizes an issue or PR as relevant to SIG Node. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. triage/accepted Indicates an issue or PR is ready to be actively worked on. wg/device-management Categorizes an issue or PR as relevant to WG Device Management.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants