This blog post covers four major ones: Single server Master-slave Replica pairs Sharding Feel free to jump to the ones that interest you (for instance, sharding). Just start up a database, Ace Starting up a vanilla MongoDB instance is super easy, it just needs a port it can listen on and a directory where itContinue reading “There must be 50 ways to start your Mongo”
Tag Archives: replica pairs
Testing MongoDB Replica Pairs with Perl
I was just fixing this, and it’s a pain to setup/test, so I figured I’d put up what I did here, so at least I’d never have to figure it out again. So, start two db servers and an arbiter: $ mkdir ~/data1 $ mkdir ~/data2 $ $ ./mongod –pairwith localhost:27018 –arbiter localhost:27019 –dbpath ~/data1Continue reading “Testing MongoDB Replica Pairs with Perl”