mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
master ui add raft stats and Max Volume Id
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
|||||||
func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {
|
func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
infos := make(map[string]interface{})
|
infos := make(map[string]interface{})
|
||||||
infos["Up Time"] = time.Now().Sub(startTime).String()
|
infos["Up Time"] = time.Now().Sub(startTime).String()
|
||||||
|
infos["Max Volume Id"] = ms.Topo.GetMaxVolumeId()
|
||||||
if ms.Topo.RaftServer != nil {
|
if ms.Topo.RaftServer != nil {
|
||||||
args := struct {
|
args := struct {
|
||||||
Version string
|
Version string
|
||||||
|
@@ -64,6 +64,17 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</table>
|
</table>
|
||||||
|
<h2>Raft Stats</h2>
|
||||||
|
<table class="table table-condensed table-striped">
|
||||||
|
<tr>
|
||||||
|
<th>applied_index</th>
|
||||||
|
<td>{{ .RaftServer.Stats.applied_index }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>last_log_term</th>
|
||||||
|
<td>{{ .RaftServer.Stats.last_log_term }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user