Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14082

Add replica id to JMX metrics names

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0, 1.3.0, 2.0.0
    • metrics
    • None
    • Reviewed

    Description

      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:

      1. Knowing the latency of a read request on a replica region means the first attempt to the primary region has timeout.
      2. Write requests on replicas are due to the replication process, while the ones on primary are from clients.
      3. 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

      Hadoop->HBase->RegionServer->Regions->Attributes

      from

      namespace_<namespace>_table_<tablename>_region_<regionname>_metric_<metricname>

      to

      namespace_<namespace>_table_<tablename>_region_<regionname>_replicaid_<replicaid>_metric_<metricname>

      Attachments

        1. HBASE-14082-v5.patch
          8 kB
          Lei Chen
        2. HBASE-14082-v4.patch
          8 kB
          Lei Chen
        3. HBASE-14082-v3.patch
          8 kB
          Lei Chen
        4. HBASE-14082-v2.patch
          6 kB
          Lei Chen
        5. HBASE-14082-v1.patch
          6 kB
          Lei Chen
        6. 14082-v6.patch
          8 kB
          Ted Yu

        Activity

          People

            leochen4891 Lei Chen
            leochen4891 Lei Chen
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: