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

Slow Query Log

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.92.0
    • IPC/RPC
    • Reviewed
    • Hide
      Exposes JSON-parseable fingerprint and details for queries that take longer than a configurable threshold time. The exposure is currently to the main regionserver log, along with a (queryTooSlow) tag which allows it to be grepped out and easily aggregated and/or monitored in adminstrator scripts.

      The patch also provides a standard way to extract fingerprint and detail information of interest by requiring each "DatabaseCommand" to provide a fingerprint map and a details map, which will be a superset of the fingerprint.
      Show
      Exposes JSON-parseable fingerprint and details for queries that take longer than a configurable threshold time. The exposure is currently to the main regionserver log, along with a (queryTooSlow) tag which allows it to be grepped out and easily aggregated and/or monitored in adminstrator scripts. The patch also provides a standard way to extract fingerprint and detail information of interest by requiring each "DatabaseCommand" to provide a fingerprint map and a details map, which will be a superset of the fingerprint.

    Description

      Produce log messages for slow queries. The RPC server will decide what is slow based on a configurable "warn response time" parameter. Queries designated as slow will then output a "response too slow" message followed by a fingerprint of the query, and a summary limited in size by another configurable parameter (to limit log spamming).

      Attachments

        1. HBASE-4117-doc.txt
          3 kB
          Riley Patterson
        2. HBASE-4117-v3.patch
          44 kB
          Riley Patterson
        3. HBASE-4117-v2.patch
          44 kB
          Riley Patterson
        4. HBASE-4117.patch
          40 kB
          Riley Patterson

        Activity

          People

            riley Riley Patterson
            riley Riley Patterson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: