Skip to content

Instantly share code, notes, and snippets.

@wxmn
Created October 25, 2011 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wxmn/1312747 to your computer and use it in GitHub Desktop.
Save wxmn/1312747 to your computer and use it in GitHub Desktop.
MongoHQ Replicate Set Config
defaults: &defaults
autocreate_indexes: false
allow_dynamic_fields: false
include_root_in_json: true
parameterize_keys: true
persist_in_safe_mode: true
raise_not_found_error: false
reconnect_time: 3
# slaves:
# - host: slave1.local
# port: 27018
# - host: slave2.local
# port: 27019
development:
<<: *defaults
host: localhost
database: 'grouper_development'
test:
<<: *defaults
host: localhost
database: 'grouper_test'
# set these environment variables on your prod server
production: &production
<<: *defaults
uri: <%= ENV['MONGOHQ_URL'] %>
autocreate_indexes: false
allow_read_secondary: true
allow_dynamic_fields: false
- - node0.orchid.mongohq.com
10013
- - node1.orchid.mongohq.com
10013
staging:
<<: *defaults
uri: <%= ENV['MONGOHQ_URL'] %>
autocreate_indexes: false
allow_dynamic_fields: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment