After successfully pushing our application in PCF, it’s the time to scale our application. We need to scale application based on different factors like number of users, response time etc. Pivotal Cloud Foundry allows different options to scale application.
-i : Scale number of instances
-k : Disk limit
-m : Memory limit
Let’s scale “pcfwelcome” application step by step.
1. Log in to you PCF account and navigate to organisation “devworld” and space “development”.
2. Type “cf apps” to get the current status of the application. You will get a screen like:
3. If you login to Pivotal and navigate to “pcfwelcome” , you will get a screen like below
3. Now type the command in “cf cli” as “cf scale pcfwelcome -i 2 “. Now again type “cf apps”. this time you can see two instances of “pcfwelcome”. Same you can see in GUI also.
Congratulation, we have scale up our application. Explore other two options “-m” and “-k”. Also make sure you stop the applications after completing your exercise.