• Like

Rocking mongo db on the cloud

  • 2,569 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,569
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
17
Comments
0
Likes
9

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. rockingmongoDBon the cloud @MilesWard – AWS Solutions Architect
  • 2. SimpleStableScalable
  • 3. Simple: Whitepaper - - - > Marketplace Cloudformationmedia.amazonwebservices.com/AWS_NoSQL_MongoDB.pdf
  • 4. Simple: Whitepaper - - - > Marketplace Cloudformationmedia.amazonwebservices.com/AWS_NoSQL_MongoDB.pdf
  • 5. Easy to start a single node No extra costAmazon Linux for Premium Support bit.ly/MZa8Rz
  • 6. Easy to start a single node? No extra costAmazon Linux for Premium Support bit.ly/MZa8Rz
  • 7. Easy to start a single node? No extra costAmazon Linux for Premium Support bit.ly/MZa8Rz
  • 8. Easy to start a single node? No extra costAmazon Linux for Premium Support bit.ly/MZa8Rz
  • 9. Simple: Whitepaper - - - > Marketplace Cloudformationmedia.amazonwebservices.com/AWS_NoSQL_MongoDB.pdf
  • 10. NestedNodes + StorageConfigurableCloudformation: Infrastructure belongsin your source control mongodb.org/display/DOCS/Automating+Deployment+with+CloudFormation
  • 11. Stable: Memory + Storage
  • 12. 3.757.515 < - - -Where you should be17.134.268.460.5
  • 13. 3.75 m1.medium7.5 m1.large15 m1.xlarge …In Memory!17.1 m2.xlarge34.2 m2.2xlarge68.4 m2.4xlarge60.5 cc2.4xlarge
  • 14. New Storage Options • EBS – Provisioned IOPS volumesEBS • Deliver predictable, high performance for I/O intensive workloadsPIOPS • Specify IOPS required upfront, and EBS provisions for lifetime of volume – 1000 IOPS per volume, can stripe to get thousands of IOPS to EC2 instanceSSD • High IO Instances – hi1.4xlarge • For applications that require 10s of thousands of IOPS • Eliminates network latency as a performance constraint to storage + • EBS Optimized Instances • Enables instances to fully utilize IOPS provisioned on an EBS volume • Dedicated instance throughput to EBS – 500 Mbps and 1000 Mbps
  • 15. Test: random 4k readsEBS One Volume: ~200 MongoOPS with some variability, <1mb/s Loaded instance: ~ 1000 MongoOPS with some variability <10mb/s +PIOPS One Volume: 1010 MongoOPS with <1% variability, 3mb/s Loaded Instance: 10004 MongoOPS with <1% variability, 30mb/sSSD Hi1.4xlarge ephemeral: ~64,000 MongoOPS with low variability, ~245mb/s
  • 16. Test: random 4k reads + PIOPS SSDEBS
  • 17. random 4k reads + PIOPS SSDEBS Stable
  • 18. Stability Tips Ext4 or XFS, nodiratime, noatimeStable Raise file descriptor limits Set disk read-ahead No large virtual memory pages SNAPSHOT SNAPSHOT SNAPSHOT
  • 19. Scalable
  • 20. Scalable: Get Big Fast and shrink quickly too
  • 21. 10 Million records44 GB collection2,000 ops1000% expected growth
  • 22. 1000% expected growth
  • 23. 1000% expected growthreplicate
  • 24. 1000% expected growth shard shard shard
  • 25. 1000% expected growth shard shard shard
  • 26. 1000% expected growth shard shard shard
  • 27. Scale Both Ways
  • 28. SSD ScaleSSD SSD SSD SSD SSD SSDSSD SSD SSD
  • 29. Shrink quickly too Go from m2.4xlarge to m1.medium in
  • 30. Shrink quickly too Go from m2.4xlarge to m1.medium in Three easy steps so that you can save
  • 31. Shrink quickly too Go from m2.4xlarge to m1.medium in Three easy steps so that you can save 90% of the compute cost when you don’t need it…
  • 32. THANKS! Miles Ward – AWS Solutions Architect