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

fix: Correct limit in controller List API calls. Fixes #11134 #11343

Merged
merged 2 commits into from
Jul 13, 2023

Conversation

terrytangyuan
Copy link
Member

@terrytangyuan terrytangyuan commented Jul 12, 2023

Fixes #11134.

The reason for this change is that resourceVersion=0 does not honor the limit in API calls (related issue kubernetes/kubernetes#59684 (comment)), which results in making significant LIST calls without limit. Below are some screenshots from experiments (credit to Jesse). Same results for other non-pod resources.

image
image

Even though we may see limit=100&resourceVersion=0 in the controller logs, the API server does not honor the limit.

@terrytangyuan terrytangyuan changed the title fix: Unset resourceVersion for LIST calls in controller. Fixes #11134 fix: Correct pagination and remove unexpected List calls in the controller. Fixes #11134 Jul 13, 2023
@terrytangyuan terrytangyuan changed the title fix: Correct pagination and remove unexpected List calls in the controller. Fixes #11134 fix: Correct limit in controller List API calls. Fixes #11134 Jul 13, 2023
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@terrytangyuan terrytangyuan merged commit 43d667e into master Jul 13, 2023
35 checks passed
@terrytangyuan terrytangyuan deleted the dev-fix-list-load branch July 13, 2023 18:48
terrytangyuan added a commit that referenced this pull request Jul 19, 2023
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
dpadhiar pushed a commit to dpadhiar/argo-workflows that referenced this pull request May 9, 2024
…argoproj#11343)

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
@fyp711
Copy link
Contributor

fyp711 commented Aug 13, 2024

@terrytangyuan Hi, This code overwrites the last resourceversion recorded by informer. All List requests request etcd directly, resulting in an etcd overload. Could i ask why always set ResourceVersion="" ? .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected number of Get workflowtemplates API calls
3 participants