High Availability with MongoDB for Fun and Profit

download High Availability with MongoDB for Fun and Profit

If you can't read please download the document

description

My talk at MongoSF 2012.

Transcript of High Availability with MongoDB for Fun and Profit

  • 1. High Availability with MongoDBfor Fun and Profit Greg Brockman Stripe@thegdb // [email protected]

2. IntroTips & TricksBest PracticesQuestions @thegdb // [email protected] 3. Replica Set Crash Course PRIMARYSECONDARYSECONDARY @thegdb // [email protected] 4. Live Demo!@thegdb // [email protected] 5. Start a cluster@thegdb // [email protected] 6. Naively: zz @thegdb // [email protected] 7. With retries:@thegdb // [email protected] 8. All the (hard) problems are solved @thegdb // [email protected] 9. Tips & Tricks @thegdb // [email protected] 10. If at first you dont succeed... @thegdb // [email protected] 11. Rebuild all the things! @thegdb // [email protected] 12. Force initial syncs from secondaries primarynewnode# HACKnewnode> iptables -I OUTPUT -j DROP -d primary@thegdb // [email protected] 13. IPs vs Hostnames @thegdb // [email protected] 14. Zero-downtime migrations Background index buildsObject versioning Avoid multi-updates@thegdb // [email protected] 15. Best Practices @thegdb // [email protected] 16. Always rehearse your exact administration procedure@thegdb // [email protected] 17. Be skeptical@thegdb // [email protected] 18. Read the issues `@thegdb // [email protected] 19. Understand the guarantees youre getting* @thegdb // [email protected] 20. Questions@thegdb // [email protected]