SlideShare una empresa de Scribd logo
1 de 23
Partner Technical Solutions, MongoDB
Sandeep Parikh
#MongoDBWorld
High Performance MongoDB
on Amazon EC2
Solutions Architect, Amazon Web Services
Kyle Lichtenberg
Wait, isn’t there a whitepaper on
this?
• Much has changed since March 2013!
– (and an update is in the works!)
New EC2 Instances Types
• I2 released in December 2013
– Next generation High I/O Instance Family
– 4-32 vCPUs
– 30-244 GiB of Memory
– 800-6,400 GB of SSD Storage (up to 315,000+ IOPS)
• R3 released in April 2014
– Next Generation Memory Optimized Instance Family
– 2-32 vCPUs
– 15-244 GiB of Memory
Latest Generation Instance
Features
• Enhanced Networking (SR-IOV)
– Improved packet per second (PPS) performance
– Lower inter-instance latencies
– Very low network jitter
• SSDs
– No mechanical seeking!
– Higher I/O than magnetic
• Updated Hardware Architecture
– Ivy Bridge Intel Xeon E5-2670 v2
– Higher sustained memory bandwidth (up to 63,000 MB/s)
Storage I/O Optimized Instance
Evolution
hi1.4xlarge
Memor
y
60.5 GiB
Storage 2x 1,024GB
SSD
Networ
k
10 Gigabit
i2.8xlarge
Memory 244 GiB
Storage 8x 800GB SSD
Network 10 Gigabit
i2.4xlarge
Memory 122 GiB
Storage 4x 800GB SSD
Network High
i2.2xlarge
Memory 61 GiB
Storage 2x 800GB SSD
Network High
i2.xlarge
Memory 30.5 GiB
Storage 800GB SSD
Network Moderate
Memory Optimized Instance
Evolution
cr1.8xlarge
Memory 244 GiB
Storage 2x 120GB SSD
Network 10 Gigabit
m2.4xlarge
Memory 68.4 GiB
Storage 2x 840GB
Network High
m2.2xlarge
Memory 34.2 GiB
Storage 850GB
Network High
m2.xlarge
Memory 17.1 GiB
Storage 420GB
Network Moderate
r3.8xlarge
Memory 244 GiB
Storage 2x 320GB SSD
Network 10 Gigabit
r3.4xlarge
Memory 122 GiB
Storage 320GB SSD
Network High
r3.2xlarge
Memory 61 GiB
Storage 160GB SSD
Network High
r3.xlarge
Memory 30.5 GiB
Storage 80GB SSD
Network Moderate
r3.large
Memory 15.25 GiB
Storage 32GB SSD
Network Moderate
AWS Block Storage Review
• Amazon Elastic Block Store (“EBS”)
– Network attached
– Durable
– Snapshot backups to S3
• Amazon EBS Provisioned IOPS (“PIOPS”)
– Standard EBS + definable, consistent performance
• Instance Storage (“Ephemeral Storage”)
– Lowest latency
– Included in instance cost
– Volatile!
Storage Considerations
EBS EBS PIOPS Instance Store
~100 IOPS Magnetic
3 IOPS/GB General
Purpose (SSD)
Up to 1TB/Volume
Linear performance
increases up to 12
volumes on 8xlarge
instances
Max 36,000
IOPS/Instance
Snapshots!
Up to 30 IOPS/GB
(max 4,000/volume)
Up to 1TB/Volume
Linear performance
increases up to 12
volumes on 8xlarge
instances
Max 48,000
IOPS/Instance
Snapshots!
Up to 365,000
IOPS/instance
Up to 6.4TB
Fewer IOPS on
smaller instance sizes
Max 365,000
IOPS/Instance
No built-in backup
functionality
Storage Considerations
• When using EBS
– Use EBS Optimized Instances!
– Use PIOPS for consistent performance
– Use snapshots for backups
• When using Instance Storage
– Replicate! Replicate! Replicate!
– Use a replica with EBS volumes for backups
Cost Considerations
All EBS All EBS PIOPS Hybrid Instance
Store
47x 1TB General
Purpose (SSD)
6x r3.2xlarge
(EBS Optimized)
Volumes: $4,700.00
Compute: $3,294.00
Total: $7,994.00/mo
35x 134GB @ 4K
IOPS
6 r3.2xlarge
(EBS Optimized)
Volumes: $586.25
EBS IOPS: $9,100.00
Compute: $3,294.00
Total: $12,394.25/mo
4x 800GB SSD
2x i2.2xlarge
4x 1TB General
Purpose (SSD)
1x i2.2xlarge
(EBS Optimized)
Volumes: $400.00
Compute: $3780.78
Total: $4,180.78/mo
Assuming a performance target of 140,000 IOPS:
All costs are estimations and are based on published pricing as of 6/18/2014.
Cost is an important performance
metric!
• Reserved Instances
– Pricing model designed for steady state workloads
– Pay a small upfront fee for a reduced hourly rate
– Light, Medium, and Heavy utilization
– 1 and 3 year terms
Pricing Models
Hybrid Instance
Store
4x 800GB SSD
2x i2.2xlarge
4x 1TB General SSD
1x i2.2xlarge
(EBS Optimized)
Volumes: $400.00
• On-Demand
– One-time fee: $0.00
– Monthly Cost: $4,180.78
– Annual Cost: $50,169.36
• 1 YR Heavy Reserved
– One-time fee: $10,920
– Monthly Cost: $1,119.58
– Annual Cost: $13,434.96 ($24,354.96)
• 3 YR Heavy Reserved
– One-time fee: $16,440.00
– Monthly Cost: $965.86
– Annual Cost: $11,590.32 ($17,070.32)
All costs are estimations and are based on published pricing as of 6/18/2014.
Functional Deployment Patterns
• Proper instance type and storage selections play a
huge part in price and performance.
• Not all storage architectures are created equal, but
neither are all environments!
High Performance MongoDB
Instance Storage
Ephemeral
Set number of volumes
per instance
RAID with LVM
Snapshots via LVM
EBS Volumes
Persistent
Multiple volumes per
instance
RAID with LVM or MD
Snapshots
MongoDB Storage Considerations
Storage Differences
PIOPS EBS Instance SSDs
Highest durability Highest performance
Requires EBS-optimized instances Available on new generation
instances
Higher price per IOP Included in instance pricing
Development, Testing
MongoDB
App
MongoDB
Primary
App
MongoDB
Secondary
MongoDB
Secondary
Single Node Replica Set
Production, High Performance
MongoDB
Primary
App
MongoDB
Secondary
MongoDB
Secondary
Replica Set
MongoDB
Primary
MongoDB
Secondary
MongoDB
Secondary
Sharding
MongoDB
Primary
App
MongoDB
Secondary
MongoDB
Secondary
MongoDB
Primary
MongoDB
Secondary
MongoDB
Secondary
mongos
App
mongos
App
mongos
Deployment Strategies: SSDs
• SSD deployments
– Replica Sets
and
– MMS Backup
• High performance
• Highly available
• Continuous backup
MongoDB
Primary
MongoDB
Secondar
y
MongoDB
Secondar
y
MMS
Backup
Agent
MongoDB Management Service:
Backup
Fully-managed,
agent-based,
continuous
backup
Custom
snapshot
scheduling and
retention
Point in-time
recovery
Performance
impact similar to
Secondary
Encrypted data
transfer
Restores require
2-factor
authentication
Deployment Strategies: Hybrid
Mixed SSD/EBS deployment
Secondary
with PIOPS
EBS
Powerful, high-bandwidth
instance
Aggregate
multiple
volumes for
max IOPS
ex. r3.8xlarge
with 12
PIOPS EBS
volumes
Key is
avoiding
replication
lag
Monitor with
MMS
Measuring Performance
MMS
Monitoring
MongoDB
metrics
Visualizations
Dashboards
Alerts
System
stats tools
iostat
mpstat
sar
mongoperf
MongoDB
ops/second
Set threads,
fileSize,
caching
Partner Technical Solutions, MongoDB
Sandeep Parikh
#MongoDBWorld
Thank You!
Solutions Architect, Amazon Web Services
Kyle Lichtenberg

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS
 
