Skip to content
This repository

This branch is 1 commit ahead and 197 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 attributes
Octocat-spinner-32 files Added recipe to install Mongo Monitoring Service (MMS) April 09, 2012
Octocat-spinner-32 recipes
Octocat-spinner-32 templates
Octocat-spinner-32 README.md
README.md

ey-cloud-recipes/mongodb v2.0.2

A chef recipe for enabling mongodb v2.0.2 on Engine Yard AppCloud. This recipe downloads the latest version binary from 10gen and sets up a 3 node MongoDB Replica Set.

It makes a few assumptions:

  • You will be running MongoDB on a utility instance(s).
  • You will be using Replica sets.

MMS support

The recipe will also install Mongo Monitoring Service (MMS) on a solo or db_master. You will need to provide your api & secret keys. See https://mms.10gen.com/help/ for more information.

Using it

  • add the following to main/recipes/default.rb,

require_recipe "mongodb"

  • Upload recipes to your environment

ey recipes upload -e <environment>

  • Add an utility instance with the following naming scheme(s)

    • For an replica set,
      • mongodb_repl#{setname}_1
      • mongodb_repl#{setname}_2
      • mongodb_repl#{setname}_3
      • ...
  • Drops /data/#{app.name}/shared/config/mongo.yml with all the information needed to connect to MongoDB.

Caveats

Replica sets should normally be in a size of 3 or greater. This recipe does not and will not support 32-bit instances.
Please ensure you use 64-bit instances when you create the Utility slices.

Legend

  • The usage of #{app.name} is an indicator of the application name set on the Applications Section on the Dashboard.

TODO

Things (currently) lacking from this recipe:

  • Ability to set up scheduled backups of your MongoDB database
  • Ability to set up a sharded installation
  • Arbiter support

Known Bugs

Previous versions of this recipe used the legacy-static binary. This is no longer needed. Please fetch latest changes as this recipe is being frequently maintained.

Warranty

If you find bugs, please open a Zendesk ticket or submit a pull request.

Credits

Thanks to Edward Muller and Dan Peterson for the original awesome recipe to begin with.

Something went wrong with that request. Please try again.