Commit c58cbb30 by Feanil Patel

Merge pull request #2444 from edx/feanil/configurable_heartbeat_timeout

Be able to configure the mongo replica set heartbeat timeout.
parents 5f0c2643 34dcab34
......@@ -85,3 +85,4 @@ MONGO_S3_BACKUP_AWS_ACCESS_KEY: !!null
MONGO_S3_BACKUP_AWS_SECRET_KEY: !!null
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
{_id: {{ loop.index }}, host: '{{ host }}'}
{%- endif -%}
{% endfor %}
]};
],
settings: { heartbeatTimeoutSecs: {{ MONGO_HEARTBEAT_TIMEOUT_SECS }} }};
rs.initiate(config)
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