Replica Sets Part 2: What are Replica Sets?

If you want to jump right into trying out replica sets, see Part 1: Master-Slave is so 2009. Replica sets are basically just master-slave with automatic failover. The idea is: you have a master and one or more slaves. If the master goes down, one of the slaves will automatically become the new master. TheContinue reading “Replica Sets Part 2: What are Replica Sets?”

Replica Sets Part 1: Master-Slave is so 2009

Replica sets are really cool and can be customized out the wazoo, so I’ll be doing a couple of posts on them (I have three written so far and I think I have a few more in there). If there’s any replica-set-related topic you’d like to see covered, please let me know and I’ll makeContinue reading “Replica Sets Part 1: Master-Slave is so 2009”

MongoDB backups & corn on the cob in 10 minutes

Last night, I discovered that you can make corn on the cob in about 5 minutes, which is so cool. You can also backup your MongoDB database in about 5 minutes (depending on size!), so I figured I’d combine the two. You’ll need: 1 MongoDB server you want to back up 1 external drive forContinue reading “MongoDB backups & corn on the cob in 10 minutes”

Managing your Mongo horde with genghis-khan

I have been working on a sharding GUI for the past few months (on and off). It’s starting to look pretty cool, so I figured I’d give people a sneak peak.  No, it’s not available yet, sorry. Basically, genghis-khan is a simple web server that connects to your cluster and gives you tons of informationContinue reading “Managing your Mongo horde with genghis-khan”

I Never Thought I’d Be On a Book

I’ve pretty much disappeared for the last few weeks because I’ve been finishing up MongoDB: The Definitive Guide, now available for pre-sale! It’s a comprehensive reference to MongoDB which should be useful for everyone, from a beginner who has never touched the database before to a core MongoDB developer (or so two have claimed… I’mContinue reading “I Never Thought I’d Be On a Book”

With a name like Mongo, it has to be good

I just got back from MongoSF, which was awesome. Over 200 Mongo geeks, three tracks, and language-specific workshops all day. The highlight, for me, was Eliot Horowitz’s talk on sharding. He set up a MongoDB cluster of 25 large EC2 instances and started hammering them. He pulled up an incredibly snazzy sharding GUI (okay, IContinue reading “With a name like Mongo, it has to be good”

There must be 50 ways to start your Mongo

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”

Once and Future Presentations

On Monday, I gave a presentation on MongoDB to the San Francisco MySQL user group.  It was a lot of fun, you can watch the recording on ustream: http://www.ustream.tv/flash/live/1/3708550Streaming Video by Ustream.TV Apparently the audio was buzzy (I haven’t actually listened to it myself yet). The audience especially enjoyed this slide about MySQL’s current situation:Continue reading “Once and Future Presentations”

Sharding with the Fishes

Sharding is the not-so-revolutionary way that MongoDB scales writes (it’s very similar to techniques described in the Big Table paper and by PNUTS) but many people are unfamiliar with what it is and how it works.  If you’ve seen a talk on MongoDB or looked at the website, you’ve probably seen a diagram of shardingContinue reading “Sharding with the Fishes”