Commit 6058c22f by Feanil Patel

Be able to configure the mongo replica set heartbeat timeout.

parent 3ca4e4c4
...@@ -85,3 +85,4 @@ MONGO_S3_BACKUP_AWS_ACCESS_KEY: !!null ...@@ -85,3 +85,4 @@ MONGO_S3_BACKUP_AWS_ACCESS_KEY: !!null
MONGO_S3_BACKUP_AWS_SECRET_KEY: !!null MONGO_S3_BACKUP_AWS_SECRET_KEY: !!null
MONGO_LOG_SERVERSTATUS: true MONGO_LOG_SERVERSTATUS: true
MONGO_HEARTBEAT_TIMEOUT_SECS: 10
...@@ -31,7 +31,8 @@ config = {_id: '{{ mongo_repl_set }}', members: [{% for host in mongo_cluster_me ...@@ -31,7 +31,8 @@ config = {_id: '{{ mongo_repl_set }}', members: [{% for host in mongo_cluster_me
{_id: {{ loop.index }}, host: '{{ host }}'} {_id: {{ loop.index }}, host: '{{ host }}'}
{%- endif -%} {%- endif -%}
{% endfor %} {% endfor %}
]}; ],
settings: { heartbeatTimeoutSecs: {{ MONGO_HEARTBEAT_TIMEOUT_SECS } };
rs.initiate(config) rs.initiate(config)
sleep(30000) sleep(30000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment