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

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

Closed
gertcuykens opened this issue Dec 8, 2018 · 12 comments
Closed

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

gertcuykens opened this issue Dec 8, 2018 · 12 comments
Labels
theme/ui Anything related to the UI

Comments

@gertcuykens
Copy link

gertcuykens commented Dec 8, 2018

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

@gertcuykens gertcuykens changed the title UI: agent type (server or leaf) UI: agent type (server or leaf) and higlight leader Dec 8, 2018
@gertcuykens gertcuykens changed the title UI: agent type (server or leaf) and higlight leader UI: agent type (server or leaf) and highlight leader Dec 8, 2018
@pierresouchay
Copy link
Contributor

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

@gertcuykens
Copy link
Author

gertcuykens commented Dec 8, 2018

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

@johncowen
Copy link
Contributor

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

@gertcuykens
Copy link
Author

Yes in summary differentiate

  • leader
  • client
  • server

in the node tab with css for example border color

@pearkes pearkes added the theme/ui Anything related to the UI label Dec 12, 2018
@dfredell
Copy link

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.

@hannahhearth
Copy link
Contributor

@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?

@dfredell
Copy link

dfredell commented Aug 5, 2019

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.

@gertcuykens
Copy link
Author

@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

@hannahhearth
Copy link
Contributor

@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.

@stale
Copy link

stale bot commented Oct 21, 2019

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!

@stale stale bot added the waiting-reply Waiting on response from Original Poster or another individual in the thread label Oct 21, 2019
@stale
Copy link

stale bot commented Nov 20, 2019

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 👍

@stale stale bot closed this as completed Nov 20, 2019
@ghost
Copy link

ghost commented Jan 25, 2020

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 👍.

@ghost ghost locked and limited conversation to collaborators Jan 25, 2020
@ghost ghost removed waiting-reply Waiting on response from Original Poster or another individual in the thread labels Jan 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

No branches or pull requests

6 participants