Book Image

Heroku Cloud Application Development

By : Anubhav Hanjura
Book Image

Heroku Cloud Application Development

By: Anubhav Hanjura

Overview of this book

Table of Contents (17 chapters)
Heroku Cloud Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Process formation


Each application's set of running processes on the dyno manifold are known as its process formation.

The default formation for a simple application will be a single web process, whereas more complex applications may consist of multiple copies of web and worker process types. You can scale the process types on demand as your application needs increase.

For example, if the application already has a process formation of three web processes, and you run the heroku ps:scale worker=3 command, you will now have a total of six processes: three web processes and three worker processes.

Process scaling

In a production environment, your application may need to scale out to a much greater capacity. It is no longer a couple of web and worker processes that you typically need for your application deployed in the local environment.

Heroku follows a share-nothing process architecture. This enables the instantiation of each process type a number of times. Each process of the same process type...