Search

Todd Rodzen

Agile Application Development

Tag

EPEL

AMI Build All-in-One

Full build process

  1. Create an EC2 Linux Instance base – Amazon Linux AMI 2016.09.1 (HVM), SSD Volume Type – ami-0b33d91d
  2. Install the LAMP Stack default Apache port set to 8080 as it will be served to an Nginx reverse proxy server on the same instance (Apache 2.4, MySQL, PHP 6.7)
  3. Install the MEAN Stack
  4. Install Nginx Reverse Proxy Server
  5. Install ColdFusion 2016 update 3 Server

The server is setup and available for Free with a service contract from GTK Solutions.

Advertisements

Linux Siege package

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/

 

Powered by WordPress.com.

Up ↑