diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-12-26 17:30:03 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-12-26 17:30:03 +0800 |
commit | c1f8ed8e836fb05eec5814e1a721352e64bc84d0 (patch) | |
tree | 4951e6c5c10236a0010f0aea2cd321aec78af755 /deploy/adapters/ansible | |
parent | 8d9d65ef222225db6ffebe1f2ead334ef1f0280f (diff) |
Increase the wait time of mongodb clustering to avoid failed on hosts with poor performance
JIRA: COMPASS-221
Change-Id: I7c017adbd4f1bcbc166047e0b3a9661f55ae7a89
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rwxr-xr-x | deploy/adapters/ansible/roles/database/tasks/mongodb_config.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/database/tasks/mongodb_config.yml b/deploy/adapters/ansible/roles/database/tasks/mongodb_config.yml index 573b30a9..1c118afb 100755 --- a/deploy/adapters/ansible/roles/database/tasks/mongodb_config.yml +++ b/deploy/adapters/ansible/roles/database/tasks/mongodb_config.yml @@ -11,8 +11,8 @@ shell: mongo compass --eval 'printjson(rs.status())'|grep -E 'PRIMARY|SECONDARY'|wc -l register: servers until: servers.stdout|int == 3 - retries: 20 - delay: 3 + retries: 30 + delay: 6 - debug: msg='{{ servers.stdout |int }}' |