Scale the App

Page last updated:

Page last updated:

Currently, your app is running as a single instance with 1 GB of memory.

You can check how many instances are running and how much memory they have using the cf scale command:

$ cf scale my-clojure-app
Showing current scale of app my-clojure-app in org MyOrg / space MySpace as user@mydomain.com...
OK

memory: 1G
disk: 1G
instances: 1

By default, your app is deployed as one instance. Each instance runs in a separate container and gets the set amount of memory.

Scaling Horizontally

Scaling an application horizontally on Swisscom Application Cloud is equivalent to changing the number of instances that are running. Scale the number of instances to 3:

$ cf scale my-clojure-app -i 3
Scaling app my-clojure-app in org MyOrg / space MySpace as user@mydomain.com...
OK

Scaling Vertically

Scaling an application vertically on Swisscom Application Cloud is equivalent to changing the amount of memory each instance has. Scale the amount of memory to 2 GB:

$ cf scale my-clojure-app -m 2G

This will cause the app to restart. Are you sure you want to scale my-clojure-app?> yes

Scaling app my-clojure-app in org MyOrg / space MySpace as user@mydomain.com...
OK

...

     state     since                    cpu     memory          disk        details
#0   running   2016-03-30 04:54:46 PM   64.6%   72.6M of 2G   42M of 1G
#1   running   2016-03-30 04:54:47 PM   0.1%    69.9M of 2G   42M of 1G
#2   running   2016-03-30 04:54:47 PM   0.2%    69.7M of 2G   42M of 1G

The last statement shows a summary of the three instances with a memory cap of 2 GB each that we now have.

I know how to scale my App
View the source for this page in GitHub