In the previous recipe, we learned how to install Siege, configure it, and run our first tests. Siege has many more configuration options that we can use to create more realistic load tests. In this recipe, we will learn how to have Siege attack multiple URLs in our application, as well as send POST requests. We'll see how to randomize the requests that get sent to make it mimic real-life scenarios more closely.
Let's fire up a terminal to get started by performing the following steps:
We can configure Siege to attack more than a single URL by editing Siege's URL file. To find out where this file is stored, we'll need to check our configuration:
$ siege -C CURRENT SIEGE CONFIGURATION Mozilla/5.0 (apple-x86_64-darwin14.0.0) Siege/3.0.7 Edit the resource file to change the settings. ---------------------------------------------- version: 3.0.7 verbose: true quiet: false...