Deep Dive: Maximizing EC2 and EBS Performance
Deep Dive: Maximizing EC2 and EBS PerformanceDeep Dive: Maximizing EC2 and EBS Performance
Deep Dive: Maximizing EC2 and EBS Performance
 
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
Scaling MongoDB on Amazon Web Services (DAT209) | AWS re:Invent 2013
 
Maximizing EC2 and Elastic Block Store Disk Performance
Maximizing EC2 and Elastic Block Store Disk PerformanceMaximizing EC2 and Elastic Block Store Disk Performance
Maximizing EC2 and Elastic Block Store Disk Performance
 
Consistent High IO Performance with Amazon Elastic Block Store
Consistent High IO Performance with Amazon Elastic Block StoreConsistent High IO Performance with Amazon Elastic Block Store
Consistent High IO Performance with Amazon Elastic Block Store
 
Maximizing Amazon EC2 and Amazon EBS performance
Maximizing Amazon EC2 and Amazon EBS performanceMaximizing Amazon EC2 and Amazon EBS performance
Maximizing Amazon EC2 and Amazon EBS performance
 
AWS re:Invent 2016: Deep Dive on Amazon Elastic Block Store (STG301)
AWS re:Invent 2016: Deep Dive on Amazon Elastic Block Store (STG301)AWS re:Invent 2016: Deep Dive on Amazon Elastic Block Store (STG301)
AWS re:Invent 2016: Deep Dive on Amazon Elastic Block Store (STG301)
 
