Scale the App
Page last updated:
Currently, your app is running as a single instance with 64 MB of memory.
You can check how many instances are running and how much memory they have using the
cf scale command:
$ cf scale my-dotnetcore-app Showing current scale of app my-dotnetcore-app in org MyOrg / space MySpace as firstname.lastname@example.org... OK memory: 64M 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 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-dotnetcore-app -i 3 Scaling app my-dotnetcore-app in org MyOrg / space MySpace as email@example.com... OK
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 128 MB:
$ cf scale my-dotnetcore-app -m 128M This will cause the app to restart. Are you sure you want to scale my-dotnetcore-app?> yes Scaling app my-dotnetcore-app in org MyOrg / space MySpace as firstname.lastname@example.org... OK ... state since cpu memory disk details #0 running 2016-10-10 01:15:28 PM 0.4% 33.4M of 128M 555.9M of 1G #1 running 2016-10-10 01:15:26 PM 0.2% 37.5M of 128M 555.9M of 1G #2 running 2016-10-10 01:15:32 PM 0.3% 35.6M of 128M 555.9M of 1G
The last statement shows a summary of the three instances with a memory cap of 128 MB each that we now have.View the source for this page in GitHub