Increase the wait time of mongodb clustering to avoid failed on hosts with poor perfo... 31/5331/2
authorcarey.xu <carey.xuhan@huawei.com>
Sat, 26 Dec 2015 09:30:03 +0000 (17:30 +0800)
committercarey.xu <carey.xuhan@huawei.com>
Tue, 29 Dec 2015 01:36:57 +0000 (09:36 +0800)
JIRA: COMPASS-221

Change-Id: I8ffae5f762927398ef9f11096d815e6a8022c587
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
deploy/adapters/ansible/roles/database/tasks/mongodb_config.yml

index 1c118af..321c38d 100755 (executable)
@@ -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: 30
-  delay: 6
+  retries: 60
+  delay: 10
 
 - debug: msg='{{ servers.stdout |int }}'