-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathbios.sh
More file actions
executable file
·23 lines (18 loc) · 670 Bytes
/
bios.sh
File metadata and controls
executable file
·23 lines (18 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh
# run this to simulate load tests
# 30309 is the zip code of the Margaret Mitchell House
mongosh 'mongodb://localhost:30309/' --eval 'db.shutdownServer()'
rm -rf dbase
mkdir dbase
mongod --dbpath dbase --logpath dbase/mongod.log --port 30309 --fork
sleep 5
mongosh 'mongodb://localhost:30309/' --eval 'db.setProfilingLevel(0, 10)'
hatchet --bios 'mongodb://localhost:30309/' 10000000 &
for i in {1..3}
do
hatchet --sim read 'mongodb://localhost:30309/' &
hatchet --sim write 'mongodb://localhost:30309/' &
done
wait
hatchet --obfuscate dbase/mongod.log | gzip > obfuscated.log.gz
mongosh 'mongodb://localhost:30309/' --eval 'db.shutdownServer()'