Webinar: Introduction to MongoDB 3.0

23

Transcript of Webinar: Introduction to MongoDB 3.0

Page 1: Webinar: Introduction to MongoDB 3.0
Page 2: Webinar: Introduction to MongoDB 3.0

Introduction to 3.0

By: Osmar “Oz” Olivo

Product Manager

MongoDB Inc.

Page 3: Webinar: Introduction to MongoDB 3.0

Agenda

• Pluggable Storage Engines• WiredTiger Integration• Concurrency• Compression• Enhanced Querying & Tools• Administration Enhancements• Replication Enhancements

Page 4: Webinar: Introduction to MongoDB 3.0

Pluggable Storage Engines

Page 5: Webinar: Introduction to MongoDB 3.0

• Vision– One data model, one API, one set of operational

concerns » Under the hood, many options for every use

case under the sun

Storage Engine Layer

Page 6: Webinar: Introduction to MongoDB 3.0

Storage Engine Layer

Content Repo

IoT Sensor Backend

Ad ServiceCustomer Analytics

Archive

MongoDB Query Language (MQL) + Native Drivers

MongoDB Document Data Model

MMAP V1 WT In-Memory ? ?

Supported in MongoDB 3.0 Future Possible Storage Engines

Ma

na

ge

me

nt

Se

curi

ty

Experimental in MongoDB 3.0

Page 7: Webinar: Introduction to MongoDB 3.0

WiredTiger Integration

Page 8: Webinar: Introduction to MongoDB 3.0

Why WT?

They’re Grrrreat!

Page 9: Webinar: Introduction to MongoDB 3.0

Why WT?

• WT product and team acquired by MongoDB– Authors former members of Berkeley DB team– Standalone engine in use in production today

• WT addresses weaknesses of MMAPv1– Compression– Highly concurrent and enables full hardware utilization– More tunable

Page 10: Webinar: Introduction to MongoDB 3.0

Concurrency

Page 11: Webinar: Introduction to MongoDB 3.0

MMAPv1 Concurrency Improvements

• Collection Level Concurrency– One lock per collection– Write operations to a collection block all other

operations on that collection– Read operations to a collection block writes to that

collection• Allow other read operations to occur concurrently

Page 12: Webinar: Introduction to MongoDB 3.0

Concurrency in WiredTiger

• Document Level Concurrency – Uses various algorithms to minimize contention

between threads– One thread yields on contention to same document

• Writes no longer block all other writes • CPU utilization directly correlates with performance

Page 13: Webinar: Introduction to MongoDB 3.0

Compression

Page 14: Webinar: Introduction to MongoDB 3.0

Compression (WT only)

• Compression is on in WT by default• 3.0 supports two compression algorithms

– snappy (default)• Good compression benefits with little

CPU/performance impact– zlib

• Extremely good compression at a cost of additional CPU/degraded performance

Page 15: Webinar: Introduction to MongoDB 3.0

Enhanced Querying & Tools

Page 16: Webinar: Introduction to MongoDB 3.0

Indexing & Querying

• Explain() 2.0– explain() revamped

• Now allows for improved query inspection• Geospatial Big Polygon support

– Improved handling of polygons with an area greater than a single hemisphere

• $dateToString operator in aggregation – Allows user to specify string format for which to

convert a date into

Page 17: Webinar: Introduction to MongoDB 3.0

Tools Improvements

• MongoDB Server Tools Rewritten in GO– Removed all server dependencies– Allows for much faster iteration

• Parallelized data loading tools– dump/restore & import/export– highly improved loading and export times

Page 18: Webinar: Introduction to MongoDB 3.0

Administration Enhancements

Page 19: Webinar: Introduction to MongoDB 3.0

Administration

• Role Based Auditing– Auditing rules can be set to filter on specific roles– Useful for auditing certain kinds of accesses or users

• Logging Improvements– New component system– Able to filter by severity levels

Page 20: Webinar: Introduction to MongoDB 3.0

Replication

Page 21: Webinar: Introduction to MongoDB 3.0

Replication

• Replica set limit raised from 12 to 50• Meets a much higher HA standard

– Can deploy across many more regions and DC’s– Increases locality of data across deployments– Easier to guarantee local reads across many regions

Page 22: Webinar: Introduction to MongoDB 3.0
Page 23: Webinar: Introduction to MongoDB 3.0

Questions?