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

add metric to report client shortcircuit reads

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      Expose file system level read metrics for RegionServer.

      If the HBase RS runs on top of HDFS, calculate the aggregation of
      ReadStatistics of each HdfsFileInputStream. These metrics include:
      (1) total number of bytes read from HDFS.
      (2) total number of bytes read from local DataNode.
      (3) total number of bytes read locally through short-circuit read.
      (4) total number of bytes read locally through zero-copy read.

      Because HDFS ReadStatistics is calculated per input stream, it is not
      feasible to update the aggregated number in real time. Instead, the
      metrics are updated when an input stream is closed.
      Show
      Expose file system level read metrics for RegionServer. If the HBase RS runs on top of HDFS, calculate the aggregation of ReadStatistics of each HdfsFileInputStream. These metrics include: (1) total number of bytes read from HDFS. (2) total number of bytes read from local DataNode. (3) total number of bytes read locally through short-circuit read. (4) total number of bytes read locally through zero-copy read. Because HDFS ReadStatistics is calculated per input stream, it is not feasible to update the aggregated number in real time. Instead, the metrics are updated when an input stream is closed.
    • metrics

    Description

      With the availability of shortcircuit reads, when the feature is enabled there is no metric which exposes how many times the regionserver was able to shortcircuit the read and not make a IPC to the datanode.

      It will be great to add the metric and expose it via Ganglia.

      Attachments

        1. HBASE-8868.master.001.patch
          13 kB
          Wei-Chiu Chuang

        Activity

          People

            weichiu Wei-Chiu Chuang
            viralbajaria Viral Bajaria
            Votes:
            1 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: