Scale the App
Increasing the available disk space or memory can improve overall app performance. Similarly, running additional instances of an app can allow an app to handle increases in user load and concurrent requests. These adjustments are called scaling.
Scaling your app horizontally adds or removes app instances. Adding more instances allows your application to handle increased traffic and demand.
Increase the number of app instances from one to two:
cf scale cf-demo -i 2
Check the status of the app and verify there are two instances running:
cf app cf-demo
Scaling your app vertically changes the disk space limit or memory limit for each app instance.
Increase the memory limit for each app instance:
cf scale cf-demo -m 1G
Decrease the disk limit for each app instance:
cf scale cf-demo -k 512M