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

Set a timeout for the Etcdclient #80

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

wallrj
Copy link
Contributor

@wallrj wallrj commented Nov 12, 2019

Part of #77

This introduces a 1s time limit on the Etcdclient requests

@wallrj wallrj requested a review from JamesLaverack November 15, 2019 12:22
@JamesLaverack
Copy link
Contributor

So we've since changed the kubebuilder tests to fake etcdclient. So this shouldn't be an issue anymore (?). However, I agree with the general idea of a timeout to contact etcd. Is 150ms too short? What's that a timeout to? DNS resolution? First byte of actual data? Full response?

@adamhosier
Copy link
Contributor

@JamesLaverack i believe its the time until the response headers are fully received (so that the longpolling watch operations dont fail after the timeout expires). but +1 to incresing the timeout - how does 1s sound?

@wallrj
Copy link
Contributor Author

wallrj commented Nov 15, 2019

Changed it to a 1 second timeout.

@wallrj wallrj merged commit d75993b into improbable-eng:master Nov 18, 2019
@wallrj wallrj deleted the etcd-timeout branch November 18, 2019 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants