Merge pull request #187 from mitodl/blarghmatey/mongoid_settings_update
Updated the Mongoid configuration options
This commit is contained in:
Коммит
17c4c7fd41
|
@ -1,9 +1,9 @@
|
|||
common: &default_client
|
||||
options:
|
||||
write:
|
||||
w: 1
|
||||
w: <%= ENV['MONGOID_WRITE_MODE'] || 1 %>
|
||||
read:
|
||||
mode: :primary
|
||||
mode: :<%= ENV['MONGOID_READ_MODE'] || 'primary' %>
|
||||
max_retries: <%= ENV['MONGOID_MAX_RETRIES'] || 1 %>
|
||||
retry_interval: <%= ENV['MONGOID_RETRY_INTERVAL'] || 0 %>
|
||||
timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %>
|
||||
|
|
Загрузка…
Ссылка в новой задаче