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

Provide generic framework to collect internal and feature metrics for all procedures in ProcV2



    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • metrics, proc-v2
    • None


      Copied from @appy's comments in HBASE-17888:

      There should be clearly defined (and well documented) points where metrics are updated. Ideally, these points should be either single line in code and/or well defined state (great if both).
      Currently it's not well defined state, and requires hooks from multiple code paths.
      With current approach, I am afraid that it might 'evolve' like other components, and those not much familier with this code may add more updateMetricsOnFoo() methods from random points in exectuor.

      One possible design is: Initiate all metric updates from setState() function. That ties metrics design to a single well defined point in ProcExecutor. Also, that way we can have:
      1. updateMetricsOn<State>() functions: to update metrics on well defined states
      2. update metrics on few interesting transitions. For eg.
      -updateMetricsOnSubmit(): when state changes from INITIALIZING to RUNNABLE.
      -updateMetricsOnFinish(): when state changes to SUCCESS or FINISH.

      There should be two sets of metrics: core metrics and feature metrics.
      Core metrics will include things like proc wait time, proc execute time, number of yeilds, num subprocedures, etc
      Feature metrics : Metrics like RIT metrics, snapshot metrics, etc.
      Just to make sure, we are only designing for 'core metrics' and not 'feature metrics' here right? Am confused since there are description changes for 'feature metrics' in this patch.
      If we are designing for core metrics, it would be good to see actual metrics in next patch. That would help to see if particular updateMetricsOn*() hook makes sense.

      Please refer to the discussion on that JIRA.


        Issue Links



              Unassigned Unassigned
              uagashe Umesh Agashe
              0 Vote for this issue
              1 Start watching this issue