SlideShare a Scribd company logo
Ops 101 
Asya Kamsky 
Principal Community Advocate 
MongoDB
Operational Database Landscape
RDBMS 
Agility 
MongoDB 
{ 
_id : ObjectId("4c4ba5e5e8aabf3"), 
employee_name: "Dunham, Justin", 
department : "Marketing", 
title : "Product Manager, Web", 
report_up: "Neray, Graham", 
pay_band: “C", 
benefits : [ 
{ type : "Health", 
plan : "PPO Plus" }, 
{ type : "Dental", 
plan : "Standard" } 
] 
}
Document Data Model 
Relational MongoDB 
{ 
first_name: ‘Paul’, 
surname: ‘Miller’, 
city: ‘London’, 
location: 
[45.123,47.232], 
cars: [ 
{ model: ‘Bentley’, 
year: 1973, 
value: 100000, … }, 
{ model: ‘Rolls Royce’, 
year: 1965, 
value: 330000, … } 
} 
}
Document Model Benefits 
• Agility and flexibility 
– Data models can evolve easily 
– Companies can adapt to changes quickly 
• Intuitive, natural data representation 
– Developers are more productive 
– Many types of applications are a good fit 
• Reduces the need for joins, disk seeks 
– Programming is more simple 
– Performance can be delivered at scale
Shell and Drivers 
Drivers 
Drivers for most popular 
programming languages and 
frameworks 
Shell 
Command-line shell for 
interacting directly with 
database 
> db.collection.insert({company:“10gen”, 
product:“MongoDB”}) 
> 
> db.collection.findOne() 
{ 
“_id” : ObjectId(“5106c1c2fc629bfe52792e86”), 
“company” : “10gen” 
“product” : “MongoDB” 
} 
Haskell
Scalability
Automatic Sharding 
• Increase or decrease capacity as you go 
• Automatic balancing 
• Three types of sharding: 
 hash-based 
 range-based 
 tag-aware
Query Routing 
• Multiple query optimization models 
• Many sharding options appropriate for different apps
High Availability
Availability Considerations 
• High Availability – Ensure application availability during 
many types of failures 
• Disaster Recovery – Address the RTO and RPO goals 
for business continuity 
• Maintenance – Perform upgrades and other 
maintenance operations with no application downtime
Replica Sets 
• Replica Set – two or more copies 
• “Self-healing” shard 
• Addresses many concerns: 
- High Availability 
- Disaster Recovery 
- Maintenance
Replica Set Benefits 
Business Needs Replica Set Benefits 
High Availability Automated failover 
Disaster Recovery Hot backups offsite 
Maintenance Rolling upgrades 
Low Latency Locate data near users 
Workload Isolation Read from designated nodes 
Data Consistency Tunable Consistency
Performance
Better Data Locality 
Performance 
In-Memory Caching In-Place 
Updates
Performance at Scale 
• Entertainment Company: 1,400 servers 
• Craigslist: 5B documents 
• Carfax: 11B documents 
• Tier 1 Bank: 30K ops/sec 
• Major Retailer: 50K ops/sec 
• Fed Agency: 500K ops/sec 
• Wordnik: 20B documents, 35,000 ops/sec
MongoDB Performance* 
Top 5 Marketing Firm Government Agency Top 5 Investment Bank 
Data Key/value 10+ fields, arrays, 
nested documents 
20+ fields, arrays, 
nested documents 
Queries Key-based 
1 – 100 docs/query 
80/20 read/write 
Compound queries 
Range queries 
MapReduce 
20/80 read/write 
Compound queries 
Range queries 
50/50 read/write 
Servers ~250 ~50 ~40 
Ops/sec 1,200,000 500,000 30,000 
* These figures are provided as examples. Your application governs your performance.
Key Deployment Considerations 
Capacity Planning 
• Requirements 
• Testing 
• Monitoring
Key Performance Considerations 
Capacity Planning 
• Requirements 
• Testing 
• Monitoring 
Performance Tuning 
• Understanding 
• Adjusting 
• Monitoring
Monitoring
Monitoring 
• CLI and internal status commands 
• mongostat; mongotop; db.serverStatus() 
• Plug-ins for munin, Nagios, cacti, etc. 
• Integration via SNMP to other tools 
• MMS
MongoDB Management Service 
Cloud-based suite of services for managing MongoDB deployments
MongoDB Management Service 
Cloud-based suite of services for managing MongoDB deployments 
• Charts, custom dashboards and automated alerting 
• Tracks 100+ metrics – performance, resource utilization, 
availability and response times 
• 15,000+ users
MongoDB Management Service 
Cloud-based suite of services for managing MongoDB deployments 
• Backup and restore with 
– point-in-time recovery, 
– support for sharded clusters 
• MMS On-Prem included with MongoDB Enterprise 
(backup coming soon)
A Picture Speaks a Thousand Words
Symptoms 
High Use CPU Similar Query Pattern
Monitoring Best Practices 
• Monitor Logs 
– Alert, escalate 
– Correlate 
• Disk 
– Monitor 
• Instrument/Monitor App (including logs!) 
• Know your application and application (write) characteristics
Ops Jumpstart: MongoDB Administration 101
Ops Jumpstart: MongoDB Administration 101

