Permalink
Browse files

taokeeper 暂时屏蔽RTmonitor功能

  • Loading branch information...
qiaoyi.dingqy
qiaoyi.dingqy committed Jan 23, 2014
1 parent d03a618 commit a8a0ccb147036830ac7463efd52c6fddb1d44794
@@ -78,15 +78,10 @@ public void init() {
//开启ZooKeeper RT monitor
/*
timer.schedule( new ZooKeeperRTCollectJob(), 5000, //
BaseConstant.MILLISECONDS_OF_ONE_MINUTE *
SystemConstant.MINS_RATE_OF_ZOOKEEPER_RT_MONITOR);
// for test
/*
timer.schedule( new ZooKeeperRTCollectJob(), 0, //
BaseConstant.MILLISECONDS_OF_ONE_SECOND *
30 );
*/
//ThreadUtil.startThread( new CheckerJob( ) );
@@ -2,7 +2,6 @@
import com.taobao.taokeeper.common.GlobalInstance;
import com.taobao.taokeeper.model.ZooKeeperCluster;
import com.taobao.taokeeper.model.ZooKeeperStatusV2;
import com.taobao.taokeeper.monitor.core.task.ZooKeeperRTCollectJob;
import common.toolkit.java.exception.DaoException;
import common.toolkit.java.util.StringUtil;
import common.toolkit.java.util.io.ServletUtil;
@@ -77,8 +76,8 @@ public ModelAndView showZooKeeperStatusPAGE(HttpServletRequest request, HttpServ
model.put("description", zooKeeperCluster.getDescription() );
model.put("zooKeeperClusterMap", zooKeeperClusterMap );
model.put( "timeOfUpdateZooKeeperStatusSet", GlobalInstance.timeOfUpdateZooKeeperStatusSet );
model.put("clusterRTStatsMap", ZooKeeperRTCollectJob.getRtStatus().get(zooKeeperCluster.getClusterId()));
model.put("clusterRTStats", ZooKeeperRTCollectJob.getClustRTStatus().get(zooKeeperCluster.getClusterId()));
//model.put("clusterRTStatsMap", ZooKeeperRTCollectJob.getRtStatus().get(zooKeeperCluster.getClusterId()));
//model.put("clusterRTStats", ZooKeeperRTCollectJob.getClustRTStatus().get(zooKeeperCluster.getClusterId()));
return new ModelAndView( "monitor/zooKeeperStatusPAGE", model );
} catch (NumberFormatException e) {
@@ -80,6 +80,7 @@ a:visited { text-decoration:none}
<br>
<br>
<!--
<h1>ZooKeeper实时RT监控</h1>
<table border="0" cellspacing="0" cellpadding="0" style="width: 50px;">
@@ -101,20 +102,18 @@ a:visited { text-decoration:none}
</c:forEach>
</tr>
</c:forEach>
</table>
-->
<br>
<h1>ZooKeeper实时读写TPS</h1>
<table border="0" cellspacing="0" cellpadding="0" style="width: 50px;">
<c:forEach var="zooKeeperStatus" items="${zooKeeperStatusMap}">
<tr>
<tr>
<c:forEach var="zooKeeperStatus" items="${zooKeeperStatusMap}">
<td>${ zooKeeperStatus.key }</td>
<td style="background-color:#DDDDDE;">${ zooKeeperStatus.value.rwps }</td>
</tr>
</c:forEach>
</tr>
</table>
<div id="container2" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

0 comments on commit a8a0ccb

Please sign in to comment.