Aws Elastic Block Storage
Aws Elastic Block StorageAws Elastic Block Storage
Aws Elastic Block Storage
 
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
 
Deep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech Talks
Deep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech TalksDeep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech Talks
Deep Dive on Amazon EBS Elastic Volumes - March 2017 AWS Online Tech Talks
 
Overview and Best Practices for Amazon Elastic Block Store - September 2016 W...
Overview and Best Practices for Amazon Elastic Block Store - September 2016 W...Overview and Best Practices for Amazon Elastic Block Store - September 2016 W...
Overview and Best Practices for Amazon Elastic Block Store - September 2016 W...
 
Deep Dive on Amazon EBS - AWS Online Tech Talks
Deep Dive on Amazon EBS - AWS Online Tech TalksDeep Dive on Amazon EBS - AWS Online Tech Talks
Deep Dive on Amazon EBS - AWS Online Tech Talks
 
AWS EBS
AWS EBSAWS EBS
AWS EBS
 
Advanced EBS Snapshot Management (STG402) | AWS re:Invent 2013
Advanced EBS Snapshot Management (STG402) | AWS re:Invent 2013Advanced EBS Snapshot Management (STG402) | AWS re:Invent 2013
Advanced EBS Snapshot Management (STG402) | AWS re:Invent 2013
 
MongoDB and Amazon Web Services: Storage Options for MongoDB Deployments
MongoDB and Amazon Web Services: Storage Options for MongoDB DeploymentsMongoDB and Amazon Web Services: Storage Options for MongoDB Deployments
MongoDB and Amazon Web Services: Storage Options for MongoDB Deployments
 
AWS Webcast - Cost and Performance Optimization in Amazon RDS
AWS Webcast - Cost and Performance Optimization in Amazon RDSAWS Webcast - Cost and Performance Optimization in Amazon RDS
AWS Webcast - Cost and Performance Optimization in Amazon RDS
 
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store PerformanceDeep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
 
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
 
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store PerformanceDeep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
Deep Dive: Maximizing Amazon EC2 and Amazon Elastic Block Store Performance
 
MongoDB and AWS: Integrations
MongoDB and AWS: IntegrationsMongoDB and AWS: Integrations
MongoDB and AWS: Integrations
 

Destacado

High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
Amazon Web Services
 
MongoDB Performance Tuning
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance Tuning
MongoDB
 

Destacado (20)

Best Practices for Running MongoDB on AWS - AWS May 2016 Webinar Series
Best Practices for Running MongoDB on AWS - AWS May 2016 Webinar SeriesBest Practices for Running MongoDB on AWS - AWS May 2016 Webinar Series
Best Practices for Running MongoDB on AWS - AWS May 2016 Webinar Series
 
MongoDB on EC2 and EBS
MongoDB on EC2 and EBSMongoDB on EC2 and EBS
MongoDB on EC2 and EBS
 
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
High Performance MongoDB Clusters with Amazon EBS Provisioned IOPS
 
MongoDB tuning on AWS
MongoDB tuning on AWSMongoDB tuning on AWS
MongoDB tuning on AWS
 
High Performance Applications with MongoDB
High Performance Applications with MongoDBHigh Performance Applications with MongoDB
High Performance Applications with MongoDB
 
Full-stack Web Development with MongoDB, Node.js and AWS
Full-stack Web Development with MongoDB, Node.js and AWSFull-stack Web Development with MongoDB, Node.js and AWS
Full-stack Web Development with MongoDB, Node.js and AWS
 
MongoDB World 2016: Deciphering .explain() Output
MongoDB World 2016: Deciphering .explain() OutputMongoDB World 2016: Deciphering .explain() Output
MongoDB World 2016: Deciphering .explain() Output
 
MongoDB Performance Tuning
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance Tuning
 
Scaling MongoDB
Scaling MongoDBScaling MongoDB
Scaling MongoDB
 
Running MongoDB 3.0 on AWS
Running MongoDB 3.0 on AWSRunning MongoDB 3.0 on AWS
Running MongoDB 3.0 on AWS
 
Lightning Talk: Running MongoDB on Docker for High Performance Deployments
Lightning Talk: Running MongoDB on Docker for High Performance DeploymentsLightning Talk: Running MongoDB on Docker for High Performance Deployments
Lightning Talk: Running MongoDB on Docker for High Performance Deployments
 
Tuning Linux for MongoDB
Tuning Linux for MongoDBTuning Linux for MongoDB
Tuning Linux for MongoDB
 
MongoDB Performance Tuning
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance Tuning
 
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
MongoDB performance tuning and load testing, NOSQL Now! 2013 Conference prese...
 
Building Secure Architectures on AWS
Building Secure Architectures on AWSBuilding Secure Architectures on AWS
Building Secure Architectures on AWS
 
20170210 sapporotechbar7
20170210 sapporotechbar720170210 sapporotechbar7
20170210 sapporotechbar7
 
How Auto Trader enables the UK's largest digital automotive marketplace
How Auto Trader enables the UK's largest digital automotive marketplaceHow Auto Trader enables the UK's largest digital automotive marketplace
How Auto Trader enables the UK's largest digital automotive marketplace
 
Back to Basics: My First MongoDB Application
Back to Basics: My First MongoDB ApplicationBack to Basics: My First MongoDB Application
Back to Basics: My First MongoDB Application
 
Back to Basics Webinar 3: Introduction to Replica Sets
Back to Basics Webinar 3: Introduction to Replica SetsBack to Basics Webinar 3: Introduction to Replica Sets
Back to Basics Webinar 3: Introduction to Replica Sets
 
Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...
Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...
Seminario Web MongoDB-Paradigma: Cree aplicaciones más escalables utilizando ...
 

Similar a High Performance MongoDB on Storage-Optimized AWS EC2

stackArmor presentation for DevOpsDC ver 4
stackArmor presentation for DevOpsDC ver 4stackArmor presentation for DevOpsDC ver 4
stackArmor presentation for DevOpsDC ver 4
Gaurav "GP" Pal
 
AWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APACAWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APAC
Amazon Web Services
 

Similar a High Performance MongoDB on Storage-Optimized AWS EC2 (20)

