scaling mongodb in the cloud with microsoft azure
DESCRIPTION
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.TRANSCRIPT
Scaling MongoDB in the cloud with Microsoft AzureIvan FioravantiCTO 4ward srl
What we build with MongoDB?
https://developer.globalblue.com
https://www.4ward365.com
Why MongoDB?
SERIOUSLY? OMG! WTF!
MISSION:IMPOSSIBLE
Diagram from: http://blog.nahurst.com/visual-guide-to-nosql-systems
WOW!
Source: http://www.mongodb.com/customers
How we use MongoDB?
Member 1
DON’T PANIC PLEASE STAND BY
We’re currently down
for maintenance
And will be back shortly
Thank you for your patience.
> 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")
Single datacenter
Points of failure:– Power
– Network
– Data center
– Two node failure
Automatic recovery of single node crash
Member 1
Member 2
Arbiter 1
Scale out! Singapore!
Photo by Dimos Paraskevas (http://www.flickr.com/photos/d_paraskevas)
> rs.add(“apacmongodb1.4ward.local")
> cfg = rs.conf()
> cfg.members[3].votes = 0
> cfg.members[3].priority = 0
> rs.reconfig(cfg)
Member 1
Member 2
Arbiter 1
Member 3
VPN - Gateway
?
Photo by Alex E. Proimos (http://www.flickr.com/photos/proimos)
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
https://www.4ward365.com
https://developer.globalblue.com