More Related Content

PPTX
MongoDB Capacity Planning
PDF
MongoDB Administration 101
PPTX
Scaling with MongoDB
PPTX
Webinar: Scaling MongoDB
PPTX
Webinar: When to Use MongoDB
PDF
MongoDB Capacity Planning
PPT
Migrating to MongoDB: Best Practices
PPTX
Agility and Scalability with MongoDB
MongoDB Capacity Planning
MongoDB Administration 101
Scaling with MongoDB
Webinar: Scaling MongoDB
Webinar: When to Use MongoDB
MongoDB Capacity Planning
Migrating to MongoDB: Best Practices
Agility and Scalability with MongoDB

What's hot (20)

PPTX
Capacity Planning
PPTX
Sharding Methods for MongoDB
PPTX
Scaling MongoDB
PDF
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
KEY
MongoDB Administration ~ Kevin Hanson
PPTX
MongoDB at Scale
PDF
Mongodb - Scaling write performance
PDF
Common MongoDB Use Cases
PPTX
MongoDB Days Silicon Valley: Best Practices for Upgrading to MongoDB
PPTX
Introduction to Sharding
PPTX
Running MongoDB 3.0 on AWS
PPTX
MongoDB Auto-Sharding at Mongo Seattle
PPTX
Capacity Planning For Your Growing MongoDB Cluster
PDF
NoSQL benchmarking
PPTX
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
KEY
Mongodb sharding
PPTX
MongoDB Replication fundamentals - Desert Code Camp - October 2014
KEY
MongoDB Administration 20110922
PPTX
3 scenarios when to use MongoDB!
PPTX
MongoDB Deployment Checklist
Capacity Planning
Sharding Methods for MongoDB
Scaling MongoDB
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
MongoDB Administration ~ Kevin Hanson
MongoDB at Scale
Mongodb - Scaling write performance
Common MongoDB Use Cases
MongoDB Days Silicon Valley: Best Practices for Upgrading to MongoDB
Introduction to Sharding
Running MongoDB 3.0 on AWS
MongoDB Auto-Sharding at Mongo Seattle
Capacity Planning For Your Growing MongoDB Cluster
NoSQL benchmarking
Benchmarking Top NoSQL Databases: Apache Cassandra, Apache HBase and MongoDB
Mongodb sharding
MongoDB Replication fundamentals - Desert Code Camp - October 2014
MongoDB Administration 20110922
3 scenarios when to use MongoDB!
MongoDB Deployment Checklist
Ad

Viewers also liked (13)

PPTX
Indexing In MongoDB
PPTX
SSecuring Your MongoDB Deployment
PPTX
Replication and Replica Sets
PDF
Mongo db security guide
PPTX
MongoDB 2.4 Security Features
PPTX
Securing Your MongoDB Deployment
PPTX
MongoDB in a Mainframe World
PPTX
Securing Your MongoDB Implementation
PPT
Mongo Performance Optimization Using Indexing
PDF
Phplx mongodb
PPTX
Webinar: Architecting Secure and Compliant Applications with MongoDB
PPTX
Webinar: MongoDB 2.6 New Security Features
PPTX
Webinar: Performance Tuning + Optimization
Indexing In MongoDB
SSecuring Your MongoDB Deployment
Replication and Replica Sets
Mongo db security guide
MongoDB 2.4 Security Features
Securing Your MongoDB Deployment
MongoDB in a Mainframe World
Securing Your MongoDB Implementation
Mongo Performance Optimization Using Indexing
Phplx mongodb
Webinar: Architecting Secure and Compliant Applications with MongoDB
Webinar: MongoDB 2.6 New Security Features
Webinar: Performance Tuning + Optimization
Ad

Similar to Ops Jumpstart: MongoDB Administration 101 (20)

