Skip to content

Commit

Permalink
Merge pull request mongodb#3883 from niedfelj/session_options
Browse files Browse the repository at this point in the history
Updating mongoid.yml template
  • Loading branch information
arthurnn committed Jan 30, 2015
2 parents 1a7bbaa + ae37920 commit 06faf7c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions lib/rails/generators/mongoid/config/templates/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,38 @@ development:
# The time in seconds that Moped should wait before retrying an
# operation on failure. (default: 0.25)
# retry_interval: 0.25

# The connection pool size per-node. This should match or exceed the
# number of threads for a multi-threaded application. (default: 5)
# pool_size: 5

# The time in seconds that Moped should wait for the pool to provide
# an available connection. This number should probably remain at the
# default, unless for some reason you absolutely need to limit the
# pool_size, as this wait is only used when the pool is saturated.
# (default: 0.5)
# pool_timeout: 0.5

# The time in seconds before Moped will timeout connection and node
# operations. (default: 5)
# timeout: 5

# The amount of time in seconds between forced refreshes of node
# information including the discovery of new peers. (default: 300)
# refresh_interval: 300

# The amount of time in seconds that a node will be flagged as down.
# (default: 30)
# down_interval: 30

# Whether connections should use SSL. (default: nil/false)
# ssl: false

# Whether Moped will use the existing seeds/nodes to find other peers.
# (default: true)
# auto_discover: true


# Configure Mongoid specific options. (optional)
options:
# Includes the root model name in json serialization. (default: false)
Expand Down

0 comments on commit 06faf7c

Please sign in to comment.