Skip to content

Instantly share code, notes, and snippets.

@alabid
Last active August 29, 2015 14:11
Show Gist options
  • Save alabid/a23f84623629e63811e9 to your computer and use it in GitHub Desktop.
Save alabid/a23f84623629e63811e9 to your computer and use it in GitHub Desktop.
Longevity tests setup
1. Set ulimits for number of file descriptors and num processes
* soft nofile 100000
* hard nofile 100000
* soft nproc 100000
* hard nproc 100000
in /etc/security/limits.conf
2. logout and then in again
3. install mongo repo (max's fork).
git clone https://github.com/visemet/mongo.git
4. wget https://s3.amazonaws.com/mciuploads/mongodb-mongo-master/linux-64/77807b67089dfd7c1657051f1e674417ae8f3766/binaries/mongo-mongodb_mongo_master_linux_64_77807b67089dfd7c1657051f1e674417ae8f3766_14_12_17_19_21_06.tgz &&
tar -xvzf mongo-mongodb_mongo_master_linux_64_d3877ceca348713dc4d4347249a3976ee466edd3_14_12_12_16_00_10.tgz &&
mv mongo-mongodb_mongo_master_linux_64_d3877ceca348713dc4d4347249a3976ee466edd3_14_12_12_16_00_10 mongodb-linux-bins &&
sudo mkdir -p /data/db/wt &&
sudo mongodb-linux-bins/bin/mongod -v --dbpath /data/db/wt/ --logpath "mongod-$(date).log" --storageEngine wiredTiger --fork
5. cd mongo && git checkout concurrency-base
6. change composeProb in fsm_libs/composer.js to 0.25
7. change numSubsets = 100 in runner.js
8. uncomment out the "runWorkloadsMixture*" in jstests/parallel/fsm_all_composed.js
9. cd ~/mongo && nohup ../mongodb-linux-bins/bin/mongo jstests/parallel/fsm_all_composed.js &
10. you'll probably need to re-run after the tests have failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment