17
Products comparison AND

MongoDB and Apache HBase: Benchmarking

  • Upload
    -

  • View
    10.326

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: MongoDB and Apache HBase: Benchmarking

Products comparison

AND

Page 2: MongoDB and Apache HBase: Benchmarking

Technical overview

Programming language C++ Java

Language Bindings & Clients C, C++, Erlang, Haskell, Java, JavaScript, .NET (C# F#, PowerShell, etc), Perl, PHP, Python, Ruby, Scala.

Java, Jython ,Groovy DSL , Scala, REST

Protocols Mongo Wire Protocol Apache Avro, Thrift, REST

First public release and current state Feb 2009 Last release 2.0.2 14th December 2011

Jul 2010 Last release 0.92.0 23th January 2012

Page 3: MongoDB and Apache HBase: Benchmarking

Technical overview

Querying Mongo Query Language Filter LanguageAtomicity Conditional +Consistency + +Isolation - +Durability + -

Secondary Indexes Indexing of embedded element, compound key

Periodic-Update Secondary Index Filter Query Dual-Write Secondary Index Summary Tables

Map/Reduce Supports Sharding + +Replication + +Revision control - +

Page 4: MongoDB and Apache HBase: Benchmarking

MongoDB features

Document-orientedCapped CollectionsGreed FS IndexingMap ReduceQuery languageJSON/BSONEventually-consistence

Page 5: MongoDB and Apache HBase: Benchmarking

HBase features

• Column oriented(after Google big table)• Bloom filters on per column basis• MapReduce• Secondary Indexes• HDFS based• Revision controll

Page 6: MongoDB and Apache HBase: Benchmarking

MongoDB configuration example

Page 7: MongoDB and Apache HBase: Benchmarking
Page 8: MongoDB and Apache HBase: Benchmarking

HBase configuration

Page 9: MongoDB and Apache HBase: Benchmarking

MongoDB use casesGit Hub : the social coding site, is using MongoDB for an internal reporting application.РосГос затраты: RosSpending is the first Russian public spending monitoring project..Disney: common set of tools and APIs for all games within the Interactive Media Group, using MongoDB as a common object repository to persist state information.Over 300 of companies have prodact deployments of mongoDB

Page 10: MongoDB and Apache HBase: Benchmarking

HBase use casesFacebook : Real-Time messaging Over 152 billions messages monthlyAdobe: 30 nodes social services ,data and processing for internal use.Explorys: over a billion anonymized clinical recordsMozilla Socorro : Crash reporting systemPowered by about 40 companies

Page 11: MongoDB and Apache HBase: Benchmarking

Benchmarking

• Enveroment: Amazon Elastic compute cloud.• Testing tool – Yahoo Cloud Service

benchmark(YCSB)

Page 12: MongoDB and Apache HBase: Benchmarking

MongoDB Benchmarking.12hours of loading.95.000.000 records for 2 shards167.600.000 for 4 shards

0 2400 4800 7200 9600 12000 14400 16800 19200 21600 24000 26400 28800 31200 33600 36000 38400 40800 432000.00

2000.00

4000.00

6000.00

8000.00

10000.00

12000.00

4 shards loading

2 shards loading

Page 13: MongoDB and Apache HBase: Benchmarking

50% reads 50% updates

500 1000 2000 3000 3300 50000

2000

4000

6000

8000

10000

12000

2 shards update2 shards read4 shards update4 shards read

Page 14: MongoDB and Apache HBase: Benchmarking

95% reads 5% updates

500 1000 2000 3000 4000 50000

2000

4000

6000

8000

10000

12000

14000

16000

2 shards update2 shards read4 shards update4 shards read

Page 15: MongoDB and Apache HBase: Benchmarking

Read only performance

500 1000 2000 3000 4000 50000

1000

2000

3000

4000

5000

6000

7000

8000

9000

10000

2 shards4 shards

Page 16: MongoDB and Apache HBase: Benchmarking

Read Insert performance

200 300 4000

50000

100000

150000

200000

250000

2 shards insert2 shards read4 shards insert4 shards read