I have seen two levels of scaling instances in open-source Cloud Foundry.
cf scale -i INSTANCES
cf scale -m MEMORY -k DISK
Is there something available for a cell-level auto-scaling in CF? e.g. If I have 5 instances of an app running and I want to launch 15 more but the current no. of cell VMs that are running have a capacity of running only 15 instances in total. Can I use an existing service that recognises that the load to be served would need one more cell to be launched and spawn another machine?
I'm looking to deploy CF on Azure, so Azure-specific solution would also help.

- 221
- 1
- 3
- 12
1 Answers
I think the short answer is no (at least at the time of me writing this). Usually, Cloud Foundry is deployed using Bosh and Bosh does not have an auto scaling feature.
The way that a CF platform is typically managed is that as a CF operator, you would have monitoring setup so that you can see the capacity of your platform (there are metrics that tell you how much capacity is left on your Cells) and also alert when your platform hits certain capacity limits. When you reach these, you can then use Bosh to scale up or down the number of Cells accordingly. This would be a manual operation with Bosh though.
Having said that, I suppose there's nothing to stop you from using the alerts to automatically trigger Bosh to scale up or down the Cells, there's just nothing (as of me writing this) to do that out-of-the-box (i.e. part of Bosh itself).
Hope that helps!

- 13,716
- 1
- 22
- 28
-
I came across this: https://github.com/nttlabs/bosh-scaler for vm-level scaling with bosh. Haven't tested it, have you come across this? – Jagrati Gogia Aug 17 '17 at 07:59
-
Bosh itself does not have an autoscaling feature. There may be community projects that attempt to accomplish autoscaling, like this one. I haven't personally used any of those project. If you're curious you might ask more on the cf-bosh mailing list. https://lists.cloudfoundry.org/archives/list/cf-bosh@lists.cloudfoundry.org/ – Daniel Mikusa Aug 17 '17 at 11:57