Working on some stuff to make it easier to do my posts

This commit is contained in:
Josh Sherman 2018-05-27 19:08:58 -05:00
parent 6fbc61f651
commit a06a8c4bea
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
2 changed files with 12 additions and 1 deletions

2
run.sh Normal file → Executable file
View file

@ -11,7 +11,7 @@ swapoff -a
apt-get update
apt-get upgrade -y
apt-get install sysbench apache2 mailutils mysql-server python -y
apt-get install sysbench nginx mysql-server python -y
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest-cli

11
start.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
ssh-copy-id "root@$2"
rsync -avz run.sh "root@$2:~/"
ssh "root@$2" "./run.sh $1"
rsync -avz "root@$2:~/results-$1.tgz" ./
ab -kc 1000 -n 10000 "http://$2/" > "./ab-$1.log"