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

Monitoring dyno performance with Librato


We will need to monitor CPU and memory usage closely during load testing. Being aware of how traffic affects both will help us in determining how many dynos we need and what size dynos work best for our application. Librato provides a fantastic dashboard that allows us to monitor all of our key performance metrics. We'll see our dyno and Postgres resource usage, as well as router performance metrics. During our load tests, we'll be able to watch how many requests our application is serving and how it affects resource usage on one screen.

Librato works with any Heroku application. It does not require anything to be installed into the application itself. It gathers data by monitoring our Heroku logs and recording and graphing the data.

How to do it…

To get started, let's open up a terminal, navigate to one of our Heroku projects, and perform the following steps:

  1. As Librato gathers information from our logs, we'll need to enable log runtime metrics. This...