-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Admission controllers can cause unnecessary significant load on apiserver #22422
Comments
To clarify, it was adopted in |
@derekwaynecarr - it took me some time, but was useful experience. Thanks for assigning yourself. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/reopen |
@aimuz: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
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. |
relates to kubernetes#22422 and kubernetes#123806 Signed-off-by: Flavian Missi <fmissi@redhat.com>
Recently we observed high latencies on POST pods on our scalability tests.
For more context see: #22340
It appeared to be throttling related, e.g.:
As an example look at resource quota admission controller.
In #20446 there was some fallback added to use lru cache in case of on objects.
However, not what happens if we are sending multiple POST pods at the same time to apiserver.
What happens in Admit() if there are no results in Indexer, we list ResourceQuotas.
But if there are multiple calls at the same time, there can be multiple LISTs before the cache is updated:
https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/admission/resourcequota/admission.go#L131
But this can cause throttling of these requests.
What we should do is: if there is List() in flight, we should wait until it is finished and lookupCache is updated.
@derekwaynecarr
The text was updated successfully, but these errors were encountered: