File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ title = " Configuration to run mspush-ruby"
2
+
3
+ [owner ]
4
+ name = " Daniel Fireman"
5
+ email = " danielfireman@gmail.com"
6
+
7
+ [setup ]
8
+ num_vms = 4
9
+ vcpus = 2
10
+ ram_gb = 4
11
+ rails_version = " 5.2.0"
12
+ ruby_version = " 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]"
13
+ go_version = " 1.10 linux/amd64" # compiled the gci proxy binary.
14
+
15
+ [execution ]
16
+ load = ' ssh -i ${sshkey} ubuntu@${lb} "sudo rm /var/log/nginx/access.log; sudo /etc/init.d/nginx restart; echo \"GET http://localhost/\" | ./vegeta attack -duration=60s -rate=80 >/dev/null; sudo rm /var/log/nginx/access.log; sudo /etc/init.d/nginx restart; echo \"GET http://localhost/\" | ./vegeta attack -duration=120s -rate=80 > results.bin; cat results.bin | ./vegeta report > vegeta_${expid}.out; cat results.bin | ./vegeta report -reporter=plot > plot_${expid}.html; rm results.bin; cp /var/log/nginx/access.log al_${expid}.csv"'
17
+ fetch_results = ' scp -i ${sshkey} ubuntu@${lb}:~/*_${expid}* ${outdir}; for ip in $ip1 $ip2 $ip3 $ip4; do scp -i ${sshkey} ubuntu@${ip}:~/*_${expid}_${ip}* ${outdir}; done'
18
+ cleanup = ' ssh -i ${sshkey} ubuntu@${lb} "rm *${expid}*"; for ip in $ip1 $ip2 $ip3 $ip4; do ssh -i ${sshkey} ubuntu@${ip} "rm *${expid}_${ip}*"; done'
19
+
20
+ [execution .no_gci ]
21
+ start = ' for ip in $ip1 $ip2 $ip3 $ip4; do ssh -i ${sshkey} ubuntu@${ip} "kill -9 \$(lsof -i tcp:3000 -t) 2>/dev/null; kill -9 \$(lsof -i tcp:8000 -t) 2>/dev/null; cd msgpush-ruby; MSG_SIZE=10240 WINDOW_SIZE=1 nohup puma --bind tcp://${ip}:3000 >../msgpush_${expid}_${ip}.out 2>../msgpush_${expid}_${ip}.err &"; done'
22
+ [execution .nogci .1 ]
23
+ exports = ' export outdir="stateless"; export expid="nogci_1"'
24
+
25
+ [execution .gci ]
26
+ start = ' for ip in $ip1 $ip2 $ip3 $ip4; do ssh -i ${sshkey} ubuntu@${ip} "kill -9 \$(lsof -i tcp:3000 -t) 2>/dev/null; kill -9 \$(lsof -i tcp:8000 -t) 2>/dev/null; nohup ./gci-proxy --port 3000 --url http://127.0.0.1:8000 --ygen=67108864 --tgen=67108864 >proxy_${expid}_${ip}.out 2>proxy_${expid}_${ip}.err& cd msgpush-ruby; USE_GCI=true MSG_SIZE=10240 WINDOW_SIZE=1 nohup puma --bind tcp://127.0.0.1:8000 >../msgpush_${expid}_${ip}.out 2>../msgpush_${expid}_${ip}.err &"; done'
27
+ [execution .gci .1 ]
28
+ exports = ' export outdir="stateless"; export expid="gci_1"'
29
+
You can’t perform that action at this time.
0 commit comments