3. View auto-scaling metric statistics and history

You can examine the effects of the test on your auto-scaling policy rules. The metrics in this task show how effectively your auto-scaling policy worked.

  1. Return to the Bluemix Dashboard and click the application route to open the application. You can experiment with the application to create some sample workload before proceeding to the next step. It might take a bit of use and page reloading of the application to match the results shown below. If the application is scaled, you might see a brief message like this on the Bluemix console:
  2. After exercising the application for a few minutes, go back to the application Overview. In your application, click the Auto-Scalingservice shown in the Connections list.
  3. Click the Metric Statistics tab to see graphs of usage statistics over time for your Bluemix application. Scroll to see all the graphs. If you configure any scaling rules for a specific property, upper and lower threshold indicators show when your application will create or remove additional instances.

    The following image shows an example of throughput metrics:

    The following image shows an example of memory metrics, which shows three cases where there was a policy breach that resulted in a scaling action:

    If your application is stressed enough, you see that the scaling polices that you defined take effect.
    Depending on the conditions, you see that the applications scale out and scale in. You might find that placing a small amount of traffic to the Java Cloudant Web Starter by adding a few files and then reloading the application page and also displaying the files in browser tabs is sufficient to exceed the 30% memory threshold. In a real-world scenario, you should set this memory threshold higher to avoid unnecessary scaling activity.

    By increasing the cooldown period, you can delay the time before the service starts to look for a violation in the scaling policy and perform a further scaling action.

  4. View the scaling history by clicking the Scaling History tab.

    As auto-scaling creates or removes instances of your application, you can see these changes reflected in your apps page from the Bluemix app Overview.