A bit of testing on reverse proxies using the FastCGI protocol to PHP-FPM.
Run:
make test
make reports
If all goes well, you should have both the .json
and .json.html
reports from the nginx and haproxy tests.
The test suite uses artillery to perform a quick load test on the two different services.
When you run make test
, here's what happens:
- Clean any existing reports
- Build the local artillery container
- Runs the nginx and HAProxy tests
- Each starts by stopping and removing the existing containers
- The test simulates 20 users arriving every second for 60 seconds (total of 1200 virtual users arriving)
The endpoint it hits is just a simple php file with a tiny bit of code to ensure proper execution. The file and container is shared between the two tests (though only one container--nginx or HAProxy--is up at a time).