Webinar slides: How to automate and manage MongoDB & Percona Server for MongoDB
Webinar: Introduction to MongoDB 3.0
-
Upload
mongodb -
Category
Technology
-
view
841 -
download
1
Transcript of Webinar: Introduction to MongoDB 3.0
![Page 1: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/1.jpg)
![Page 2: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/2.jpg)
Introduction to 3.0
By: Osmar “Oz” Olivo
Product Manager
MongoDB Inc.
![Page 3: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/3.jpg)
Agenda
• Pluggable Storage Engines• WiredTiger Integration• Concurrency• Compression• Enhanced Querying & Tools• Administration Enhancements• Replication Enhancements
![Page 4: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/4.jpg)
Pluggable Storage Engines
![Page 5: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/5.jpg)
• 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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/6.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/7.jpg)
WiredTiger Integration
![Page 8: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/8.jpg)
Why WT?
They’re Grrrreat!
![Page 9: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/9.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/10.jpg)
Concurrency
![Page 11: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/11.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/12.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/13.jpg)
Compression
![Page 14: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/14.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/15.jpg)
Enhanced Querying & Tools
![Page 16: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/16.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/17.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/18.jpg)
Administration Enhancements
![Page 19: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/19.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/20.jpg)
Replication
![Page 21: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/21.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/22.jpg)
![Page 23: Webinar: Introduction to MongoDB 3.0](https://reader034.fdocuments.in/reader034/viewer/2022042717/55d6ed41bb61eb7e0d8b47aa/html5/thumbnails/23.jpg)
Questions?