Ok, so our app has become popular and too many users are accessing it. We need to scale. If only we had a….wait…a PaaS. Ok so here is what to do.
First we could do this via the GUI, but we are going to use the command line just for fun.
Use this command to see how we could scale our app :
> cf scale
Let’s scale the number of instances supporting our app:
> cf scale <your_app> -i 5
If you have forgotten what your app is called type in > cf apps
Try scaling down
> cf scale <your_app> -i 1
View the GUI to see what is going on. Try the same thing for memory.