Skip to content

Commit

Permalink
Add learner to degraded state indication
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Apr 30, 2024
1 parent f24591f commit c5db9ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/clustering.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ func clusterMembersUI(w http.ResponseWriter, r *http.Request) {
status := "healthy" // full liveness
if drained {
status = "drained"
} else if members[i].Name == "" {
} else if members[i].IsStarted() {
status = "connecting..."
} else if members[i].IsLearner {
status = "learner"
}

d.Members = append(d.Members, MembershipDTO{
Expand Down

0 comments on commit c5db9ba

Please sign in to comment.