Commit 71113041 authored by Otto J Wittner's avatar Otto J Wittner

Still more to be done...

parent b7e0d2f7
File added
......@@ -32,3 +32,10 @@
howpublished = {https://httpd.apache.org/docs/2.2/vhosts/},
note = {Visited 2015-11-11}}
@Misc{tarreau2000haproxy,
author = {Willy Tarreau},
title = {HAProxy - The Reliable, High Performance TCP/HTTP Load Balancer},
howpublished = {http://www.haproxy.org/},
year = 2000,
note = {Visited 2015-11-30}}
#!/bin/bash
# Load testing of SNIP
if [ $# -lt 2 ]
then
echo "Usage `basename $0` <4/6> <tot no of sessions>"
exit 1
fi
N=$2
IP=$1
i=0
let n=N/2
while [ $i -lt $n ]
do
if [ $IP -eq 4 ]
then
# SNIP1
( curl -4 --resolve streamer.uninett.no:443:158.38.212.139 https://streamer.uninett.no/bin/1000M > /dev/null 2>&1 & )
( curl -4 --resolve cat.eduroam.no:443:158.38.212.139 https://cat.eduroam.no/bin/1000M > /dev/null 2>&1 & )
# SNIP2
# ( curl -4 --resolve streamer.uninett.no:443:158.38.152.64 https://streamer.uninett.no/bin/1000M > /dev/null 2>&1 & )
else
( curl -6 https://streamer.uninett.no/bin/1000M > /dev/null 2>&1 & )
( curl -6 https://cat.eduroam.no/bin/1000M > /dev/null 2>&1 & )
fi
#( curl -$IP https://jornane.no/bin/1000M > /dev/null 2>&1 & )
let i=i+1
done
sleep 5
while [ 1 ]
do
pgrep curl | wc -l
sleep 1
done
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment