How to scale a database service in Cloudfoundry?

I would like to know how to properly scale the database service in Cloudfoundry. As for knowledge, I came up with two possible approaches, and I need to know which one is correct (or maybe none of them).

  • Deploy a database cluster outside of CF and bind it to the application as a user-provided service
  • Bind multiple instances of the service to the application and somehow switch between them. However, I'm not sure if this makes sense.

UPD: I use the open source Cloudfoundry distribution, so I cannot use any products intended for use with the Pivotal Cloud distribution.

Any help on this would be greatly appreciated, thanks!

+4
source share
1 answer

You will need to create or use a service that explicitly supports clustering and replication.

For example, Pivotal distributes the HA version of the MySQL service, which allows you to decide how many instances / virtual machines you need to provide in your cluster:

https://network.pivotal.io/products/p-mysql

+1
source

All Articles