Consul: UI: agent type (server or leaf) and highlight leader

Created on 8 Dec 2018  路  12Comments  路  Source: hashicorp/consul

http://127.0.0.1:8500/ui/dc/nodes

I think there is plenty of room and colors left to indicate which nodes are real servers and who is leader :)

Also there doesn't seem to be a API way to show the node type like consul members does?

image

themui

All 12 comments

I think the consul service is what you are looking for, however leader information is not available AFAIK in catalog

image

Ok your right http://127.0.0.1:8500/ui/dc0/services/consul does show the servers, but it's a bit on the edge of knowing what to look for. Don't think it's far fetched to show consul information on the Nodes tab. We can introduce for example color borders. Black border is a leaf node. Magenta border consul server. And party parrot the leader :D

Hey folks 馃憢

I was actually looking at something related to this the other day. It sounds like what you might be asking for is a mix of what we already have plus possibly:

https://www.consul.io/api/status.html#get-raft-leader
https://www.consul.io/api/status.html#list-raft-peers
https://www.consul.io/api/agent.html#list-members

?

Does that sound right?

Thanks,

John

Yes in summary differentiate

  • leader
  • client
  • server

in the node tab with css for example border color

I agree it would be nice to know from the UI which consul node is the leader. Currently I just hit the /v1/status/leader url.
I think a good way to represent leader would with an icon, maybe next to the green heath check. Just using a color wouldn't work for someone color blind, or using a screen reader.

@gertcuykens, we've got a PR in (see open PR link above) for part of this request, the leader UI.

image

Curious to hear more about your interest in seeing server and client information as well. What sort of tasks or use cases would that extra information help you achieve faster or easier? What decisions would that help you make?

For me, I like knowing which node is the leader when I'm doing a rolling update. I will scale up to 6 consul servers. Stop the two old non leaders, then the old leader do a consul leave then stop the old leader. That way an old non leader doesn't become a leader for a minute. Probably not necessary but makes me happy.

@opihana

From consul doc

Within each datacenter, we have a mixture of clients and servers. It is expected that there be between three to five servers. This strikes a balance between availability in the case of failure and performance, as consensus gets progressively slower as more machines are added. However, there is no limit to the number of clients, and they can easily scale into the thousands or tens of thousands.

So basically you want a small number of servers and allot of clients, so it matters allot if it's a server or a client. If you spin up servers by accident instead of clients, you would have a false impression everything is ok

@dfredell and @gertcuykens Great feedback, thank you. Your point, Gert, is more about making sure you understand the ratio of servers to clients easily. I'll keep that in mind when designing client/server indications on this page.

Hey there,
We wanted to check in on this request since it has been inactive for at least 60 days.
If you think this is still an important issue in the latest version of Consul
or its documentation please reply with a comment here which will cause it to stay open for investigation.
If there is still no activity on this issue for 30 more days, we will go ahead and close it.

Feel free to check out the community forum as well!
Thank you!

Hey there, This issue has been automatically closed because there hasn't been any activity for at least 90 days. If you are still experiencing problems, or still have questions, feel free to open a new one :+1:

Hey there,

This issue has been automatically locked because it is closed and there hasn't been any activity for at least _30_ days.

If you are still experiencing problems, or still have questions, feel free to open a new one :+1:.

Was this page helpful?
0 / 5 - 0 ratings