Deep-dive on the Next Gen Platform. Join the Webinar!

Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log inorSign up
View categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Troubleshooting Node.js Apps
      • Node.js Behavior in Heroku
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Heroku Architecture
  • Compute (Dynos)
  • Dyno Concepts
  • Dyno Formation

Dyno Formation

Last updated March 24, 2025

Table of Contents

  • The Procfile and Your Dyno Formation
  • Dyno Formation Changes
  • Adding Redundancy to Your Formation
  • Additional Reading

The term dyno formation refers to the layout of your app’s dynos at a given time. The dynos in your formation do the app’s regular business like handling web requests and processing background jobs as it runs.

You can check your current formation at any time in your app’s Resources tab in the Heroku Dashboard, the heroku ps CLI command, or the Formation List API endpoint.

The Procfile and Your Dyno Formation

The default formation for simple apps is a web process type running on a single dyno. Demanding applications can consist of web, worker, clock and other process types as declared in your Procfile.

Dyno formation

While the Procfile doesn’t determine the number of dynos to run per process, it’s a required file if you want to run any other process type besides web. Heroku starts one web dyno automatically, but other process types don’t start by default. You can scale your dynos for each process type separately.

When a web or worker dyno starts, the dyno formation of your app changes to reflect the number of running dynos of each process type. Subject to the dyno lifecycle, the dyno manager continues to maintain that dyno formation until you change it.

One-off dynos aren’t declared in your Procfile. They’re only expected to run a short-lived command, and then exit. They’re neither a part of your formation, nor affect it in any way.

Dyno Formation Changes

You can scale your dynos horizontally or vertically by changing the size or number of dynos. See Scaling Your Dyno Formation for more info.

We log all changes to your dyno formation:

$ heroku logs | grep Scale
2024-05-30T22:19:43+00:00 heroku[api]: Scale to web=2, worker=1 by [email protected]

The logged message includes the full dyno formation, not just dynos you scaled.

Adding Redundancy to Your Formation

We recommend running at least two web dynos in your formation for important apps. Applications that run multiple running dynos are more redundant against failure. If some dynos fail, the application can continue to process requests while we replace the missing dynos. Typically, failed dynos restart promptly, but in the case of a catastrophic failure, it can take more time. Multiple dynos are also more likely to run on different physical infrastructure, for example, separate AWS availability zones, further increasing redundancy. If you have critical non-web process types, we recommend adding redundancy for those processes as well.

Additional Reading

  • The Process Model
  • The Procfile
  • Scaling Your Dyno Formation
  • Dyno Tiers
  • Technical Specifications by Dyno Size
  • Dyno CLI and API Commands

Keep reading

  • Dyno Concepts

Feedback

Log in to submit feedback.

One-Off Dynos Dyno Runtimes

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices
OSZAR »