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

Failed To Process Resource: Read Timed Out #105

Closed
samuel-esp opened this issue Oct 22, 2024 · 2 comments · Fixed by #106
Closed

Failed To Process Resource: Read Timed Out #105

samuel-esp opened this issue Oct 22, 2024 · 2 comments · Fixed by #106
Assignees
Labels
enhancement New feature or request

Comments

@samuel-esp
Copy link
Collaborator

samuel-esp commented Oct 22, 2024

Issue

In some circumstances that I still wasn't able to replicate, KubeDownscaler will timeout when processing a resources. This is most probably caused by a slow communication between the Pod and the Kubernetes API Server. This may happen because a network bottleneck or because the API Server itself is busy processing other requests

Problem to solve

Let the user adjust this KubeDownscaler timeout (inherited from PyKube library) using an argument

Proposal

Parametrize, inside scaler.py, the pykube constant pykube.http.DEFAULT_HTTP_TIMEOUT to a value that can be choosen by the user using an argument inside KubeDownscaler deployment

@samuel-esp samuel-esp changed the title Failed To Process resource: Failed To Process Resource: Read timed out Oct 22, 2024
@samuel-esp samuel-esp changed the title Failed To Process Resource: Read timed out Failed To Process Resource: Read Timed Out Oct 22, 2024
@samuel-esp
Copy link
Collaborator Author

The problem was first mentioned in issue #96. It firstly seemed a code regression but after further verifcations this option was ruled out

@samuel-esp
Copy link
Collaborator Author

The feature that solves this issue, introduced with #106, contained a wrong monkeypatch of the timeout value. It is going to be fixed by #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants