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

nfd-gc: use paging when listing CRs #1815

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Jul 26, 2024

List NodeFeature and NodeResourceTopology objects in pages of 200 items. This reduces memory consumption and eliminates timeouts (on the apiserver side) in big clusters of thousands of nodes.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marquiz

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. 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 Jul 26, 2024
Copy link

netlify bot commented Jul 26, 2024

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit 45164f5
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/66ac6cf91d61f9000945a2b1
😎 Deploy Preview https://deploy-preview-1815--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@marquiz
Copy link
Contributor Author

marquiz commented Jul 26, 2024

Depends on #1813
/hold

/assign @ArangoGutierrez @PiotrProkop
/cc @ahmetb

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 26, 2024
@k8s-ci-robot k8s-ci-robot requested a review from ahmetb July 26, 2024 14:30
@marquiz marquiz force-pushed the devel/gc-paging branch 2 times, most recently from 754b2fa to 5707f05 Compare July 26, 2024 17:12
pkg/nfd-gc/nfd-gc.go Outdated Show resolved Hide resolved
List NodeFeature and NodeResourceTopology objects in pages of 200 items.
This reduces memory consumption and eliminates timeouts (on the
apiserver side) in big clusters of thousands of nodes.
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 2, 2024
@marquiz
Copy link
Contributor Author

marquiz commented Aug 2, 2024

Rebased. #1813 merged
/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 2, 2024
@marquiz
Copy link
Contributor Author

marquiz commented Aug 2, 2024

/retest

@PiotrProkop
Copy link
Contributor

/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 2, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: f99909be92bbc2f4271fbd075c1fd70ec15ec9e5

@k8s-ci-robot k8s-ci-robot merged commit 13d5a4f into kubernetes-sigs:master Aug 2, 2024
10 checks passed
@marquiz marquiz deleted the devel/gc-paging branch August 5, 2024 05:27
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants