Skip to content

Conversation

ahg-g
Copy link
Member

@ahg-g ahg-g commented Aug 17, 2020

What type of PR is this?

/kind feature

What this PR does / why we need it:

This is a performance optimization that reduces the overhead of inter-pod affinity PreFilter calculaitons. Basically
eliminates that overhead when no pods in the cluster use required pod anti-affinity. This offered 20% improvement on 5k clusters for preferred anti-affinity benchmarks.

Does this PR introduce a user-facing change?:

Fixed a performance regression in 1.18+ with scheduler inter-pod affinity PreFilter calculations

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/feature Categorizes issue or PR as related to a new feature. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Aug 17, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Aug 17, 2020
@ahg-g
Copy link
Member Author

ahg-g commented Aug 17, 2020

/cc @Huang-Wei @alculquicondor

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 20, 2020
@ahg-g ahg-g force-pushed the ahg-anti-affinity branch from b4d91da to a5dae7c Compare August 20, 2020 17:09
@Huang-Wei
Copy link
Member

LGTM. Please squash.

This is a performance optimization that reduces the overhead of inter-pod affinity PreFilter calculaitons. Basically
eliminates that overhead when no pods in the cluster use required pod anti-affinity. This offered 20% improvement on 5k clusters for preferred anti-affinity benchmarks.
@ahg-g ahg-g force-pushed the ahg-anti-affinity branch from a5dae7c to a8873e1 Compare August 21, 2020 14:09
@ahg-g
Copy link
Member Author

ahg-g commented Aug 21, 2020

LGTM. Please squash.

done.

@Huang-Wei
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 21, 2020
@ahg-g
Copy link
Member Author

ahg-g commented Aug 21, 2020

/priority important-longterm

@k8s-ci-robot k8s-ci-robot added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Aug 21, 2020
@liggitt liggitt added this to the v1.20-phase-feature milestone Aug 28, 2020
@k8s-ci-robot k8s-ci-robot merged commit d239cdf into kubernetes:master Sep 8, 2020
@ahg-g
Copy link
Member Author

ahg-g commented Sep 15, 2020

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 15, 2020
ahg-g added a commit to ahg-g/kubernetes that referenced this pull request Sep 15, 2020
…pshot.

Cherry pick of kubernetes#94059 on release-1.19.

This is fixes a performance regression in the cluster autoscaler which started to execute PreFilter explicitly since 1.18.
k8s-ci-robot added a commit that referenced this pull request Sep 16, 2020
…upstream-release-1.19

Automated cherry pick of #94059: Track pods with required anti-affinity
k8s-ci-robot added a commit that referenced this pull request Sep 17, 2020
cherry pick of #94059: Track pods with required anti-affinity
@ahg-g ahg-g deleted the ahg-anti-affinity branch October 25, 2021 14:38
@liggitt liggitt added the kind/regression Categorizes issue or PR as related to a regression from a prior release. label Apr 26, 2022
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Sep 9, 2023
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/bug Categorizes issue or PR as related to a bug. kind/feature Categorizes issue or PR as related to a new feature. kind/regression Categorizes issue or PR as related to a regression from a prior release. 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 Denotes a PR that will be considered when it comes time to generate release notes. sig/scheduling Categorizes an issue or PR as relevant to SIG Scheduling. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants