Book Image

Heroku Cookbook

By : Mike Coutermarsh
Book Image

Heroku Cookbook

By: Mike Coutermarsh

Overview of this book

Heroku is a Platform as a Service that enables developers to rapidly deploy and scale their web applications. Heroku is designed for developer happiness, freeing developers from doing system administrative tasks such as configuring servers and setting up load balancers. Developers are able to focus on what they do best, building web applications, while leaving the details of deployment and scaling to the experts at Heroku. This practical guide is packed with step-by-step solutions to problems faced by every production-level web application hosted on Heroku. You'll quickly get comfortable with managing your Heroku applications from the command line and then learn everything you need to know to deploy and administer production-level web applications.
Table of Contents (17 chapters)
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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