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

*: check health by using v3 range request and its corresponding timeout #12195

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

tangcong
Copy link
Contributor

@tangcong tangcong commented Aug 3, 2020

etcd v2 is closed by default since 3.4, but the health check currently uses v2 QGet, the timeout is only 1 second, it is easier to time out when the load increases slightly.
this pr checks health by using v3 range request and its corresponding timeout. if the user enables v2, it will compatible with old logic.

@gyuho
Copy link
Contributor

gyuho commented Aug 11, 2020

Can we highlight this change in CHANGELOGs? Otherwise, lgtm.

@tangcong
Copy link
Contributor Author

updated. thanks. @gyuho

Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thx!

@gyuho gyuho merged commit fe36be2 into etcd-io:master Aug 12, 2020
@tangcong tangcong deleted the optimize-healthcheck branch February 26, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants