liveBook · Manning

Apache Bench

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

Apache Bench is a command-line HTTP benchmarking tool that sends configurable numbers of requests concurrently.

Apache Bench (ab) is a command-line HTTP benchmarking tool for sending a chosen number of requests concurrently. It provides a basic way to apply repeatable load to a web application or load balancer. section 17.3.1

Testing an autoscaling WordPress deployment

A load test sends 500,000 requests through a load balancer with 15 concurrent threads, a 300-second limit, and a 120-second connection timeout. CloudWatch and EC2 observations show instances scaling out under load and scaling back afterward. section 17.3.1

$ ab -n 500000 -c 15 -t 300 -s 120 -r $UrlLoadBalancer

Use the complete ab command to reproduce the request count, concurrency, time limit, socket timeout, and load-balancer target. section 17.3.1

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

How deep it goes
Defines the tool and demonstrates one command, but does not develop benchmarking metrics or detailed performance analysis.
Examples
Uses a 500,000-request WordPress test with 15 concurrent threads and timed connection settings.
What it assumes
Assumes a reachable HTTP endpoint and introduces installation through the httpd-tools package on Amazon Linux.
What you can do after
Apply it via Apache Bench to generate HTTP load against a load-balancer URL.
How it connects
Connects HTTP benchmarking with load balancers, EC2 Auto Scaling, CloudWatch, and WordPress.

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.