Adjust mongoid config to fail quickly when the database is unreachable.

This commit is contained in:
jimabramson 2013-12-09 19:21:22 -05:00
Родитель 25e8684821
Коммит b59fa107a2
1 изменённых файлов: 15 добавлений и 23 удалений

Просмотреть файл

@ -11,48 +11,40 @@ test:
hosts:
- localhost:27017
common: &default_session
uri: <%= ENV['MONGOHQ_URL'] %>
options:
skip_version_check: true
safe: true
consistency: strong
max_retries: 1
retry_interval: 0
timeout: 0.5
production:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
options:
skip_version_check: true
safe: true
consistency: strong
<<: *default_session
edgeprod:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
options:
skip_version_check: true
safe: true
consistency: strong
<<: *default_session
edgestage:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
options:
skip_version_check: true
safe: true
consistency: strong
<<: *default_session
staging:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
<<: *default_session
loadtest:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
options:
skip_version_check: true
safe: true
consistency: strong
max_retries: 1
retry_interval: 1
<<: *default_session
defaults: &defaults
use_utc: false