Within Cloud Foundry the concept of scalability can mean different things:
- scaling the amount of resources available to the platform to run applications instances - as well as other platform components - Scaling CF.
- increasing memory of each application instance (vertical scaling).
- horizontally scaling the application (horizontal scaling).
One of the benefits of a micro service architecture is that each service can be scaled independently. This means that if the quote service is under stress (CPU,memory), it can be scaled up independently from the other services. The platform will automatically load balance the requests across the available instances.
-
Scale the Quote service to two instances using either the UI or the CLI.
-
Monitor the logs of the quote service application, either via the CLI or the UI.
-
Use the REST api of the quote service to retrieve quotes, for example:
curl http://<ROUTE_TO_QUOTE_SERVICE>/v1/quotes?q=EMC
or put the URL in your browser window.
How do the logs show which instance of the application is actually servicing the request?
How far can you scale the quote service? what is the limitation?
What happened in the registry server when you scale up?
Move on to the next lab