OPTIONS

dotCloud

MongoDB can run on the dotCloud platform. It supports replica sets, and has alpha support for sharding.

The whole point of dotCloud is to run your apps and your databases in the same place, to optimize for latency and reliability. However, you can also deploy MongoDB on dotCloud and use it to power an app running anywhere else.

If You Don’t Have a dotCloud Account Yet

Well, what are you waiting for? :-)

Go ahead and create one (it’s free!) and install the CLI:

sudo easy_install pip; sudo pip install dotcloud

If you need help to get the CLI running, check the dotCloud install docs and don’t hesitate to ask for help.

With a dotCloud Account

The following snippet will deploy MongoDB on dotCloud for you in no time:

mkdir mongodb-on-dotcloud
cat >mongodb-on-dotcloud/dotcloud.yml <<EOF
db:
  type: mongodb
EOF
dotcloud push mongorocks mongodb-on-dotcloud
dotcloud info mongorocks.db

The last command will show you the host, port, and credentials to be used to connect to your database.

Scaling

Assuming you followed the instructions of the previous section, if you want to get a replica sets of 3 servers:

dotcloud scale mongorocks db=3

Advanced Use

If you want to have a closer look at your MongoDB server, nothing beats SSH access:

dotcloud ssh mongorocks.db

More Docs

Ready-to-use Apps

All you need to do to run them is a git clone and a dotcloud push:

Getting help

dotCloud has a Q&A site, and the dotCloud team can be reached through the FreeNode IRC network on hash tag “dotcloud”.