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 application performance with New Relic


New Relic is a must-have for any production-level web application. It has more features than can possibly be listed here. We will focus on how we can use New Relic to identify performance problems in our application. New Relic provides detailed analytics for each request our application serves. We will be able to see exactly where our application is slow and drill down into why. In this recipe, we will cover the process of installing New Relic in a Rails application. We'll then get a quick tour of the New Relic interface so that we know exactly where to look when diagnosing performance issues.

How to do it…

Before using New Relic, we'll need to install it. This will require us to add the New Relic gem to our application, as well as enable the New Relic add-on in our Heroku application.

To start, let's open a terminal and navigate to our Ruby on Rails application. If we do not have a Rails application to try this out on, we can use the example...