summaryrefslogtreecommitdiffstats
path: root/deploy/adapters
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-29 09:36:57 +0800
commit572e5d4727ab009e3b5411686422a373d601883f (patch)
tree31021141ec798066d2d9ffcd34f4eb108c7dca52 /deploy/adapters
parent0ccb2434dc7bbafa2d5e60ec5777dd03b00bc258 (diff)
Increase the wait time of mongodb clustering to avoid failed on hosts with poor performance
JIRA: COMPASS-221 Change-Id: I8ffae5f762927398ef9f11096d815e6a8022c587 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters')
-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 1c118afb..321c38d5 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: 30
- delay: 6
+ retries: 60
+ delay: 10
- debug: msg='{{ servers.stdout |int }}'