headline goes here

14
1 Headline Goes Here Speaker Name or Subhead Goes Here DO NOT USE PUBLICLY PRIOR TO 10/23/12 HBase and Metrics2 Elliott Clark | Engineer January 2013

Upload: posy

Post on 18-Feb-2016

38 views

Category:

Documents


2 download

DESCRIPTION

HBase and Metrics2. Headline Goes Here. DO NOT USE PUBLICLY PRIOR TO 10/23/12. Elliott Clark | Engineer January 2013. Speaker Name or Subhead Goes Here. HBase Metrics Circa 0.90 to 0.94. Spread around lots of places Using old deprecated Metrics Using Lots of ConcurrentHashMaps - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Headline Goes  Here

1

Headline Goes HereSpeaker Name or Subhead Goes Here

DO NOT USE PUBLICLY PRIOR TO 10/23/12HBase and Metrics2

Elliott Clark | Engineer January 2013

Page 2: Headline Goes  Here

2

HBase Metrics Circa 0.90 to 0.94

• Spread around lots of places• Using old deprecated Metrics• Using Lots of ConcurrentHashMaps• Some metrics stored two places• Inconsistent Naming

Page 3: Headline Goes  Here

3

Lets Fix It

Page 4: Headline Goes  Here

4

Lets Fix it

• Replace everything with metrics2• Rename everything•Make things faster• Remove un-needed metrics

Page 5: Headline Goes  Here

5

Problems

• Reflection would be hard and slow• Have to support both Hadoop 1 and Hadoop 2• Need to add functionality to MetricsRegistry

Hadoop 1 Hadoop 2

MetricMutableGauge MutableGauge

MetricCollector MetricBuilder

Registry uses String Registry uses Interns.info

DefaultMetricsSystem.INSTANCE DefaultMetricsSystem.instance()

Page 6: Headline Goes  Here

6

Solution

• Two implementations• One for Hadoop 1 -- hbase-hadoop1-compat• One for Hadoop 2 – hbase-hadoop2-compat• Layer connecting hbase-server to correct compat• Use ServiceLoader so there’s no compile dependency

Page 7: Headline Goes  Here

7

Jar Dependencies

hbase-hadoop-compat

hbase-server

hbase-hadoop1-compat hbase-hadoop2-compat

Page 8: Headline Goes  Here

8

Yeah but why do I really care about this ?

Page 9: Headline Goes  Here

9

Performance

• Performance improvements• 9% on scans.• ~5% on gets• < 1% on all calls.

Page 10: Headline Goes  Here

10

Naming

•Metrics have changed names• All Camel Cased• Count used as suffix to denote a counter• Metrics have descriptions

Page 11: Headline Goes  Here

11

Better Sink Support

• Can filter metrics at the source• Some sources can take per region metrics• Others only need small subset

Page 12: Headline Goes  Here

12

What else Does the HBase user see ?

•More Histograms meaning more data•Metrics should be MUCH easier to find in JMX• Ability to Filter what metrics are reported where• OpenTSDB will need a patch to work

Page 13: Headline Goes  Here

13

Wrap Up

• Trunk (soon to be 0.96) now on Metrics2• Still needs more documentation

Page 14: Headline Goes  Here

14