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

Client side throttling #173

Open
Tracked by #174
VanillaSpoon opened this issue Nov 9, 2023 · 0 comments
Open
Tracked by #174

Client side throttling #173

VanillaSpoon opened this issue Nov 9, 2023 · 0 comments

Comments

@VanillaSpoon
Copy link
Contributor

VanillaSpoon commented Nov 9, 2023

Describe the Bug

Instascale appears to be experiencing client-side throttling from the concurrent requests to the Kubernetes API.

Upon setup the logs display:

I1109 12:21:14.184474 1 request.go:690] Waited for 1.046770548s due to client-side throttling, not priority and fairness, request: GET:https://172.30.0.1:443/apis/nfd.openshift.io/v1alpha1?timeout=32s

I'm opening this issue to start a discussion on reasonable solutions on overcoming the client-side throttling

Codeflare Stack Component Versions

Please specify the component versions in which you have encountered this bug.
Instascale

What Have You Already Tried to Debug the Issue?

Whilst looking into causes, I increased the Burst, and QPS values for restconfig from their defaults(qps=20, burst=30) to 50, and 100. This resolved the throttling, however, as Client-side throttling is a protective measure to prevent the Kubernetes API server from being overwhelmed by too many requests in a short amount of time. and QPS defines the number of queries per second the client can make beyond which throttling is expected to happen, and Burst defines the maximum burst for throttle-free requests, changing these values is not a solution but rather a means of finding where the throttling was occurring.

Screenshots, Console Output, Logs, etc.

Add screenshots of UIs (like dashboards), etc. that help explain the issue.

│ I1109 12:21:14.184474       1 request.go:690] Waited for 1.046770548s due to client-side throttling, not priority and fairness, request: GET:https://172.30.0.1:443/apis/nfd.openshift.io/v1alpha1?timeout=32s                             │
│ 2023-11-09T12:21:16Z    INFO    controller-runtime.metrics    Metrics server is starting to listen    {"addr": "127.0.0.1:8080"}                                                                                                           │
│ 2023-11-09T12:21:16Z    INFO    setup    starting manager                                                                                                                                                                                  │
│ 2023-11-09T12:21:16Z    INFO    Starting server    {"kind": "health probe", "addr": ":8081"}                                                                                                                                               │
│ 2023-11-09T12:21:16Z    INFO    Starting server    {"path": "/metrics", "kind": "metrics", "addr": "127.0.0.1:8080"}                                                                                                                       │
│ I1109 12:21:16.841811       1 leaderelection.go:248] attempting to acquire leader lease instascale-system/03fb6faf.my.domain...                                                                                                            │
│ I1109 12:21:35.107635       1 leaderelection.go:258] successfully acquired lease instascale-system/03fb6faf.my.domain          

Add any other information you think might be useful here.

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

No branches or pull requests

1 participant