Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Finding out the leader of the cluster.

35 views
Skip to first unread message

AJ

unread,
Oct 29, 2024, 2:01:23 PM10/29/24
to raft-dev
I bring up 3 nodes and join them. Each time, there is a change in the leadership state, the leader channel (https://github.com/hashicorp/raft/blob/main/api.go#L128) is updated where the node can know its own state. However, I want to know the current leader of the entire cluster. 

I am not sure if the leader channel can provide this information. 

Can someone refer me to any specific channel or callback function that provides this? 

Thank you,
AJ. 

Philip O'Toole

unread,
Oct 29, 2024, 8:17:29 PM10/29/24
to raft...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "raft-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to raft-dev+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/raft-dev/dda2144e-597f-4eec-9db7-e134ba4db6den%40googlegroups.com.

AJ

unread,
Nov 3, 2024, 3:52:15 PM11/3/24
to raft-dev
Thanks!
Reply all
Reply to author
Forward
0 new messages