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

fix: ping etcd #5

Merged
merged 1 commit into from
Oct 26, 2023
Merged

fix: ping etcd #5

merged 1 commit into from
Oct 26, 2023

Conversation

rfyiamcool
Copy link
Collaborator

@rfyiamcool rfyiamcool commented Sep 26, 2023

summary

If etcd server don't run, we will block on the grant until the etcd server can connect.

I think it can be done this way, when creating the elector, check whether etcd is available.

after add pingEtcd, we can fast detect etcd, if etcd is not available, return error direct. 😅

image

image

Signed-off-by: rfyiamcool <[email protected]>
@JohnRoesler JohnRoesler merged commit 7e41b81 into main Oct 26, 2023
3 checks passed
@JohnRoesler JohnRoesler deleted the fix/dial_failfast branch October 26, 2023 14:47
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.

2 participants