Optimizing Storage for Big Data/Analytics Workloads
Optimizing Storage for Big Data/Analytics WorkloadsOptimizing Storage for Big Data/Analytics Workloads
Optimizing Storage for Big Data/Analytics Workloads
 
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
SRV413 Deep Dive on Elastic Block Storage (Amazon EBS)
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWS
 
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
Optimize MySQL Workloads with Amazon Elastic Block Store - February 2017 AWS ...
 
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech TalksDeep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
Deep Dive on Amazon EC2 Instances - January 2017 AWS Online Tech Talks
 
10 tips to improve the performance of your AWS application
10 tips to improve the performance of your AWS application10 tips to improve the performance of your AWS application
10 tips to improve the performance of your AWS application
 
Amazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best PracticesAmazon EC2 Instances, Featuring Performance Optimisation Best Practices
Amazon EC2 Instances, Featuring Performance Optimisation Best Practices
 
DevOps for ETL processing at scale with MongoDB, Solr, AWS and Chef
DevOps for ETL processing at scale with MongoDB, Solr, AWS and ChefDevOps for ETL processing at scale with MongoDB, Solr, AWS and Chef
DevOps for ETL processing at scale with MongoDB, Solr, AWS and Chef
 
stackArmor presentation for DevOpsDC ver 4
stackArmor presentation for DevOpsDC ver 4stackArmor presentation for DevOpsDC ver 4
stackArmor presentation for DevOpsDC ver 4
 
(STG402) Amazon EBS Deep Dive
(STG402) Amazon EBS Deep Dive(STG402) Amazon EBS Deep Dive
(STG402) Amazon EBS Deep Dive
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
Getting Started with Amazon Aurora
Getting Started with Amazon AuroraGetting Started with Amazon Aurora
Getting Started with Amazon Aurora
 
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
 
Optimizing Storage for Big Data Analytics Workloads
Optimizing Storage for Big Data Analytics WorkloadsOptimizing Storage for Big Data Analytics Workloads
Optimizing Storage for Big Data Analytics Workloads
 
Elastic Block Storage (EBS)
Elastic Block Storage (EBS)Elastic Block Storage (EBS)
Elastic Block Storage (EBS)
 
AWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APACAWS Presentation at JasperWorld APAC
AWS Presentation at JasperWorld APAC
 
Amazon Web Services (AWS) Elastic Compute Cloud (EC2)
Amazon Web Services (AWS) Elastic Compute Cloud (EC2)Amazon Web Services (AWS) Elastic Compute Cloud (EC2)
Amazon Web Services (AWS) Elastic Compute Cloud (EC2)
 
Choosing the Right Database Service (김상필, 유타카 호시노) - AWS DB Day
Choosing the Right Database Service (김상필, 유타카 호시노) - AWS DB DayChoosing the Right Database Service (김상필, 유타카 호시노) - AWS DB Day
Choosing the Right Database Service (김상필, 유타카 호시노) - AWS DB Day
 
BDA402 Deep Dive: Log analytics with Amazon Elasticsearch Service
BDA402 Deep Dive: Log analytics with Amazon Elasticsearch ServiceBDA402 Deep Dive: Log analytics with Amazon Elasticsearch Service
BDA402 Deep Dive: Log analytics with Amazon Elasticsearch Service
 
AWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startupsAWS Activate webinar - Scalable databases for fast growing startups
AWS Activate webinar - Scalable databases for fast growing startups
 

Más de MongoDB

Más de MongoDB (20)

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

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

