Evaluate the Network load when AWS EC2 as a Web server

Source: Internet
Author: User
Tags benchmark nginx server
Evaluate the throughput method for the network on a virtual machine as a Web server: Nginx + Apache benchmark + nload

The first step is to build an Nginx server on the Amazon Linux eligible free set of versions

1. Installing Nginx

Yum Install Nginx

2. Open port 80

In the security group, select Edit Inbound rules to add HTTP and 80 ports. Access by Browser:/HTTP , confirm that Nginx is working properly.


Second step, observe the load condition with nload

1. Installing nload

(1) Since Yum nload will fail and must be installed from source code, please download the installation development tool first: Yum Groupinstall "Development tools".

(2) Installation of nload dependent package: Yum-y Install ncurses*

(3) Download Nload:wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz

Unzip, compile, install:

Tar zxvf nload-0.7.4.tar.gz

./configure

Make && make install

2. Add/usr/local/bin to Path variable, start nload

Step three, install Apache Benchmark (AB)

AB is a self-bringing tool for Apache server, so just install Apache server.

Perform AB test commands on multiple client machines: ab-c 5000-n 100000-r /http/

"-C 5000", 5,000 concurrent requests at a time

"-N 100000", total 100,000 requests

The current load condition of the Web server can be seen from the nload run: outgoing:avg:18.49mbit/s


The above describes the evaluation of the Network load of AWS EC2 as a Web server, including aspects of the content, you want to be interested in PHP tutorial friends helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.