PPTX
Webinar: General Technical Overview of MongoDB for Ops Teams
PPTX
MongoDB Evenings Toronto - Monolithic to Microservices with MongoDB
PPTX
MongoDB 3.0
KEY
MongoDB vs Mysql. A devops point of view
PDF
Introduction to mongo db
PDF
Introduction to MongoDB and its best practices
PPTX
Conceptos básicos. Seminario web 6: Despliegue de producción
PDF
MongoDB - Riviera Dev 2018
PPTX
MongoDB Internals
KEY
Deployment Strategy
PPTX
Webinar: “ditch Oracle NOW”: Best Practices for Migrating to MongoDB
KEY
Discover MongoDB - Israel
KEY
2011 mongo sf-scaling
PDF
MongoDB: Advantages of an Open Source NoSQL Database
PPT
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
PPTX
MongoDB - A next-generation database that lets you create applications never ...
KEY
Deployment Strategies (Mongo Austin)
PPTX
Ops Jumpstart: MongoDB Administration 101
PPTX
MonogDB Admin 101 - MonogDBDays Munich
PPTX
Migrating from RDBMS to MongoDB
Webinar: General Technical Overview of MongoDB for Ops Teams
MongoDB Evenings Toronto - Monolithic to Microservices with MongoDB
MongoDB 3.0
MongoDB vs Mysql. A devops point of view
Introduction to mongo db
Introduction to MongoDB and its best practices
Conceptos básicos. Seminario web 6: Despliegue de producción
MongoDB - Riviera Dev 2018
MongoDB Internals
Deployment Strategy
Webinar: “ditch Oracle NOW”: Best Practices for Migrating to MongoDB
Discover MongoDB - Israel
2011 mongo sf-scaling
MongoDB: Advantages of an Open Source NoSQL Database
MONGODB VASUDEV PRAJAPATI DOCUMENTBASE DATABASE
MongoDB - A next-generation database that lets you create applications never ...
Deployment Strategies (Mongo Austin)
Ops Jumpstart: MongoDB Administration 101
MonogDB Admin 101 - MonogDBDays Munich
Migrating from RDBMS to MongoDB

More from MongoDB (20)

PDF
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
PDF
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
PDF
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
PDF
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
PDF
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
PDF
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
PDF
MongoDB SoCal 2020: MongoDB Atlas Jump Start
PDF
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
PDF
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
PDF
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
PDF
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
PDF
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
PDF
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
PDF
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
PDF
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
PDF
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
PDF
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
PDF
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
Cloud computing and distributed systems.
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
GamePlan Trading System Review: Professional Trader's Honest Take
Cloud computing and distributed systems.
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
Diabetes mellitus diagnosis method based random forest with bat algorithm
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Dropbox Q2 2025 Financial Results & Investor Presentation
Review of recent advances in non-invasive hemoglobin estimation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Understanding_Digital_Forensics_Presentation.pptx
Empathic Computing: Creating Shared Understanding
NewMind AI Monthly Chronicles - July 2025
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
“AI and Expert System Decision Support & Business Intelligence Systems”

