hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ecl...@apache.org
Subject svn commit: r1477330 - /hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
Date Mon, 29 Apr 2013 20:37:14 GMT
Author: eclark
Date: Mon Apr 29 20:37:14 2013
New Revision: 1477330

URL: http://svn.apache.org/r1477330
Log:
HBASE-8425 Per-region memstore size is missing in the new RS web UI

Modified:
    hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon

Modified: hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon?rev=1477330&r1=1477329&r2=1477330&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
(original)
+++ hbase/trunk/hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/RegionListTmpl.jamon
Mon Apr 29 20:37:14 2013
@@ -42,7 +42,8 @@
             <li class="active"><a href="#tab_regionBaseInfo" data-toggle="tab">Base
Info</a> </li>
             <li><a href="#tab_regionRequestStats" data-toggle="tab">Request metrics</a></li>
             <li class=""><a href="#tab_regionStoreStats" data-toggle="tab">Storefile
Metrics</a></li>
-            <li class=""><a href="#tab_regionCompactStas" data-toggle="tab">Compaction
Metrics</a></li>
+            <li class=""><a href="#tab_regionMemstoreStats" data-toggle="tab">Memstore
Metrics</a></li>
+            <li class=""><a href="#tab_regionCompactStats" data-toggle="tab">Compaction
Metrics</a></li>
         </ul>
         <div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid
#ddd;">
             <div class="tab-pane active" id="tab_regionBaseInfo">
@@ -54,7 +55,10 @@
             <div class="tab-pane" id="tab_regionStoreStats">
                 <& storeStats; onlineRegions = onlineRegions; &>
             </div>
-            <div class="tab-pane" id="tab_regionCompactStas">
+            <div class="tab-pane" id="tab_regionMemstoreStats">
+                <& memstoreStats; onlineRegions = onlineRegions; &>
+            </div>
+            <div class="tab-pane" id="tab_regionCompactStats">
                 <& compactStats; onlineRegions = onlineRegions; &>
             </div>
         </div>
@@ -192,3 +196,28 @@
         </%for>
     </table>
 </%def>
+
+<%def memstoreStats>
+<%args>
+    List<HRegionInfo> onlineRegions;
+</%args>
+    <table class="table table-striped">
+        <tr>
+            <th>Region Name</th>
+            <th>Memstore Size</th>
+        </tr>
+
+        <%for HRegionInfo r: onlineRegions %>
+
+        <tr>
+        <%java>
+            RegionLoad load = regionServer.createRegionLoad(r.getEncodedName());
+        </%java>
+            <td><% r.getRegionNameAsString() %></td>
+            <%if load != null %>
+            <td><% load.getMemstoreSizeMB() %>MB</td>
+            </%if>
+        </tr>
+        </%for>
+    </table>
+</%def>



Mime
View raw message