-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Describe the bug
After upgrading to v0.32.0, k9s started to response really slow when switching resources after few minutes of running.
To Reproduce
Steps to reproduce the behavior:
- Launch k9s in terminal
- Switch between resources/namespaces
- After several minutes, switching between resources becomes slow - taking up to 10-20 seconds, during which k9 is unresponsive
Historical Documents
INFO log show lines like this during the issue:
I0304 18:39:43.076819 114467 request.go:697] Waited for 18.03660912s due to client-side throttling, not priority and fairness, request: GET:https://API_URL/apis/RESOURCES_PATHS
Expected behavior
Namespace and resources switch should not take more than couple seconds (at least it didn't in previous versions).
Versions (please complete the following information):
- OS: Linux
- K9s: 0.32.0
- K8s: v1.24.17-eks-5e0fdde
Additional context
I also tried to clean ~/.kube/cache directory, but the issue keeps coming back.
To be fair, I have 120+ namespaces with deployments and jobs in each, but I guess something has been changed in client behavior in 0.32.0 that introduced this throttling and causes huge delays.