liveBook · Manning

Load testing

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A load test is a controlled test that generates workload to evaluate system behavior under specified demand.

A load test is a controlled test that generates workload to evaluate system behavior under specified demand. In an AWS web application, Apache Bench sends concurrent HTTP requests while CloudWatch and Auto Scaling expose the system’s response. section 17.3.1

Apply a basic load test to a scalable WordPress deployment:

  • Install Apache Bench from the Amazon Linux httpd-tools package. section 17.3.1
  • Watch the CloudWatch target-tracking alarm and EC2 instances as Auto Scaling launches additional machines and later removes them. section 17.3.1
  • For queue-backed work, generate messages, monitor SQS queue-length alarms, and observe step scaling add or remove workers. section 17.3.2

WordPress scaling test

A WordPress deployment behind a load balancer receives 500,000 requests through 15 Apache Bench threads. After roughly three minutes, Auto Scaling launches new EC2 instances; after the test and cooldown period, the extra instances disappear. Large tests should be checked against the AWS Acceptable Use Policy and may require permission. section 17.3.1

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Demonstrates workload generation, command parameters, alarms, and scaling observation, without developing broader benchmarking methodology.
Examples
Uses a 500,000-request WordPress test and a 250-message URL-to-image queue test.
What it assumes
Assumes a deployed CloudFormation application and basic access to AWS CLI, browser, CloudWatch, and EC2 consoles.
What you can do after
Apply it via Apache Bench and AWS consoles to trigger, monitor, and clean up scaling experiments.
How it connects
Connects Apache Bench with load balancers, EC2 Auto Scaling, CloudWatch, AWS CloudFormation, and Amazon SQS.

Also explained in

Compare how 5 books explain load testing →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.