If it quacks like a RDBMS…

MongoDB feels a lot like a relational database: you can think of documents as rows, do ad hoc queries, and create indexes on fields. There are, however, a ton of differences due to the data model, scalability considerations, and MongoDB’s youth. This can lead to some not-so-pleasant surprises for users. We (the developers) try toContinue reading “If it quacks like a RDBMS…”

Sharding and Replica Sets Illustrated

This post assumes you know what replica sets and sharding are. Step 1: Don’t use sharding Seriously. Almost no one needs it. If you were at the point where you needed to partition your MySQL database, you’ve probably got a long ways to go before you’ll need to partition MongoDB (we scoff at billions ofContinue reading “Sharding and Replica Sets Illustrated”

Part 3: Replica Sets in the Wild

This post assumes that you know what replica sets are and some of the basic syntax. In part 1, we set up a replica set from scratch, but real life is messier: you might want to migrate dev servers into production, add new slaves, prioritize servers, change things on the fly… that’s what this postContinue reading “Part 3: Replica Sets in the Wild”

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”