Ops Jumpstart: MongoDB Administration 101

  • 1. Ops 101 Asya Kamsky Principal Community Advocate MongoDB
  • 3. RDBMS Agility MongoDB { _id : ObjectId("4c4ba5e5e8aabf3"), employee_name: "Dunham, Justin", department : "Marketing", title : "Product Manager, Web", report_up: "Neray, Graham", pay_band: “C", benefits : [ { type : "Health", plan : "PPO Plus" }, { type : "Dental", plan : "Standard" } ] }
  • 4. Document Data Model Relational MongoDB { first_name: ‘Paul’, surname: ‘Miller’, city: ‘London’, location: [45.123,47.232], cars: [ { model: ‘Bentley’, year: 1973, value: 100000, … }, { model: ‘Rolls Royce’, year: 1965, value: 330000, … } } }
  • 5. Document Model Benefits • Agility and flexibility – Data models can evolve easily – Companies can adapt to changes quickly • Intuitive, natural data representation – Developers are more productive – Many types of applications are a good fit • Reduces the need for joins, disk seeks – Programming is more simple – Performance can be delivered at scale
  • 6. Shell and Drivers Drivers Drivers for most popular programming languages and frameworks Shell Command-line shell for interacting directly with database > db.collection.insert({company:“10gen”, product:“MongoDB”}) > > db.collection.findOne() { “_id” : ObjectId(“5106c1c2fc629bfe52792e86”), “company” : “10gen” “product” : “MongoDB” } Haskell
  • 8. Automatic Sharding • Increase or decrease capacity as you go • Automatic balancing • Three types of sharding:  hash-based  range-based  tag-aware
  • 9. Query Routing • Multiple query optimization models • Many sharding options appropriate for different apps
  • 11. Availability Considerations • High Availability – Ensure application availability during many types of failures • Disaster Recovery – Address the RTO and RPO goals for business continuity • Maintenance – Perform upgrades and other maintenance operations with no application downtime
  • 12. Replica Sets • Replica Set – two or more copies • “Self-healing” shard • Addresses many concerns: - High Availability - Disaster Recovery - Maintenance
  • 13. Replica Set Benefits Business Needs Replica Set Benefits High Availability Automated failover Disaster Recovery Hot backups offsite Maintenance Rolling upgrades Low Latency Locate data near users Workload Isolation Read from designated nodes Data Consistency Tunable Consistency
  • 15. Better Data Locality Performance In-Memory Caching In-Place Updates
  • 16. Performance at Scale • Entertainment Company: 1,400 servers • Craigslist: 5B documents • Carfax: 11B documents • Tier 1 Bank: 30K ops/sec • Major Retailer: 50K ops/sec • Fed Agency: 500K ops/sec • Wordnik: 20B documents, 35,000 ops/sec
  • 17. MongoDB Performance* Top 5 Marketing Firm Government Agency Top 5 Investment Bank Data Key/value 10+ fields, arrays, nested documents 20+ fields, arrays, nested documents Queries Key-based 1 – 100 docs/query 80/20 read/write Compound queries Range queries MapReduce 20/80 read/write Compound queries Range queries 50/50 read/write Servers ~250 ~50 ~40 Ops/sec 1,200,000 500,000 30,000 * These figures are provided as examples. Your application governs your performance.
  • 18. Key Deployment Considerations Capacity Planning • Requirements • Testing • Monitoring
  • 19. Key Performance Considerations Capacity Planning • Requirements • Testing • Monitoring Performance Tuning • Understanding • Adjusting • Monitoring
  • 21. Monitoring • CLI and internal status commands • mongostat; mongotop; db.serverStatus() • Plug-ins for munin, Nagios, cacti, etc. • Integration via SNMP to other tools • MMS
  • 22. MongoDB Management Service Cloud-based suite of services for managing MongoDB deployments
  • 23. MongoDB Management Service Cloud-based suite of services for managing MongoDB deployments • Charts, custom dashboards and automated alerting • Tracks 100+ metrics – performance, resource utilization, availability and response times • 15,000+ users
  • 24. MongoDB Management Service Cloud-based suite of services for managing MongoDB deployments • Backup and restore with – point-in-time recovery, – support for sharded clusters • MMS On-Prem included with MongoDB Enterprise (backup coming soon)
  • 25. A Picture Speaks a Thousand Words
  • 26. Symptoms High Use CPU Similar Query Pattern
  • 27. Monitoring Best Practices • Monitor Logs – Alert, escalate – Correlate • Disk – Monitor • Instrument/Monitor App (including logs!) • Know your application and application (write) characteristics

Editor's Notes

  • #2: MongoDB is the leading open-source, document database. Technical details of MongoDB what makes it different from traditional relational database management systems. data storage, high availability and scaling deploying MongoDB in production. operational challenges including performance tuning, capacity planning deploy robust highly-available cluster topology
  • #3: Dotted line is the natural boundary of what is possible today. Eg, ORCL lives far out on the right and does things nosql vendors will ever do. These things come at the expense of some degree of scale and performance. NoSQL born out of wanting greater scalability and performance, but we think they overreacted by giving up some things. Eg, caching layers give up many things, key value stores are super fast, but give up rich data model and rich query model. MongoDB tries to give up some features of a relational database (joins, complex transactions) to enable greater scalability and performance. You get most of the functionality – 80% - with much better scalability and performance. Start with rdbms, ask what could we do to scale – take out complex transactions and joins. How? Change the data model. >> segue to data model section. May need to revise the graphic – either remove the line or all points should be on the line. To enable horizontal scalability, reduce coordination between nodes (joins and transactions). Traditionally in rdbms you would denormalize the data or tell the system more about how data relates to one another. Another way, a more intuitive way, is to use a document data model. More intuitive b/c closer to the way we develop applications today with object oriented languages, like java,.net, ruby, node.js, etc. Document data model is good segue to next section >> Data Model
  • #4: MongoDB provides agility, scalability, and performance without sacrificing the functionality of relational databases, like full index support and rich queries Indexes: secondary, compound, text search (with MongoDB 2.4), geospatial, and more
  • #6: Here we have greatly reduced the relational data model for this application to two tables. In reality no database has two tables. It is much more common to have hundreds or thousands of tables. And as a developer where do you begin when you have a complex data model?? If you’re building an app you’re really thinking about just a hand full of common things, like products, and these can be represented in a document much more easily that a complex relational model where the data is broken up in a way that doesn’t really reflect the way you think about the data or write an application.
  • #21: Many factors affect performance Make the right tradeoffs for your application We can help you make the most of your MongoDB system The following slides are examples of users and their systems.
  • #24: servers – shards + HA requirements 4800/server; 10,000/server; 750/server
  • #27: Many factors affect performance Make the right tradeoffs for your application We can help you make the most of your MongoDB system The following slides are examples of users and their systems.