hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lei Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14082) Add replica id to JMX metrics names
Date Fri, 24 Jul 2015 03:52:05 GMT

    [ https://issues.apache.org/jira/browse/HBASE-14082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639875#comment-14639875
] 

Lei Chen commented on HBASE-14082:
----------------------------------

If an existing parser uses exact-string matching or order-sensitive key-value matching, it
may not be backwards compatible. 

For example, If we have 2 regions, one primary and one secondary
{{namespace_default_table_sales_region_00000000000000000000000000000000_metric_storeCount}}
{{namespace_default_table_sales_region_11111111111111111111111111111111_metric_storeCount}}
becomes
{{namespace_default_table_sales_region_00000000000000000000000000000000_metric_storeCount}}
{{namespace_default_table_sales_region_11111111111111111111111111111111_replicaid_1_metric_storeCount}}

Since I'm not familiar with any existing parser, please correct me if I made any false assumption.

> Add replica id to JMX metrics names
> -----------------------------------
>
>                 Key: HBASE-14082
>                 URL: https://issues.apache.org/jira/browse/HBASE-14082
>             Project: HBase
>          Issue Type: Improvement
>          Components: metrics
>            Reporter: Lei Chen
>            Assignee: Lei Chen
>         Attachments: HBASE-14082-v1.patch
>
>
> Today, via JMX, one cannot distinguish a primary region from a replica. A possible solution
is to add replica id to JMX metrics names. The benefits may include, for example:
> # Knowing the latency of a read request on a replica region means the first attempt to
the primary region has timeout.
> # Write requests on replicas are due to the replication process, while the ones on primary
are from clients.
> # In case of looking for hot spots of read operations, replicas should be excluded since
TIMELINE reads are sent to all replicas.
> To implement, we can change the format of metrics names found at {code}Hadoop->HBase->RegionServer->Regions->Attributes{code}
> from 
> {code}namespace_<namespace>_table_<tablename>_region_<regionname>_metric_<metricname>{code}
> to
> {code}namespace_<namespace>_table_<tablename>_region_<regionname>_replicaid_<replicaid>_metric_<metricname>{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message