Here are a few notes on how I test load resilience with Siege
Before you start, make sure you adjust your terminal with the following:
-
Install Siege
sudo apt-get install siege
-
Create the suggested
~/.siegerc
- and make sure
IPADDRESS
,USERNAME
,PASSWORD
are valid (variables doesnt work there)
- and make sure
-
Create folder for logs
mkdir ~/siege/
-
Before running Siege, you can see the values that will be used
siege -C ~/.siegerc
-
You can source the .siegerc, and overwrite the values if you want
export SIEGERC=~/.siegerc
-
Set IP to a backend origin server IP address (e.g. 10.10.10.10), in
urls.txt
-
Note, we set the
-H
to fool the web server that we are Varnishsiege -H "Host: behind.varnish.hostname.com" -c40 -d10 -f urls.txt
-
Set IP to a publicly available hostname that Varnish is listening to and would serve the same app
siege -c40 -d10 -f urls.txt