From 104ea7b029120da89c103f7e03139cb03be8a798 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Thu, 7 Apr 2022 20:52:01 +0500 Subject: [PATCH] master ui add raft stats and Max Volume Id --- weed/server/master_server_handlers_ui.go | 1 + weed/server/master_ui/masterNewRaft.html | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/weed/server/master_server_handlers_ui.go b/weed/server/master_server_handlers_ui.go index 2dc12f73d..d8260d8d2 100644 --- a/weed/server/master_server_handlers_ui.go +++ b/weed/server/master_server_handlers_ui.go @@ -15,6 +15,7 @@ import ( func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) { infos := make(map[string]interface{}) infos["Up Time"] = time.Now().Sub(startTime).String() + infos["Max Volume Id"] = ms.Topo.GetMaxVolumeId() if ms.Topo.RaftServer != nil { args := struct { Version string diff --git a/weed/server/master_ui/masterNewRaft.html b/weed/server/master_ui/masterNewRaft.html index be8aa7bbf..32afdceac 100644 --- a/weed/server/master_ui/masterNewRaft.html +++ b/weed/server/master_ui/masterNewRaft.html @@ -64,6 +64,17 @@ {{ end }} +
applied_index | +{{ .RaftServer.Stats.applied_index }} | +
---|---|
last_log_term | +{{ .RaftServer.Stats.last_log_term }} | +