-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: turn healthCheckHttpClient timeout from 500ms to 3s #1321
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Max batleforc <maxleriche.60@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: batleforc The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @batleforc. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
Setup in a working environment, with the linked PR work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@batleforc Thank you for the PR :)
I assume you're submitting this PR with the hopes of getting it into upstream DWO (and Che) rather than just making changes for your own testing, correct?
Rather than change the default timeout as part of your PR, my gut instinct is we should instead expose a configuration option in the DevWorkspaceOperatorConfig that would allow users to customize the healthCheckHttpClient timeout. Then you could configure the timeout to your desired value from there.
If you're okay with reworking your PR to do this, let me know and I can help guide you further.
@@ -70,7 +70,7 @@ func setupHttpClients(k8s client.Client, logger logr.Logger) { | |||
} | |||
healthCheckHttpClient = &http.Client{ | |||
Transport: healthCheckTransport, | |||
Timeout: 500 * time.Millisecond, | |||
Timeout: 3 * 500 * time.Millisecond, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would actually be 1500 ms (1.5s) instead of 3s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without a doubt a checkout of a stash to high, the test that I deployed was set to a hard coded 3s
/ok-to-test |
HI @AObuchow, |
Instead of increasing the timeout, what about returning a @batleforc does that work for your use case? We do something similar when waiting for the workspace deployment to be ready:
devworkspace-operator/controllers/workspace/devworkspace_controller.go Lines 485 to 489 in 0055cb6
|
I think that it could fix the problem, totally answer my case @dkwon17, and could remove the need of changing the Che operator source code. |
And your answer wouldn't lock the operator on this action and potentially unlock the process for future action |
What does this PR do?
It change the timeout of the healthcheck client from 500ms to 3s
What issues does this PR fix or reference?
Linked to eclipse-che/che#23067
Is it tested? How?
In progress
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-path
to trigger)v8-devworkspace-operator-e2e
: DevWorkspace e2e testv8-che-happy-path
: Happy path for verification integration with Che