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”