O'Reilly logo

Heroku Cookbook by Mike Coutermarsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring complex load tests with Siege

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.

How to do it…

Let's fire up a terminal to get started by performing the following steps:

  1. 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required