The Problem Ran into an issue where we couldn’t restart celeryd on our production servers. When we’d try to restart celery using our init.d script we would see the following: $ /etc/init.d/celeryd restart Bus error We then tried to go to our Django project and go into the shell and came across the same error: … read more

A few commands that help with querying and troubleshooting mongodb. This document assumes we have a database called “test” and we have a collection called “comments”. Commands Number of documents in a collection: $ db.comments.count() 42232 Show the size of the Index: $ db.comments.totalIndexSize(); 73696 Show details of a specific query: $ db.comments.find({ tags : … read more

Many developers are often curious on what a possible web environment setup looks like in production. That answer can vary greatly depending on what exactly you want your application to do. A few question to ask yourself: Are you expecting heavy traffic on the site? How will you be notified if something in your system … read more

Enhance your user experience by preventing your users from having to wait long periods of time for certain actions to occurs. There are times when you want to send an email to many people or do other processor intensive work that you won’t want your user to have to wait on. In cases like these, … read more

I recently setup RAID 10 on our MongoDB server. I thought I would share how and why I did it. We’re using Amazon’s Web Services (AWS) and running Ubuntu 11.04. What is RAID 10 Why We Chose RAID 10 Setup RAID 10 with MongoDB on Ubuntu 11.04 Monitor the RAID Troubleshooting What to do When … read more

MongoDB is a very powerful schema-free, document oriented database. The following steps will show you how to get MongoDB up and running. Install MongoDB I used the Homebrew package manager to install mongodb. If you have Homebrew, run the following commands: $ brew update $ brew install mongodb You will see output like the following: … read more