Running the Load Test
Run Siege to Load Test your Wordpress Site
Now that Siege has been installed, we’re going to generate some load to our Wordpress site and see the metrics change in CloudWatch Container Insights.
From your terminal window, run the following command.
export WP_ELB=$(kubectl -n wordpress-cwi get svc understood-zebu-wordpress -o jsonpath="{.status.loadBalancer.ingress[].hostname}")
siege -q -t 15S -c 200 -i http://${WP_ELB}
This command tells Siege to run 200 concurrent connections to your Wordpress site at varying URLS for 15 seconds.
After the 15 seconds, you should see an output like the one below.
Now let’s go view our newly collected metrics!