Scale a Dockerfile app in Deis

adamkdean

Adam K Dean

Posted on July 1, 2014

Scale a Dockerfile app in Deis

Deis allows you to run apps in two different ways: using a Procfile, and using a Dockerfile. When using a Procfile, you define what type of processes you'll be running, such as:

web: node index.js
Enter fullscreen mode Exit fullscreen mode

To scale this, say to 2 instances, it's as simple as:

$ deis ps:scale web=2
Enter fullscreen mode Exit fullscreen mode

This doesn't work when using the Dockerfile approach however. For that, we can see from ps:list that the instance type is actually cmd.

$ deis ps:list
--- cmd:
cmd.1 up (v2)
Enter fullscreen mode Exit fullscreen mode

If we were using a Procfile, this would say web.1 up (v2) etc. So to scale the Dockerfile, we need to use cmd rather than web.

$ deis ps:scale cmd=2
Enter fullscreen mode Exit fullscreen mode

And then, once it's got coffee, it'll scale your apps.

💖 💪 🙅 🚩
adamkdean
Adam K Dean

Posted on July 1, 2014

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related