Updated on 2024-06-17 GMT+08:00

Using Scaling Policies

This section describes how to use FederatedHPA and CronFederatedHPA.

Using FederatedHPA

Figure 1 shows how to use FederatedHPA.

Figure 1 Using FederatedHPA
  1. Add clusters to a fleet, enable cluster federation for the fleet, and create Deployments. (Workload scaling is based on workloads deployed in multiple clusters.) For details, see Registering a Cluster, Enabling Cluster Federation, and Creating a Workload.
  2. Install the metrics data collection add-on for clusters. For details, see Installing a Metric Collection Add-on.
  3. Create a FederatedHPA. For details, see Creating a FederatedHPA to Scale Pods Based on Metric Changes.
  4. Configure a scaling rate. For details, see Configuring a FederatedHPA to Control the Scaling Rate.
  5. Modify or delete the FederatedHPA. For details, see Managing a FederatedHPA.

Using CronFederatedHPA

Using CronFederatedHPA Separately

Figure 2 shows how to use CronFederatedHPA separately.
Figure 2 Process of using CronFederatedHPA separately
  1. Add clusters to a fleet, enable cluster federation for the fleet, and create Deployments. (Workload scaling is based on workloads deployed in multiple clusters.) For details, see Registering a Cluster, Enabling Cluster Federation, and Creating a Workload.
  2. Create a CronFederatedHPA. For details, see Creating a CronFederatedHPA to Scale Pods at Regular Intervals.
  3. Modify or delete the CronFederatedHPA. For details, see Managing a CronFederatedHPA.

Using CronFederatedHPA and FederatedHPA Together

Figure 3 shows how to use CronFederatedHPA and FederatedHPA together.
Figure 3 Process of using CronFederatedHPA and FederatedHPA together
  1. Add clusters to a fleet, enable cluster federation for the fleet, and create Deployments. (Workload scaling is based on workloads deployed in multiple clusters.) For details, see Registering a Cluster, Enabling Cluster Federation, and Creating a Workload.
  2. Install the metrics data collection add-on for clusters. For details, see Installing a Metric Collection Add-on.
  3. Create a FederatedHPA. For details, see Creating a FederatedHPA to Scale Pods Based on Metric Changes.
  4. Create a CronFederatedHPA. For details, see Creating a CronFederatedHPA to Scale Pods at Regular Intervals.
  5. Modify or delete the two scaling policies. For details, see Managing a FederatedHPA and Managing a CronFederatedHPA.