mLab MongoDB alpha

mLab MongoDB is a fully-managed cloud database service featuring highly-available MongoDB databases, automated backups, web-based tools, 24/7 monitoring, and expert support. By hosting MongoDB on mLab's Database-as-a-Service (DBaaS) platform, developers and IT professionals are free to focus their attention on product development instead of operations.

  • MongoDB hosting on Amazon EC2
  • Replication and backups
  • Monitoring and support, 24x7
  • REST API
  • Web management tools

Get your database up instantly!

Sandbox

Free

  • 500 MB of storage
This code snippet assumes you are using bundler

If using MongoDB Ruby Driver

add to Gemfile

gem 'mongo'
gem 'ey_config'

setup mongo (wherever you use it)

uri  = URI.parse(EY::Config.get(:mlab, 'MONGODB_URI'))
conn = Mongo::Connection.from_uri(EY::Config.get(:mlab, 'MONGODB_URI'))
db   = conn.db(uri.path.gsub(/^\//, ''))

If Using Mongoid

add to Gemfile

gem 'mongoid'
gem 'bson_ext'
gem 'ey_config'

generate config file

rails generate mongoid:config

edit config/mongoid.yml

production:
  uri: <%= EY::Config.get(:mlab, 'MONGODB_URI') %>

Please log in if you would like to set up the service.