Top Banner
Scaling MongoDB in the cloud with Microsoft Azure Ivan Fioravanti CTO 4ward srl
39

Scaling MongoDB in the cloud with Microsoft Azure

Aug 27, 2014

Download

Software

Ivan Fioravanti

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.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Scaling MongoDB in the cloud with Microsoft Azure

Scaling MongoDB in the cloud with Microsoft AzureIvan FioravantiCTO 4ward srl

Page 2: Scaling MongoDB in the cloud with Microsoft Azure
Page 3: Scaling MongoDB in the cloud with Microsoft Azure
Page 4: Scaling MongoDB in the cloud with Microsoft Azure
Page 5: Scaling MongoDB in the cloud with Microsoft Azure
Page 6: Scaling MongoDB in the cloud with Microsoft Azure

What we build with MongoDB?

Page 7: Scaling MongoDB in the cloud with Microsoft Azure
Page 8: Scaling MongoDB in the cloud with Microsoft Azure

https://developer.globalblue.com

Page 9: Scaling MongoDB in the cloud with Microsoft Azure
Page 10: Scaling MongoDB in the cloud with Microsoft Azure

https://www.4ward365.com

Page 11: Scaling MongoDB in the cloud with Microsoft Azure
Page 12: Scaling MongoDB in the cloud with Microsoft Azure

Why MongoDB?

Page 13: Scaling MongoDB in the cloud with Microsoft Azure
Page 14: Scaling MongoDB in the cloud with Microsoft Azure

SERIOUSLY? OMG! WTF!

MISSION:IMPOSSIBLE

Page 15: Scaling MongoDB in the cloud with Microsoft Azure

Diagram from: http://blog.nahurst.com/visual-guide-to-nosql-systems

Page 16: Scaling MongoDB in the cloud with Microsoft Azure

WOW!

Page 17: Scaling MongoDB in the cloud with Microsoft Azure
Page 18: Scaling MongoDB in the cloud with Microsoft Azure

Source: http://www.mongodb.com/customers

Page 19: Scaling MongoDB in the cloud with Microsoft Azure

How we use MongoDB?

Page 20: Scaling MongoDB in the cloud with Microsoft Azure
Page 21: Scaling MongoDB in the cloud with Microsoft Azure

Member 1

Page 22: Scaling MongoDB in the cloud with Microsoft Azure

DON’T PANIC PLEASE STAND BY

We’re currently down

for maintenance

And will be back shortly

Thank you for your patience.

Page 23: Scaling MongoDB in the cloud with Microsoft Azure
Page 24: Scaling MongoDB in the cloud with Microsoft Azure

> 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")

Page 25: Scaling MongoDB in the cloud with Microsoft Azure

Single datacenter

Points of failure:– Power

– Network

– Data center

– Two node failure

Automatic recovery of single node crash

Member 1

Member 2

Arbiter 1

Page 26: Scaling MongoDB in the cloud with Microsoft Azure

Scale out! Singapore!

Photo by Dimos Paraskevas (http://www.flickr.com/photos/d_paraskevas)

Page 27: Scaling MongoDB in the cloud with Microsoft Azure
Page 28: Scaling MongoDB in the cloud with Microsoft Azure

> rs.add(“apacmongodb1.4ward.local")

> cfg = rs.conf()

> cfg.members[3].votes = 0

> cfg.members[3].priority = 0

> rs.reconfig(cfg)

Page 29: Scaling MongoDB in the cloud with Microsoft Azure

Member 1

Member 2

Arbiter 1

Member 3

VPN - Gateway

?

Page 30: Scaling MongoDB in the cloud with Microsoft Azure
Page 31: Scaling MongoDB in the cloud with Microsoft Azure

Photo by Alex E. Proimos (http://www.flickr.com/photos/proimos)

Page 32: Scaling MongoDB in the cloud with Microsoft Azure
Page 33: Scaling MongoDB in the cloud with Microsoft Azure
Page 34: Scaling MongoDB in the cloud with Microsoft Azure
Page 35: Scaling MongoDB in the cloud with Microsoft Azure

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

Page 36: Scaling MongoDB in the cloud with Microsoft Azure

https://www.4ward365.com

https://developer.globalblue.com

Page 37: Scaling MongoDB in the cloud with Microsoft Azure
Page 38: Scaling MongoDB in the cloud with Microsoft Azure
Page 39: Scaling MongoDB in the cloud with Microsoft Azure

Thanks!Ivan Fioravanti - CTO 4ward srl

[email protected]

@ivanfioravanti