master.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>SeaweedFS {{ .Version }}</title>
  5. <link rel="stylesheet" href="/seaweedfsstatic/bootstrap/3.3.1/css/bootstrap.min.css">
  6. </head>
  7. <body>
  8. <div class="container">
  9. <div class="page-header">
  10. <h1>
  11. <a href="https://github.com/seaweedfs/seaweedfs"><img src="/seaweedfsstatic/seaweed50x50.png"></img></a>
  12. SeaweedFS <small>{{ .Version }}</small>
  13. </h1>
  14. </div>
  15. <div class="row">
  16. <div class="col-sm-6">
  17. <h2>Cluster status</h2>
  18. <table class="table table-condensed table-striped">
  19. <tbody>
  20. <tr>
  21. <th>Volume Size Limit</th>
  22. <td>{{ .VolumeSizeLimitMB }}MB</td>
  23. </tr>
  24. <tr>
  25. <th>Free</th>
  26. <td>{{ .Topology.Free }}</td>
  27. </tr>
  28. <tr>
  29. <th>Max</th>
  30. <td>{{ .Topology.Max }}</td>
  31. </tr>
  32. {{ with .RaftServer }}
  33. <tr>
  34. <th>Leader</th>
  35. <td><a href="http://{{ .Leader }}">{{ .Leader }}</a></td>
  36. </tr>
  37. <tr>
  38. <th>Other Masters</th>
  39. <td class="col-sm-5">
  40. <ul class="list-unstyled">
  41. {{ range $k, $p := .Peers }}
  42. <li><a href="http://{{ $p.Name }}/ui/index.html">{{ $p.Name }}</a></li>
  43. {{ end }}
  44. </ul>
  45. </td>
  46. </tr>
  47. {{ end }}
  48. </tbody>
  49. </table>
  50. </div>
  51. <div class="col-sm-6">
  52. <h2>System Stats</h2>
  53. <table class="table table-condensed table-striped">
  54. <tr>
  55. <th>Concurrent Connections</th>
  56. <td>{{ .Counters.Connections.WeekCounter.Sum }}</td>
  57. </tr>
  58. {{ range $key, $val := .Stats }}
  59. <tr>
  60. <th>{{ $key }}</th>
  61. <td>{{ $val }}</td>
  62. </tr>
  63. {{ end }}
  64. </table>
  65. </div>
  66. </div>
  67. <div class="row">
  68. <h2>Topology</h2>
  69. <table class="table table-striped">
  70. <thead>
  71. <tr>
  72. <th>Data Center</th>
  73. <th>Rack</th>
  74. <th>RemoteAddr</th>
  75. <th>#Volumes</th>
  76. <th>Volume Ids</th>
  77. <th>#ErasureCodingShards</th>
  78. <th>Max</th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. {{ range $dc_index, $dc := .Topology.DataCenters }}
  83. {{ range $rack_index, $rack := $dc.Racks }}
  84. {{ range $dn_index, $dn := $rack.DataNodes }}
  85. <tr>
  86. <td><code>{{ $dc.Id }}</code></td>
  87. <td>{{ $rack.Id }}</td>
  88. <td><a href="http://{{ $dn.Url }}/ui/index.html">{{ $dn.Url }}</a>
  89. {{ if ne $dn.PublicUrl $dn.Url }}
  90. / <a href="http://{{ $dn.PublicUrl }}/ui/index.html">{{ $dn.PublicUrl }}</a>
  91. {{ end }}
  92. </td>
  93. <td>{{ $dn.Volumes }}</td>
  94. <td>{{ $dn.VolumeIds}}</td>
  95. <td>{{ $dn.EcShards }}</td>
  96. <td>{{ $dn.Max }}</td>
  97. </tr>
  98. {{ end }}
  99. {{ end }}
  100. {{ end }}
  101. </tbody>
  102. </table>
  103. </div>
  104. </div>
  105. </body>
  106. </html>