Ruby Reliability Recipes

A Rails app at peak has two pools to size: Puma workers and threads, and the ActiveRecord connection pool behind them. Size Puma first, since the connection pool has to cover its threads. Start with Puma Workers and Threads for Rails at Peak.