-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
etcdctl cluster-health are not consistent #2650
Comments
etcdctl needs to reach the leader to verify the cluster information. My best guess is the etcdctl on machine 1 cannot reach etcd running on machine 2 for some reason. we might make the local etcd be able to check the cluster info for the client. |
@xiang90 how to check the cluster info for the client? I found the cluster leader info not exists on local etcd. why etcd cluster data is not consistent? thanks test-0-1
test-0-2
|
I am seeing a very similar problem with 2.0.10. (CoreOS 675) and the machines can access each other fine (they are running locally on VirtualBox on OS X). Situation:
node 2 started with:
then on node 1 I run at this point, node 1 reports "cluster healthy" and lists both members. node 2 reports "cluster unhealthy" but So it seems just that |
@holmes86 @SpencerBrown You need to set correct client URLs to make it work well. Here are more details(#2567 (comment)):
|
@yichengq You are absolutely correct, and the doc is incomplete in its example. I will submit a PR for the doc. (btw was good to see you at CoreOS Fest) I added advertise-client-urls and listen-client-urls parameters to the nodes and everything works perfectly now in my scenario. Node 1:
Node 2:
|
@SpencerBrown I think your PR is a good one. Could you send it to upstream? |
Thank you for this info. I've added -advertise-client-urls and this problem went away. |
I run two members of etcd cluseter on centos7. one of cluster run "etcdctl cluster-health" getting cluseter status is health, but another "etcdctl cluster-health" getting cluster status is unhealth. the cluster health is ok when etcd started.
the etcd version is 2.0.3, the config file is as follow:
test-0-1:/etc/etcd/etcd.conf:
test-0-2:/etc/etcd/etcd.conf:
thanks
The text was updated successfully, but these errors were encountered: