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

Document impact of DRA on scheduling #43907

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Nov 13, 2023

That pods with ResourceClaims get scheduled more slowly, but that this also affects other pods may be surprising and is worth calling out.

@k8s-ci-robot k8s-ci-robot added this to the 1.29 milestone Nov 13, 2023
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language labels Nov 13, 2023
Copy link

netlify bot commented Nov 13, 2023

👷 Deploy Preview for kubernetes-io-vnext-staging processing.

Name Link
🔨 Latest commit 725f68f
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/655351f960ca930008eeff23

@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 13, 2023
@tengqm
Copy link
Contributor

tengqm commented Nov 13, 2023

/lgtm

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

LGTM label has been added.

Git tree hash: 7315572cb02f166d75e4c522bafa581c47c64999

@sftim
Copy link
Contributor

sftim commented Nov 14, 2023

/sig node
/sig scheduling

@k8s-ci-robot k8s-ci-robot added sig/node Categorizes an issue or PR as relevant to SIG Node. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. labels Nov 14, 2023
@sftim
Copy link
Contributor

sftim commented Nov 14, 2023

/retitle Document impact of DRA on scheduling

@k8s-ci-robot k8s-ci-robot changed the title DRA scheduling impact Document impact of DRA on scheduling Nov 14, 2023
Comment on lines 165 to 173
{{< warning >}}

Scheduling of pods which use ResourceClaims is going to be slower because of
the additional communication that is required. Beware that this may also impact
pods that don't use ResourceClaims because only one pod at a time gets
scheduled, blocking API calls are made while handling a pod with
ResourceClaims, and thus scheduling the next pod gets delayed.

{{< /warning >}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Try this:

Suggested change
{{< warning >}}
Scheduling of pods which use ResourceClaims is going to be slower because of
the additional communication that is required. Beware that this may also impact
pods that don't use ResourceClaims because only one pod at a time gets
scheduled, blocking API calls are made while handling a pod with
ResourceClaims, and thus scheduling the next pod gets delayed.
{{< /warning >}}
{{< note >}}
Scheduling of pods that use ResourceClaims is going to be slower because of
the additional communication that is required. Beware that using ResourceClaims
in your cluster may also impact scheduling of pods that don't use ResourceClaims.
This impact happens because the kube-scheduler schedules one pod at a time;
blocking API calls are made while handling a pod with ResourceClaims, and thus
scheduling for other Pods in the scheduling queue is also delayed.
{{< /note >}}

Don't use a warning; it's not the best fit for this level of advice.


Once DRA is beta, we might want to add a one-line mention in https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/ about potential sources of scheduling delays, and link to this page for more detail of how DRA can contribute 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.

Changed to note and created an issue to track updating pod-lifecycle.

Copy link
Contributor

Choose a reason for hiding this comment

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

(the suggestion also proposed a wording tweak, though it's not immediately obvious from the diff)

That pods with ResourceClaims get scheduled more slowly, but that this also
affects other pods may be surprising and is worth calling out.
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 14, 2023
Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

We'd prefer to have this text updated for beta to match the docs style guide.

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

LGTM label has been added.

Git tree hash: baa251f2148d1908cdb3b3137b917d2823833de4

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sftim

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 Nov 14, 2023
@k8s-ci-robot k8s-ci-robot merged commit 4efddf9 into kubernetes:dev-1.29 Nov 14, 2023
6 checks passed
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. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants