aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2016-02-16 15:05:28 +0800
committerJustin chi <chigang@huawei.com>2016-03-16 07:41:38 +0000
commitd6e4a09c55c7ecf9b00e00aaabc21fa0ed7ff34e (patch)
tree4dfad41c5b00c4badd1b6a33abc99aa5b937101e /deploy
parent8436bf394e02394d11296d826b89f102f114f703 (diff)
bugfix: fix the mongodb oplog size to 10GB
JIRA: COMPASS-316 Change-Id: Ib7a6a0f9a8c06de19d0530157bbeaaf233ce169f Signed-off-by: carey.xu <carey.xuhan@huawei.com> (cherry picked from commit fc50d4a2fac61355019a7cffbef21e96a3423fce)
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/roles/database/templates/mongodb.conf1
-rw-r--r--deploy/client.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/database/templates/mongodb.conf b/deploy/adapters/ansible/roles/database/templates/mongodb.conf
index 18306154..7d6dda93 100644
--- a/deploy/adapters/ansible/roles/database/templates/mongodb.conf
+++ b/deploy/adapters/ansible/roles/database/templates/mongodb.conf
@@ -3,3 +3,4 @@ bind_ip = 0.0.0.0
replSet = compass
port = 27017
smallfiles = true
+oplogSize = 10240
diff --git a/deploy/client.py b/deploy/client.py
index 593f9033..fc5dc729 100644
--- a/deploy/client.py
+++ b/deploy/client.py
@@ -871,11 +871,11 @@ class CompassClient(object):
(cluster_id, status, cluster_state)
)
- LOG.info("current_time=%s, deployment_timeout=%s" \
- % (current_time(), deployment_timeout))
time.sleep(5)
- if not current_time() < deployment_timeout:
+ if current_time() >= deployment_timeout:
+ LOG.info("current_time=%s, deployment_timeout=%s" \
+ % (current_time(), deployment_timeout))
raise RuntimeError("installation timeout")
try: