Suche senden
Hochladen
Optimizing MongoDB: Lessons Learned at Localytics
•
Als PPT, PDF herunterladen
•
23 gefällt mir
•
4,692 views
Benjamin Darfler
Folgen
MongoDB Optimizations done at Localytics to improve throughput while reducing cost.
Weniger lesen
Mehr lesen
Technologie
Bildung
Diashow-Anzeige
Melden
Teilen
Diashow-Anzeige
Melden
Teilen
1 von 44
Jetzt herunterladen
Empfohlen
Optimizing MongoDB: Lessons Learned at Localytics
Optimizing MongoDB: Lessons Learned at Localytics
andrew311
MongoDB memory management demystified
MongoDB memory management demystified
Alon Horev
Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB Clusters
Severalnines
MongoDB Best Practices in AWS
MongoDB Best Practices in AWS
Chris Harris
Sharding Methods for MongoDB
Sharding Methods for MongoDB
MongoDB
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
ronwarshawsky
Introduction to Redis
Introduction to Redis
Arnab Mitra
Mongodb - Scaling write performance
Mongodb - Scaling write performance
Daum DNA
Empfohlen
Optimizing MongoDB: Lessons Learned at Localytics
Optimizing MongoDB: Lessons Learned at Localytics
andrew311
MongoDB memory management demystified
MongoDB memory management demystified
Alon Horev
Development to Production with Sharded MongoDB Clusters
Development to Production with Sharded MongoDB Clusters
Severalnines
MongoDB Best Practices in AWS
MongoDB Best Practices in AWS
Chris Harris
Sharding Methods for MongoDB
Sharding Methods for MongoDB
MongoDB
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
ronwarshawsky
Introduction to Redis
Introduction to Redis
Arnab Mitra
Mongodb - Scaling write performance
Mongodb - Scaling write performance
Daum DNA
MongoDB Memory Management Demystified
MongoDB Memory Management Demystified
MongoDB
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
leifwalsh
MongoDB Auto-Sharding at Mongo Seattle
MongoDB Auto-Sharding at Mongo Seattle
MongoDB
MyRocks Deep Dive
MyRocks Deep Dive
Yoshinori Matsunobu
Understanding and tuning WiredTiger, the new high performance database engine...
Understanding and tuning WiredTiger, the new high performance database engine...
Ontico
Setting up mongodb sharded cluster in 30 minutes
Setting up mongodb sharded cluster in 30 minutes
Sudheer Kondla
Cassandra and Solid State Drives
Cassandra and Solid State Drives
Rick Branson
Cassandra at Instagram (August 2013)
Cassandra at Instagram (August 2013)
Rick Branson
Introduction to memcached
Introduction to memcached
Jurriaan Persyn
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
MongoDB
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
Amazon Web Services
Webinar Back to Basics 3 - Introduzione ai Replica Set
Webinar Back to Basics 3 - Introduzione ai Replica Set
MongoDB
Introduction to Sharding
Introduction to Sharding
MongoDB
MongoDB Performance Tuning and Monitoring
MongoDB Performance Tuning and Monitoring
MongoDB
MyRocks introduction and production deployment
MyRocks introduction and production deployment
Yoshinori Matsunobu
MongoDB and server performance
MongoDB and server performance
Alon Horev
Mongodb sharding
Mongodb sharding
xiangrong
Scylla Summit 2018: In-Memory Scylla - When Fast Storage is Not Fast Enough
Scylla Summit 2018: In-Memory Scylla - When Fast Storage is Not Fast Enough
ScyllaDB
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
Scott Mansfield
Sharding
Sharding
MongoDB
Mongodb in-anger-boston-rb-2011
Mongodb in-anger-boston-rb-2011
bostonrb
Spark Summit EU 2015: Lessons from 300+ production users
Spark Summit EU 2015: Lessons from 300+ production users
Databricks
Weitere ähnliche Inhalte
Was ist angesagt?
MongoDB Memory Management Demystified
MongoDB Memory Management Demystified
MongoDB
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
leifwalsh
MongoDB Auto-Sharding at Mongo Seattle
MongoDB Auto-Sharding at Mongo Seattle
MongoDB
MyRocks Deep Dive
MyRocks Deep Dive
Yoshinori Matsunobu
Understanding and tuning WiredTiger, the new high performance database engine...
Understanding and tuning WiredTiger, the new high performance database engine...
Ontico
Setting up mongodb sharded cluster in 30 minutes
Setting up mongodb sharded cluster in 30 minutes
Sudheer Kondla
Cassandra and Solid State Drives
Cassandra and Solid State Drives
Rick Branson
Cassandra at Instagram (August 2013)
Cassandra at Instagram (August 2013)
Rick Branson
Introduction to memcached
Introduction to memcached
Jurriaan Persyn
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
MongoDB
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
Amazon Web Services
Webinar Back to Basics 3 - Introduzione ai Replica Set
Webinar Back to Basics 3 - Introduzione ai Replica Set
MongoDB
Introduction to Sharding
Introduction to Sharding
MongoDB
MongoDB Performance Tuning and Monitoring
MongoDB Performance Tuning and Monitoring
MongoDB
MyRocks introduction and production deployment
MyRocks introduction and production deployment
Yoshinori Matsunobu
MongoDB and server performance
MongoDB and server performance
Alon Horev
Mongodb sharding
Mongodb sharding
xiangrong
Scylla Summit 2018: In-Memory Scylla - When Fast Storage is Not Fast Enough
Scylla Summit 2018: In-Memory Scylla - When Fast Storage is Not Fast Enough
ScyllaDB
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
Scott Mansfield
Sharding
Sharding
MongoDB
Was ist angesagt?
(20)
MongoDB Memory Management Demystified
MongoDB Memory Management Demystified
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
A New MongoDB Sharding Architecture for Higher Availability and Better Resour...
MongoDB Auto-Sharding at Mongo Seattle
MongoDB Auto-Sharding at Mongo Seattle
MyRocks Deep Dive
MyRocks Deep Dive
Understanding and tuning WiredTiger, the new high performance database engine...
Understanding and tuning WiredTiger, the new high performance database engine...
Setting up mongodb sharded cluster in 30 minutes
Setting up mongodb sharded cluster in 30 minutes
Cassandra and Solid State Drives
Cassandra and Solid State Drives
Cassandra at Instagram (August 2013)
Cassandra at Instagram (August 2013)
Introduction to memcached
Introduction to memcached
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
AWS Webcast - Achieving consistent high performance with Postgres on Amazon W...
Webinar Back to Basics 3 - Introduzione ai Replica Set
Webinar Back to Basics 3 - Introduzione ai Replica Set
Introduction to Sharding
Introduction to Sharding
MongoDB Performance Tuning and Monitoring
MongoDB Performance Tuning and Monitoring
MyRocks introduction and production deployment
MyRocks introduction and production deployment
MongoDB and server performance
MongoDB and server performance
Mongodb sharding
Mongodb sharding
Scylla Summit 2018: In-Memory Scylla - When Fast Storage is Not Fast Enough
Scylla Summit 2018: In-Memory Scylla - When Fast Storage is Not Fast Enough
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
EVCache: Lowering Costs for a Low Latency Cache with RocksDB
Sharding
Sharding
Ähnlich wie Optimizing MongoDB: Lessons Learned at Localytics
Mongodb in-anger-boston-rb-2011
Mongodb in-anger-boston-rb-2011
bostonrb
Spark Summit EU 2015: Lessons from 300+ production users
Spark Summit EU 2015: Lessons from 300+ production users
Databricks
Compact, Compress, De-Duplicate (DAOS)
Compact, Compress, De-Duplicate (DAOS)
Ulrich Krause
Spark SQL - 10 Things You Need to Know
Spark SQL - 10 Things You Need to Know
Kristian Alexander
Optimizing Big Data to run in the Public Cloud
Optimizing Big Data to run in the Public Cloud
Qubole
Spark to DocumentDB connector
Spark to DocumentDB connector
Denny Lee
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Databricks
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Lviv Startup Club
Couchbase - Yet Another Introduction
Couchbase - Yet Another Introduction
Kelum Senanayake
Apidays Paris 2023 - Forget TypeScript, Choose Rust to build Robust, Fast and...
Apidays Paris 2023 - Forget TypeScript, Choose Rust to build Robust, Fast and...
apidays
Daos
Daos
Ulrich Krause
Deploying your Data Warehouse on AWS
Deploying your Data Warehouse on AWS
Amazon Web Services
CouchDB
CouchDB
codebits
[PASS Summit 2016] Blazing Fast, Planet-Scale Customer Scenarios with Azure D...
[PASS Summit 2016] Blazing Fast, Planet-Scale Customer Scenarios with Azure D...
Andrew Liu
Azure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep Dive
Ilyas F ☁☁☁
Cold Storage That Isn't Glacial (Joshua Hollander, Protectwise) | Cassandra S...
Cold Storage That Isn't Glacial (Joshua Hollander, Protectwise) | Cassandra S...
DataStax
Azure Databricks is Easier Than You Think
Azure Databricks is Easier Than You Think
Ike Ellis
Running Presto and Spark on the Netflix Big Data Platform
Running Presto and Spark on the Netflix Big Data Platform
Eva Tse
Understanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQL
Hyderabad Scalability Meetup
Ähnlich wie Optimizing MongoDB: Lessons Learned at Localytics
(20)
Mongodb in-anger-boston-rb-2011
Mongodb in-anger-boston-rb-2011
Spark Summit EU 2015: Lessons from 300+ production users
Spark Summit EU 2015: Lessons from 300+ production users
Compact, Compress, De-Duplicate (DAOS)
Compact, Compress, De-Duplicate (DAOS)
Spark SQL - 10 Things You Need to Know
Spark SQL - 10 Things You Need to Know
Optimizing Big Data to run in the Public Cloud
Optimizing Big Data to run in the Public Cloud
Spark to DocumentDB connector
Spark to DocumentDB connector
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Everyday I'm Shuffling - Tips for Writing Better Spark Programs, Strata San J...
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Couchbase - Yet Another Introduction
Couchbase - Yet Another Introduction
Apidays Paris 2023 - Forget TypeScript, Choose Rust to build Robust, Fast and...
Apidays Paris 2023 - Forget TypeScript, Choose Rust to build Robust, Fast and...
Daos
Daos
Deploying your Data Warehouse on AWS
Deploying your Data Warehouse on AWS
CouchDB
CouchDB
[PASS Summit 2016] Blazing Fast, Planet-Scale Customer Scenarios with Azure D...
[PASS Summit 2016] Blazing Fast, Planet-Scale Customer Scenarios with Azure D...
Azure Data Lake Analytics Deep Dive
Azure Data Lake Analytics Deep Dive
Cold Storage That Isn't Glacial (Joshua Hollander, Protectwise) | Cassandra S...
Cold Storage That Isn't Glacial (Joshua Hollander, Protectwise) | Cassandra S...
Azure Databricks is Easier Than You Think
Azure Databricks is Easier Than You Think
Running Presto and Spark on the Netflix Big Data Platform
Running Presto and Spark on the Netflix Big Data Platform
Understanding and building big data Architectures - NoSQL
Understanding and building big data Architectures - NoSQL
Kürzlich hochgeladen
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Deepika Singh
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
johnbeverley2021
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
danishmna97
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
UiPathCommunity
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Jeffrey Haguewood
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
apidays
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
apidays
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
MadyBayot
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Kürzlich hochgeladen
(20)
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Architecting Cloud Native Applications
Architecting Cloud Native Applications
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Optimizing MongoDB: Lessons Learned at Localytics
1.
Optimizing MongoDB: Lessons
Learned at Localytics Benjamin Darfler MongoBoston - September 2011
2.
3.
4.
5.
6.
Optimizing Our Data
Documents and Indexes
7.
8.
9.
10.
11.
12.
13.
14.
Optimizing Our Queries
Reading and Writing
15.
16.
17.
18.
19.
20.
Optimizing Our Disk
Fragmentation
21.
Inserts doc1 doc2
doc3 doc4 doc5
22.
Deletes doc1 doc2
doc3 doc4 doc5 doc1 doc2 doc3 doc4 doc5
23.
Updates doc1 doc2
doc3 doc4 doc5 doc1 doc2 doc3 doc4 doc5 doc3 Updates can be in place if the document doesn't grow
24.
Reclaiming Freespace doc1
doc2 doc6 doc4 doc5 doc1 doc2 doc3 doc4 doc5
25.
Memory Mapped Files
doc1 doc2 doc6 doc4 doc5 } } page page Data is mapped into memory a full page at a time
26.
27.
28.
29.
Optimizing Our Keys
Index and Shard
30.
B-Tree Indexes -
hash/uuid key Hashes/UUIDs randomly distribute across the whole b-tree
31.
B-Tree Indexes -
temporal key Keys with a temporal prefix (i.e. ObjectId) are right aligned
32.
Migrations - hash/uuid
shard key Chunk 1 k: 1 to 5 Chunk 2 k: 6 to 9 Shard 1 Shard 2 Chunk 1 k: 1 to 5 {k: 4, …} {k: 8, …} {k: 3, …} {k: 7, …} {k: 5, …} {k: 6, …} {k: 4, …} {k: 3, …} {k: 5, …}
33.
34.
Migrations - temporal
shard key Chunk 1 k: 1 to 5 Chunk 2 k: 6 to 9 Shard 1 Shard 2 Chunk 1 k: 1 to 5 {k: 3, …} {k: 4, …} {k: 5, …} {k: 6, …} {k: 7, …} {k: 8, …} {k: 3, …} {k: 4, …} {k: 5, …}
35.
36.
Optimizing Our Deployment
Hardware and Configuration
37.
38.
39.
40.
41.
42.
43.
44.
Questions? @bdarfler http://bdarfler.com
Jetzt herunterladen