hashicorp / memberlist

Golang package for gossip based membership and failure detection
Mozilla Public License 2.0
3.61k stars 435 forks source link

Feature request: Update state of node in memberlist #266

Open y-eight opened 2 years ago

y-eight commented 2 years ago

Currently, the state property of a node in the memberlist is not updated.

for _, member := range mesh.Members() {
    fmt.Printf("Member: %s %v\n", member.Name, member.State)
}

2 nodes in cluster:

Member: node8082 0
Member: node8081 0

2nd Node timeout - not reachable anymore. Global health score changes to a higher score. The state of the 2nd Node in the memberlist does not change.

Expected: State of the Node in memberlist changes to a higher score, e.g.

Member: node8082 0
Member: node8081 1

...

Question: Any other possibilities to get the health status of a single node in the memberlist at the moment?