This describes the steps to install Siege on the Amazon AWS EC2 Linux server.

We will be using a tool called Siege to test the server with 100’s or 1000’s of simultaneous calls. Let’s first turn on the Extra Packages for Enterprise Linux (EPEL) repository from the Fedora project. By default, this repository is present in /etc/yum.repos.d on Amazon Linux instances, but it is not enabled.

sudo yum-config-manager --enable epel

Note: For information on enabling the EPEL repository on other distributions, such as Red Hat and CentOS, see the EPEL documentation at https://fedoraproject.org/wiki/EPEL.

Now install Siege with the following command and answer Y to the two prompts.

sudo yum install siege

Now you can lay Siege to a server with the following command

siege -c25 -t20s -d3 http://localhost:4200

-c25 = 25 simultaneous users
-t20s = do it continuously for 20 seconds
-d3 (default) = a random time delay for each request of 1 to 3 seconds.
url request = http://localhost:4200

The full documentation on Siege is available at https://www.joedog.org/siege-manual/

 

Advertisements