-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
There're no cluster level command to show all the members' status/health in V3 #8117
Comments
The current behavior shouldn't be changed, but I think it's reasonable to extend etcdctl to support a flag like |
--cluster can be confusing. Let's say we have a cluster with 3 members and 3 endpoints: a, b, c. As a user with the --cluster option enabled, I would lazily just put We have seen this so many times... So I would just want to force users to put in ALL endpoints when they want to do a checking correctly. |
@xiang90 it can say it can't fetch the member list given the one endpoint that was provided. Is that still confusing? |
That would be better. Just do not report the cluster is not healthy or things like that :P. |
Queries the cluster for endpoints to use for the endpoint commands. Fixes etcd-io#8117
Query the cluster for endpoints when given --cluster for the endpoint commands. Fixes etcd-io#8117
Query the cluster for endpoints when given --cluster for the endpoint commands. Fixes etcd-io#8117
Queries the cluster for endpoints to use for the endpoint commands. Fixes etcd-io#8117
Queries the cluster for endpoints to use for the endpoint commands. Fixes etcd-io#8117
Problem state
In V2, the command
etcdctl cluster health
checks all the members' health status. And in V3, there's 1 command, 2 sub-commands to check the member's health status -etcdctl endpoint status
andetcdctl endpoint health
.However, the V3 commands are difficult to use cause they only check the endpoints' status/health provided by option
--endpoints
. It is needed to collect all the endpoints first, and then set into the endpoints option.There's one issue created #8115 first to implement the feature to collect all the members' status/health.
It is supposed to be the design instead of implementation. I hope there is one command to check the cluster status instead of only the endpoints provided.
The confusion part is that there is already one command which can make this.
I propose to change the logic of
endpoint status
,endpoint health
to collect all the endpoints and check the health of them. It is implemented by PR: #8116The text was updated successfully, but these errors were encountered: