Skip to content

calico: don't set calico-node cpu limits by default#11914

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
VannTen:fix/calico_node_no_default_cpu_limit
Jan 23, 2025
Merged

calico: don't set calico-node cpu limits by default#11914
k8s-ci-robot merged 1 commit intokubernetes-sigs:masterfrom
VannTen:fix/calico_node_no_default_cpu_limit

Conversation

@VannTen
Copy link
Copy Markdown
Contributor

@VannTen VannTen commented Jan 22, 2025

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Upstream calico isn't doing that, and:

  • this can cause throttling
  • the cpu needed by calico is very cluster / workload dependent
  • missing cpu limits will not starve other pods (unlike missing memory
    requests), because the kernel scheduler will still gives priority to
    other process in pods not exceeding their requests

See the slack thread for further details: https://kubernetes.slack.com/archives/C2V9WJSJD/p1737468771207299

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

calico-node pods no longer have a cpu limit by default

Upstream calico isn't doing that, and:
- this can cause throttling
- the cpu needed by calico is very cluster / workload dependent
- missing cpu limits will not starve other pods (unlike missing memory
  requests), because the kernel scheduler will still gives priority to
  other process in pods not exceeding their requests
@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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 22, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: VannTen

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 22, 2025
@HoKim98
Copy link
Copy Markdown
Member

HoKim98 commented Jan 22, 2025

In my personal opinion, according to "https://docs.tigera.io/calico/latest/getting-started/kubernetes/hardway/install-node#install-daemon-set", there seems to be no memory constraints (requests, limits). I think it would be nice to do the same for constraints other than calico_node_cpu_limit!

@VannTen
Copy link
Copy Markdown
Contributor Author

VannTen commented Jan 22, 2025 via email

@yankay
Copy link
Copy Markdown
Member

yankay commented Jan 23, 2025

Thanks @VannTen @HoKim98
/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 k8s-ci-robot merged commit 2a7b50a into kubernetes-sigs:master Jan 23, 2025
lunkan93 pushed a commit to elastisys/kubespray that referenced this pull request Mar 10, 2025
…11914)

Upstream calico isn't doing that, and:
- this can cause throttling
- the cpu needed by calico is very cluster / workload dependent
- missing cpu limits will not starve other pods (unlike missing memory
  requests), because the kernel scheduler will still gives priority to
  other process in pods not exceeding their requests
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. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants