You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Bi,
hongyu—mike <bo...@gmail.com> on 2014/06/11 18:15:38 UTC
OperationMetrics in RegionServerDynamicStatistics No Data(0.95.15)
Hi ,
I curl the
http://regionserverIP:60030/jmx?qry=hadoop:service=RegionServer,name=RegionServerDynamicStatistics
and filter <tablename> I found that there wasn't operation
metrics(get/multiput/etc.) but only readrequestcount/writerequestcount:
regionserver:tbl.<tablename>.region.3e0f92a86d200c8d52dfb6c39906454b.readrequestcount:13581
regionserver:tbl.<tablename>.cf.cf.memstoreSizeMB:0
regionserver:tbl.<tablename>.cf.cf.storeFileSizeMB:11040
regionserver:tbl.<tablename>.cf.cf.staticIndexSizeKB:8901
regionserver:tbl.<tablename>.region.9c43cfc1bc4d81ea5b6d11d738f676f4.readrequestcount:761
regionserver:tbl.<tablename>.cf.cf.staticBloomSizeKB:0
regionserver:tbl.<tablename>.cf.cf.bt.Index.blockCacheSize:9158280
regionserver:tbl.<tablename>.cf.cf.storeFileCount:2
regionserver:tbl.<tablename>.cf.cf.blockCacheSize:336216976
regionserver:tbl.<tablename>.cf.cf.storeFileIndexSizeMB:0
regionserver:tbl.<tablename>.cf.cf.bt.Data.blockCacheSize:327058696
BUT From source code i see: many op metrics, any help will be appreciate :)
* This class provides a simplified interface to expose time varying metrics
* about GET/DELETE/PUT/ICV operations on a region and on Column Families.
All
* metrics are stored in {@link RegionMetricsStorage} and exposed to hadoop
* metrics through {@link RegionServerDynamicMetrics}.
*/
public class OperationMetrics {
private static final String DELETE_KEY = "delete_";
private static final String PUT_KEY = "put_";
private static final String GET_KEY = "get_";
private static final String ICV_KEY = "incrementColumnValue_";
private static final String INCREMENT_KEY = "increment_";
private static final String MULTIPUT_KEY = "multiput_";
private static final String MULTIDELETE_KEY = "multidelete_";
private static final String APPEND_KEY = "append_";
private static final String READREQUESTCOUNT_KEY = "readrequestcount";
private static final String WRITEREQUESTCOUNT_KEY = "writerequestcount";
Re: OperationMetrics in RegionServerDynamicStatistics No Data(0.95.15)
Posted by Bi,
hongyu—mike <bo...@gmail.com>.
sorry for my carelessness:
>From the sourcecode i get the reason: some operation metrics get cleared
every doUpdates()
/* get dynamically created time varying metrics, and push the metrics */
for (Entry<String, Pair<AtomicLong, AtomicInteger>> entry :
RegionMetricsStorage.getTimeVaryingMetrics().entrySet()) {
Pair<AtomicLong, AtomicInteger> value = entry.getValue();
this.incrTimeVaryingMetric(entry.getKey(),
value.getFirst().getAndSet(0),
value.getSecond().getAndSet(0));
Thanks
2014-06-12 0:15 GMT+08:00 Bi,hongyu—mike <bo...@gmail.com>:
> Hi ,
> I curl the
> http://regionserverIP:60030/jmx?qry=hadoop:service=RegionServer,name=RegionServerDynamicStatistics
>
> and filter <tablename> I found that there wasn't operation
> metrics(get/multiput/etc.) but only readrequestcount/writerequestcount:
>
>
> regionserver:tbl.<tablename>.region.3e0f92a86d200c8d52dfb6c39906454b.readrequestcount:13581
> regionserver:tbl.<tablename>.cf.cf.memstoreSizeMB:0
> regionserver:tbl.<tablename>.cf.cf.storeFileSizeMB:11040
> regionserver:tbl.<tablename>.cf.cf.staticIndexSizeKB:8901
>
> regionserver:tbl.<tablename>.region.9c43cfc1bc4d81ea5b6d11d738f676f4.readrequestcount:761
> regionserver:tbl.<tablename>.cf.cf.staticBloomSizeKB:0
> regionserver:tbl.<tablename>.cf.cf.bt.Index.blockCacheSize:9158280
> regionserver:tbl.<tablename>.cf.cf.storeFileCount:2
> regionserver:tbl.<tablename>.cf.cf.blockCacheSize:336216976
> regionserver:tbl.<tablename>.cf.cf.storeFileIndexSizeMB:0
> regionserver:tbl.<tablename>.cf.cf.bt.Data.blockCacheSize:327058696
>
> BUT From source code i see: many op metrics, any help will be appreciate :)
>
> * This class provides a simplified interface to expose time varying
> metrics
>
> * about GET/DELETE/PUT/ICV operations on a region and on Column Families.
> All
>
> * metrics are stored in {@link RegionMetricsStorage} and exposed to
> hadoop
>
> * metrics through {@link RegionServerDynamicMetrics}.
>
> */
>
> public class OperationMetrics {
>
>
> private static final String DELETE_KEY = "delete_";
>
> private static final String PUT_KEY = "put_";
>
> private static final String GET_KEY = "get_";
>
> private static final String ICV_KEY = "incrementColumnValue_";
>
> private static final String INCREMENT_KEY = "increment_";
>
> private static final String MULTIPUT_KEY = "multiput_";
>
> private static final String MULTIDELETE_KEY = "multidelete_";
>
> private static final String APPEND_KEY = "append_";
>
> private static final String READREQUESTCOUNT_KEY = "readrequestcount";
>
> private static final String WRITEREQUESTCOUNT_KEY = "writerequestcount";
>
>