Scaling MongoDB in the cloud with Microsoft Azure

1,847 views

Published on

Scaling MongoDB in the cloud with Microsoft Azure.
From my MongoDB Evening Talk of 1st April in Milan.

What we do, why, and how with MongoDB, with a lot of tips & tricks from our real life experience.

Published in: Software, Business, Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,847
On SlideShare
0
From Embeds
0
Number of Embeds
354
Actions
Shares
0
Downloads
25
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Scaling MongoDB in the cloud with Microsoft Azure

  1. 1. Scaling MongoDB in the cloud with Microsoft Azure Ivan Fioravanti CTO 4ward srl
  2. 2. What we build with MongoDB?
  3. 3. https://developer.globalblue.com
  4. 4. https://www.4ward365.com
  5. 5. Why MongoDB?
  6. 6. SERIOUSLY? OMG! WTF! MISSION:IMPOSSIBLE
  7. 7. Diagram from: http://blog.nahurst.com/visual-guide-to-nosql-systems
  8. 8. WOW!
  9. 9. Source: http://www.mongodb.com/customers
  10. 10. How we use MongoDB?
  11. 11. Member 1
  12. 12. DON’T PANIC PLEASE STAND BY We’re currently down for maintenance And will be back shortly Thank you for your patience.
  13. 13. > rs.initiate() > rs.conf() { "_id" : "rs0", "version" : 4, "members" : [ { "_id" : 0, "host" : "eumongodb0.4ward.local:27017" } ] } > rs.add("eumongodb1.4ward.local") > rs.addArb("eumongodbarb1.4ward.local")
  14. 14. Single datacenter Points of failure: – Power – Network – Data center – Two node failure Automatic recovery of single node crash Member 1 Member 2 Arbiter 1
  15. 15. Scale out! Singapore! Photo by Dimos Paraskevas (http://www.flickr.com/photos/d_paraskevas)
  16. 16. > rs.add(“apacmongodb1.4ward.local") > cfg = rs.conf() > cfg.members[3].votes = 0 > cfg.members[3].priority = 0 > rs.reconfig(cfg)
  17. 17. Member 1 Member 2 Arbiter 1 Member 3 VPN - Gateway ?
  18. 18. Photo by Alex E. Proimos (http://www.flickr.com/photos/proimos)
  19. 19. http://docs.mongodb.org/manual/tutorial/deploy-replica-set/ http://docs.mongodb.org/manual/tutorial/configure-a-non-voting-replica-set- member/ http://docs.mongodb.org/manual/core/replica-set-priority-0-member/ http://blogs.msdn.com/b/windowsazure/archive/2014/03/28/network-isolation- options-for-machines-in-windows-azure-virtual-networks.aspx https://www.mongodb.com/products/training#online
  20. 20. https://www.4ward365.com https://developer.globalblue.com
  21. 21. Thanks! Ivan Fioravanti - CTO 4ward srl ivan.fioravanti@4ward.it @ivanfioravanti

×