120 likes | 302 Views
HBase: Under The Hood. Asaf Mesika Senior Engineer / Akamai. Goals. Columnar DBs Motivation. How does HBase work?. HBase Use Cases. Agenda. RDBMS to NoSQL – Why? (motivation) HDFS 101 HBase 101 Schema Architecture Production war stories (If time permits)
E N D
HBase: Under The Hood Asaf Mesika Senior Engineer / Akamai
Goals Columnar DBs Motivation How does HBase work? HBase Use Cases
Agenda • RDBMS to NoSQL – Why? (motivation) • HDFS 101 • HBase 101 • Schema • Architecture • Production war stories (If time permits) • Akamai Security Analytics in numbers • Problems and matching home brew solutions
Projects got bigger – Web Facing • My Web is a success – lifecycle • HBase is the solution RDBMs -> NoSQLWhy?
Why HBase is the solution? • Scale Horizontally • Common Hardware (cheap) • Strongly consistent read/write • Automatic Sharding and LB • Automatic Failover
HDFS • Traditional File System • Distributed File Systems • Motivation • File Structure in HDFS • HDFS Goal: Streaming
HDFS Architecture • Components: NameNode, DataNode, Secondary NameNode, Balancer • NameNode • DataNode • Client Flow (+Replication Pipelining) • Replication Placement Policy (+Rack Awareness) • Robustness
HBase – Table Schema • RDBMS Table • HBase Table • Transitioning to Key-Value way of thinking
HBase Architecture • Table = Set of Regions • Components – Master, Region Server, Zookeeper • Region Server: zoom-in • Master: zoom-in
Production use-case: Akamai • 30 RS, each with 8 x 2TB HD, 32 cores, 32GB RAM, 1 Gbit Ethernet • Increments Throughput – JAFI • No Query Language - Yoda
HBase vs. other solutions • Cassandra • Eventual Consistency • Same problematic support of atomic increments • Hashed (evenly) distribution • Document oriented • MongoDB, CouchDB
I want it, what’s next? • Book • HBase The Definitive Guide • Start at least with 4 computers • Installation Quick-start guide available at http://devving.com • Browse/Subscribe to the official mailing list • They discussed almost any design/installation/bugs issues out there