High Performance MongoDB on Storage-Optimized AWS EC2

  • 1. Partner Technical Solutions, MongoDB Sandeep Parikh #MongoDBWorld High Performance MongoDB on Amazon EC2 Solutions Architect, Amazon Web Services Kyle Lichtenberg
  • 2. Wait, isn’t there a whitepaper on this? • Much has changed since March 2013! – (and an update is in the works!)
  • 3. New EC2 Instances Types • I2 released in December 2013 – Next generation High I/O Instance Family – 4-32 vCPUs – 30-244 GiB of Memory – 800-6,400 GB of SSD Storage (up to 315,000+ IOPS) • R3 released in April 2014 – Next Generation Memory Optimized Instance Family – 2-32 vCPUs – 15-244 GiB of Memory
  • 4. Latest Generation Instance Features • Enhanced Networking (SR-IOV) – Improved packet per second (PPS) performance – Lower inter-instance latencies – Very low network jitter • SSDs – No mechanical seeking! – Higher I/O than magnetic • Updated Hardware Architecture – Ivy Bridge Intel Xeon E5-2670 v2 – Higher sustained memory bandwidth (up to 63,000 MB/s)
  • 5. Storage I/O Optimized Instance Evolution hi1.4xlarge Memor y 60.5 GiB Storage 2x 1,024GB SSD Networ k 10 Gigabit i2.8xlarge Memory 244 GiB Storage 8x 800GB SSD Network 10 Gigabit i2.4xlarge Memory 122 GiB Storage 4x 800GB SSD Network High i2.2xlarge Memory 61 GiB Storage 2x 800GB SSD Network High i2.xlarge Memory 30.5 GiB Storage 800GB SSD Network Moderate
  • 6. Memory Optimized Instance Evolution cr1.8xlarge Memory 244 GiB Storage 2x 120GB SSD Network 10 Gigabit m2.4xlarge Memory 68.4 GiB Storage 2x 840GB Network High m2.2xlarge Memory 34.2 GiB Storage 850GB Network High m2.xlarge Memory 17.1 GiB Storage 420GB Network Moderate r3.8xlarge Memory 244 GiB Storage 2x 320GB SSD Network 10 Gigabit r3.4xlarge Memory 122 GiB Storage 320GB SSD Network High r3.2xlarge Memory 61 GiB Storage 160GB SSD Network High r3.xlarge Memory 30.5 GiB Storage 80GB SSD Network Moderate r3.large Memory 15.25 GiB Storage 32GB SSD Network Moderate
  • 7. AWS Block Storage Review • Amazon Elastic Block Store (“EBS”) – Network attached – Durable – Snapshot backups to S3 • Amazon EBS Provisioned IOPS (“PIOPS”) – Standard EBS + definable, consistent performance • Instance Storage (“Ephemeral Storage”) – Lowest latency – Included in instance cost – Volatile!
  • 8. Storage Considerations EBS EBS PIOPS Instance Store ~100 IOPS Magnetic 3 IOPS/GB General Purpose (SSD) Up to 1TB/Volume Linear performance increases up to 12 volumes on 8xlarge instances Max 36,000 IOPS/Instance Snapshots! Up to 30 IOPS/GB (max 4,000/volume) Up to 1TB/Volume Linear performance increases up to 12 volumes on 8xlarge instances Max 48,000 IOPS/Instance Snapshots! Up to 365,000 IOPS/instance Up to 6.4TB Fewer IOPS on smaller instance sizes Max 365,000 IOPS/Instance No built-in backup functionality
  • 9. Storage Considerations • When using EBS – Use EBS Optimized Instances! – Use PIOPS for consistent performance – Use snapshots for backups • When using Instance Storage – Replicate! Replicate! Replicate! – Use a replica with EBS volumes for backups
  • 10. Cost Considerations All EBS All EBS PIOPS Hybrid Instance Store 47x 1TB General Purpose (SSD) 6x r3.2xlarge (EBS Optimized) Volumes: $4,700.00 Compute: $3,294.00 Total: $7,994.00/mo 35x 134GB @ 4K IOPS 6 r3.2xlarge (EBS Optimized) Volumes: $586.25 EBS IOPS: $9,100.00 Compute: $3,294.00 Total: $12,394.25/mo 4x 800GB SSD 2x i2.2xlarge 4x 1TB General Purpose (SSD) 1x i2.2xlarge (EBS Optimized) Volumes: $400.00 Compute: $3780.78 Total: $4,180.78/mo Assuming a performance target of 140,000 IOPS: All costs are estimations and are based on published pricing as of 6/18/2014.
  • 11. Cost is an important performance metric! • Reserved Instances – Pricing model designed for steady state workloads – Pay a small upfront fee for a reduced hourly rate – Light, Medium, and Heavy utilization – 1 and 3 year terms
  • 12. Pricing Models Hybrid Instance Store 4x 800GB SSD 2x i2.2xlarge 4x 1TB General SSD 1x i2.2xlarge (EBS Optimized) Volumes: $400.00 • On-Demand – One-time fee: $0.00 – Monthly Cost: $4,180.78 – Annual Cost: $50,169.36 • 1 YR Heavy Reserved – One-time fee: $10,920 – Monthly Cost: $1,119.58 – Annual Cost: $13,434.96 ($24,354.96) • 3 YR Heavy Reserved – One-time fee: $16,440.00 – Monthly Cost: $965.86 – Annual Cost: $11,590.32 ($17,070.32) All costs are estimations and are based on published pricing as of 6/18/2014.
  • 13. Functional Deployment Patterns • Proper instance type and storage selections play a huge part in price and performance. • Not all storage architectures are created equal, but neither are all environments!
  • 15. Instance Storage Ephemeral Set number of volumes per instance RAID with LVM Snapshots via LVM EBS Volumes Persistent Multiple volumes per instance RAID with LVM or MD Snapshots MongoDB Storage Considerations
  • 16. Storage Differences PIOPS EBS Instance SSDs Highest durability Highest performance Requires EBS-optimized instances Available on new generation instances Higher price per IOP Included in instance pricing
  • 18. Production, High Performance MongoDB Primary App MongoDB Secondary MongoDB Secondary Replica Set MongoDB Primary MongoDB Secondary MongoDB Secondary Sharding MongoDB Primary App MongoDB Secondary MongoDB Secondary MongoDB Primary MongoDB Secondary MongoDB Secondary mongos App mongos App mongos
  • 19. Deployment Strategies: SSDs • SSD deployments – Replica Sets and – MMS Backup • High performance • Highly available • Continuous backup MongoDB Primary MongoDB Secondar y MongoDB Secondar y MMS Backup Agent
  • 20. MongoDB Management Service: Backup Fully-managed, agent-based, continuous backup Custom snapshot scheduling and retention Point in-time recovery Performance impact similar to Secondary Encrypted data transfer Restores require 2-factor authentication
  • 21. Deployment Strategies: Hybrid Mixed SSD/EBS deployment Secondary with PIOPS EBS Powerful, high-bandwidth instance Aggregate multiple volumes for max IOPS ex. r3.8xlarge with 12 PIOPS EBS volumes Key is avoiding replication lag Monitor with MMS
  • 23. Partner Technical Solutions, MongoDB Sandeep Parikh #MongoDBWorld Thank You! Solutions Architect, Amazon Web Services Kyle Lichtenberg

Notas del editor

  1. Run through of the new instance types.
  2. General instance features that are relevant to the MongoDB crowd.
  3. From a single option to many! Talk through network differences.
  4. Even more choices! Network interface is why the 8xl’s stay together.
  5. Review of storage flavors to make sure there are not confused customers in the crowd.
  6. Push that EBS is a network based service and will be limited by interface size and type.
  7. This is only one dimension to consider! (I know, but time is short, and this is a big one.) Extreme example to hammer in the importance of understanding your storage! EBS Optimized can handle about 24K IOPS 8 drives at 3K IOPS for standard. This will saturate the EBS Optimized instanes. 6 drives at 4K IOPS will saturate the EBS Optimized instance. Still need 6 of them. 4 1TB General SSDs will catch the data for backup.on a low priority replica. This is the general architecture recommended in the whitepaper. Calc is wrong right now. 35% IOP reduction
  8. Parentheses represent (annual cost + One-Ttime)/Term.
  9. Mini-recap and handoff to Sandeep.