Category Archives: Code

Trading up Your Engine: How to Move Your IOPS-heavy MySQL/Rails Stack to Unicode Without Downtime

You’re a techie working for one of the multitude of startups that rushed to market, where the founders hastily glued a Rails app together with candy-bar wrappers and tinfoil.  Once it became obvious that enthusiasm was no substitute for raw coding power, developers … Continue reading

Posted in Best Practices, Blog, Code | Tagged , , | 2 Comments

Growing a Rails Application: How We Made Deploy Fast Again

TL;DR; We brought our deploy time down from 10 minutes to 50 seconds. When I joined PagerDuty over a year ago, our application consisted of essentially a single Rails site. We’ve changed the architecture of our system since then to … Continue reading

Posted in Best Practices, Blog, Code | Tagged , , , , | 5 Comments

Triggering an alert from a phone call (code sample)

I get a lot of requests to handle & escalate phone calls as well as alerts from monitoring systems. Here’s a code sample that lets you hand out a phone number, let the caller record a message and have that … Continue reading

Posted in Code | Tagged , , , , | 2 Comments

More control over Optimistic Locking in Rails

Like pretty much everything else in Rails, optimistic locking is nice and easy to setup:  you simply add a “lock_version” column to your ActiveRecord model and you’re all set.  If a given Rails process is trying to update some record, … Continue reading

Posted in Code | Tagged , , | Leave a comment