Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Slowness due to client-side throttling in v0.32.0 #2582

@Ubiquitine

Description

@Ubiquitine




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:

  1. Launch k9s in terminal
  2. Switch between resources/namespaces
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions