+

Search Tips   |   Advanced Search

Set up Auto Scaling for Liberty collectives

The Auto Scaling for Liberty feature provides an autonomic scaling capability of Liberty servers. Auto Scaling can dynamically adjust the number of Java virtual machines (JVMs) based on workload and dynamic routing to intelligently manage the workload. This feature provides operational agility and decreases administrative overhead to enhance the resiliency of our middleware environment. The conditions for auto scaling are defined by scaling policies. These conditions include, the minimum/maximum number of server instances and the threshold values for each of the server resources.

This feature does not require the use of Dynamic Routing, however auto scaling performs well when both features are used together.

We must have SSH installed on the computer for all non-Windows platforms before we can set up auto scaling. For a Windows platform, we must either have SSH or the Windows remote protocol enabled. Review the tasks in Set up RXA for Liberty collective operations to install SSH.

Also set the JAVA_HOME path before setting up auto scaling. Review the tasks in Set the JAVA_HOME variable for Liberty collective members

An auto scaling cluster is a server cluster that can expand and contract depending on the workload in the environment. The Liberty profile controls the starting and stopping of cluster members based on performance information that is collected from the cluster members and configurable scaling policies. To be a member of a server cluster, a Liberty profile must also be a member of a Liberty collective. A server cluster has a unique name within a Liberty collective. All Liberty profiles that specify the same cluster name within the same collective are members of the same server cluster. Auto scaling capabilities are controlled using policies when the consumption of resources rises above an upper threshold or falls below a lower threshold.

The auto scaling functionality is enabled by two Liberty features, scaling controller and scaling member.

  1. Create a collective to use for auto scaling.

  2. Optional: Define scaling policies to change the criteria that the scaling controller uses to manage workload.


Results

With the auto scaling feature enabled, we can now dynamically adjust the number of Java virtual machines (JVMs) and dynamic routing to intelligently manage the workload.

The auto scaling cluster capabilities are only available in WebSphere Application Server Liberty Network Deployment and WebSphere Application Server Liberty for z/OS.