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-master: fix retry of node updates #1425

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Oct 20, 2023

This patch addresses issues with slow node status (extended resources) updates. Previously we did just a few retries in quick succession which could result in the node update failing, just because node status was updated slower than our retry window. The patch mitigates the issue by increasing the number of tries to 15. In addition, it creates a ratelimiter with a longer per-item (per-node) base delay.

The patch also fixes the e2e-tests to expose the issue.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 20, 2023
@netlify
Copy link

netlify bot commented Oct 20, 2023

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit a9849f2
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/65328d969c897c000816bbc0
😎 Deploy Preview https://deploy-preview-1425--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.

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 20, 2023
This patch addresses issues with slow node status (extended resources)
updates. Previously we did just a few retries in quick succession which
could result in the node update failing, just because node status was
updated slower than our retry window. The patch mitigates the issue by
increasing the number of tries to 15. In addition, it creates a
ratelimiter with a longer per-item (per-node) base delay.

The patch also fixes the e2e-tests to expose the issue.
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 20, 2023
@marquiz
Copy link
Contributor Author

marquiz commented Oct 20, 2023

/assign @ArangoGutierrez

Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

oh yeah, testing annotations was super weird, thanks for this
/lgtm

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

LGTM label has been added.

Git tree hash: fb00e05fe8d0a4089bd1fa6846dbb31777c31d2a

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ArangoGutierrez, 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:
  • OWNERS [ArangoGutierrez,marquiz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #1425 (a9849f2) into master (b6231b6) will increase coverage by 0.06%.
The diff coverage is 88.88%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1425      +/-   ##
==========================================
+ Coverage   30.33%   30.39%   +0.06%     
==========================================
  Files          58       58              
  Lines        7481     7488       +7     
==========================================
+ Hits         2269     2276       +7     
  Misses       4965     4965              
  Partials      247      247              
Files Coverage Δ
pkg/nfd-master/node-updater-pool.go 78.68% <88.88%> (+2.76%) ⬆️

@k8s-ci-robot k8s-ci-robot merged commit 5a5892a into kubernetes-sigs:master Oct 20, 2023
12 checks passed
@marquiz marquiz deleted the devel/node-update-fix branch October 20, 2023 15:05
@marquiz
Copy link
Contributor Author

marquiz commented Oct 20, 2023

/cherry-pick release-0.14

@k8s-infra-cherrypick-robot

@marquiz: new pull request created: #1427

In response to this:

/cherry-pick release-0.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants