forked from jepsen-io/mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-shard.sh
executable file
·13 lines (11 loc) · 1005 Bytes
/
run-shard.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
lein run test-all -w wr -d sharded-cluster \
--nodes-file ~/nodes -r 1000 --concurrency 3n --timeout-per-txn 30000 --max-txn-length $2 \
--time-limit $1 --max-writes-per-key 128 --read-concern majority --write-concern majority \
--txn-read-concern snapshot --txn-write-concern majority \
--nemesis-interval 1 --nemesis partition --test-count 1 --leave-db-running
cat ./store/latest/n4/var/log/mongodb/mongod.log | grep Cause:committed | grep wasPrepared:1 > ./store/latest/raw-timestamp-sharded-n4.log
cat ./store/latest/n7/var/log/mongodb/mongod.log | grep Cause:committed | grep wasPrepared:1 > ./store/latest/raw-timestamp-sharded-n7.log
cat ./store/latest/n4/var/log/mongodb/mongod.log | grep Cause:committed | grep wasPrepared:0 > ./store/latest/raw-timestamp-shard-n4.log
cat ./store/latest/n7/var/log/mongodb/mongod.log | grep Cause:committed | grep wasPrepared:0 > ./store/latest/raw-timestamp-shard-n7.log
python3 ./oplog-fetcher/oplog_reader.py -d sharded -e docker
rm -r ./store/latest/n*