Skip to content

[DONT MERGE] Try using mmapv1 storage engine on Travis #4292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ before_script:
# Use a custom mongod.conf which uses various speed optimizations
- sudo cp scripts/travis/mongod.conf /etc/mongod.conf
# Clean up any old MongoDB 3.4 data files laying around and make sure mongodb user can write to it
- sudo rm -rf /var/lib/mongodb ; sudo mkdir /var/lib/mongodb ; sudo chown -R mongodb:mongodb /var/lib/mongodb
- sudo service mongod restart ; sleep 5
- sudo service mongod stop; sleep 10
- sudo rm -rf /var/lib/mongodb ; sudo mkdir /var/lib/mongodb ; sudo mkdir /var/lib/mongodb/journal ; sudo chown -R mongodb:mongodb /var/lib/mongodb
- sudo service mongod start ; sleep 10
- sudo service mongod status
- tail -30 /var/log/mongodb/mongod.log
- mongod --version
Expand Down
2 changes: 2 additions & 0 deletions scripts/travis/mongod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ net:
# --notablescan --dbpath ${DATA_DIR} --bind_ip 127.0.0.1 &> /tmp/mongodb.log &

storage:
engine: mmapv1
dbPath: /var/lib/mongodb
indexBuildRetry: false
journal:
Expand All @@ -51,6 +52,7 @@ storage:
syncPeriodSecs: 0

security:
authorization: false
javascriptEnabled: false

setParameter:
Expand Down