You can configure an autoscaler by making a call to the Tanzu Service Mesh IX API.

You can use the API Explorer, an interactive user interface, to access the Tanzu Service Mesh API endpoints. For more information about the API Explorer, see the Tanzu Service Mesh API Programming Guide.

The use of the autoscaler is based on the assumption that resources are available for it to continue to scale out instances. If the cluster becomes resource-constrained, the cluster administrator must handle underlying cluster expansion manually or automatically through additional automation.

Prerequisites

Procedure

  1. On the bottom of the Tanzu Service Mesh Console UI, toward the right, click API Explorer.
  2. On the Rest HTTP tab, to view the autoscaling endpoints, scroll down to the Autoscaling section.


  3. Expand the PUT /v1alpha1/global-namespaces/{gnsID}/autoscaling-policies/{policyID} endpoint and create an autoscaling policy with a given ID based on a given global namespace.
    • A.  Specify the autoscaling policy name by using policyID.

    • B. Specify the global namespace name by using gnsID.

    • C. Inside Autoscaling Policy, specify the autoscaling scaling mode, the autoscaling metric, and the scaling conditions.

What to do next

For more information on the endpoints to use to view the list of autoscaling policies, edit an autoscaling policy, or delete an autoscaling policy, see the Autoscaling API Reference section in Tanzu Service Mesh Service Autoscaler Configuration Reference.