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

consul members command #18152

Closed
Lord-Y opened this issue Jul 17, 2023 · 3 comments · Fixed by #18223
Closed

consul members command #18152

Lord-Y opened this issue Jul 17, 2023 · 3 comments · Fixed by #18223
Assignees

Comments

@Lord-Y
Copy link
Contributor

Lord-Y commented Jul 17, 2023

Hello guys,

While doing consul members, it's very useful to know who is the leader on each datacenters.
Having -detailed option doesn't provide this information.

An another thing that is useful is to have -dc filter. It's useful especially when we have multiple datacenter federated.
Can you guys make it happen?

@huikang
Copy link
Collaborator

huikang commented Jul 19, 2023

  • To find leader you can use the consul raft subcommand: consul operator raft list-peers

An another thing that is useful is to have -dc filter. It's useful especially when we have multiple datacenter federated.
Can you guys make it happen?

Are you proposing something like consul members -wan -dc dc-name?

@Lord-Y
Copy link
Contributor Author

Lord-Y commented Jul 20, 2023

@huikang Thx for the raft/operator commands.
For the 2nd command that's exactly what I'm talking about.

@huikang
Copy link
Collaborator

huikang commented Jul 21, 2023

@Lord-Y , let me see if I can have something quickly.

@huikang huikang self-assigned this Jul 21, 2023
huikang added a commit that referenced this issue Jul 25, 2023
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 a pull request may close this issue.

2 participants