From c5db9ba37d44a794b9528bbee42a2bd9ed6c26e0 Mon Sep 17 00:00:00 2001 From: NHAS Date: Tue, 30 Apr 2024 20:53:37 +1200 Subject: [PATCH] Add learner to degraded state indication --- ui/clustering.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/clustering.go b/ui/clustering.go index aa535677..b0321c39 100644 --- a/ui/clustering.go +++ b/ui/clustering.go @@ -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{