You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
562 B
23 lines
562 B
#where to log
|
|
logpath=/var/log/mongo/mongos.log
|
|
|
|
logappend=true
|
|
|
|
# fork and run in background
|
|
fork = true
|
|
|
|
port = {{ mongos_port }}
|
|
{% set hosts = '' %}
|
|
{% for host in groups['mongoc_servers'] %}
|
|
{% if loop.last %}
|
|
{% set hosts = hosts + host + ':' ~ mongoc_port %}
|
|
configdb = {{ hosts }}
|
|
{% else %}
|
|
{% set hosts = hosts + host + ':' ~ mongoc_port + ',' %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
# location of pidfile
|
|
pidfilepath = /var/run/mongodb/mongos.pid
|
|
keyFile={{ mongodb_datadir_prefix }}/secret
|
|
chunkSize={{ mongos_chunk_size }}
|
|
|