Commit 4e9ebbb5 by Will Daly

Merge pull request #463 from edx/will/mongo-journal

Disable mongo journaling on devstack and Jenkins
parents 19d63ed4 c2f233ed
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
hosts: jenkins_worker hosts: jenkins_worker
sudo: True sudo: True
gather_facts: True gather_facts: True
vars:
mongo_enable_journal: False
roles: roles:
- common - common
- edxlocal - edxlocal
......
...@@ -10,5 +10,4 @@ ...@@ -10,5 +10,4 @@
- include: system.yml - include: system.yml
- include: python.yml - include: python.yml
- include: browsers.yml
- include: jscover.yml - include: jscover.yml
...@@ -35,3 +35,7 @@ mongo_create_users: !!null ...@@ -35,3 +35,7 @@ mongo_create_users: !!null
# cloudformation stack, this group name can used to pull out # cloudformation stack, this group name can used to pull out
# the name of the stack the mongo server resides in. # the name of the stack the mongo server resides in.
mongo_aws_stack_name: "tag_aws_cloudformation_stack-name_" mongo_aws_stack_name: "tag_aws_cloudformation_stack-name_"
# In environments that do not require durability (devstack / Jenkins)
# you can disable the journal to reduce disk usage
mongo_enable_journal: True
...@@ -19,7 +19,12 @@ bind_ip = {{ MONGO_BIND_IP }} ...@@ -19,7 +19,12 @@ bind_ip = {{ MONGO_BIND_IP }}
port = {{ mongo_port }} port = {{ mongo_port }}
# Enable journaling, http://www.mongodb.org/display/DOCS/Journaling # Enable journaling, http://www.mongodb.org/display/DOCS/Journaling
{% if mongo_enable_journal %}
journal=true journal=true
{% else %}
journal=false
nojournal=true
{% endif %}
{% if MONGO_CLUSTERED %} {% if MONGO_CLUSTERED %}
keyFile = {{ mongo_key_file }} keyFile = {{ mongo_key_file }}
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
openid_workaround: True openid_workaround: True
devstack: True devstack: True
edx_platform_commit: 'master' edx_platform_commit: 'master'
mongo_enable_journal: False
vars_files: vars_files:
- "group_vars/all" - "group_vars/all"
roles: roles:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment