summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-12-26 17:30:03 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-12-26 17:30:03 +0800
commitc1f8ed8e836fb05eec5814e1a721352e64bc84d0 (patch)
tree4951e6c5c10236a0010f0aea2cd321aec78af755
parent8d9d65ef222225db6ffebe1f2ead334ef1f0280f (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>
-rwxr-xr-xdeploy/adapters/ansible/roles/database/tasks/mongodb_config.yml4
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 }}'