Create a managed auto scaling policy
Managed auto scaling automatically adds or removes nodes based on the workload within a specified capacity range. You only need to set the minimum and maximum node counts for each node type; you do not need to determine when to scale manually. This policy is suitable for workloads without a predictable pattern and is the auto scaling policy recommended by the console.
Limits
Alibaba Cloud Milvus provides two auto scaling policies. Only one can be enabled for an instance at a time. With managed auto scaling, the system determines when to scale; Auto Scaling Rules (Scheduled) lets you specify execution times and target node counts, and is suitable for workloads with a predictable schedule. For configuration instructions, see Create a custom auto scaling policy. After you switch policies, the rules of the previous policy stop taking effect but are not deleted.
Auto scaling is supported for Standard Edition instances. Basic Edition instances do not support auto scaling.
The instance status must be Running. Auto scaling policies cannot be configured when the instance is in another state.
The engine version must meet the minimum requirement for the node type, as shown in the following table. If the instance details page does not display the Auto Scaling tab, the engine version or specifications of the instance do not support auto scaling.
A managed auto scaling policy supports up to 4 distinct node types. The available node types vary with the engine version, specifications, and deployment configuration of the instance. Refer to the options displayed on the Auto Scaling Configuration page.
The metadata service does not support auto scaling.
The following table lists the minimum engine versions required for auto scaling of each node type.
Node type | 2.4 | 2.5 | 2.6 |
Data Node | 2.4.23-0.4.3_3.8.0 or later | 2.5.12-0.6.2_3.8.0 or later | Supported |
Index Node | 2.4.23-0.4.3_3.8.0 or later | 2.5.12-0.6.2_3.8.0 or later | - |
Query Node | 2.4.23-0.5.0_3.11.0 or later | 2.5.12-0.7.0_3.11.0 or later | 2.6.18-0.1.3_3.11.0 or later |
Proxy Node | 2.4.23-0.5.0_3.11.0 or later | 2.5.12-0.7.0_3.11.0 or later | 2.6.18-0.1.3_3.11.0 or later |
Streaming Node | - | - | 2.6.18-0.1.3_3.11.0 or later |
Metadata service | Not supported | Not supported | Not supported |
For an instance running an earlier version, upgrade the engine to use auto scaling. For instructions, see Upgrade versions.
Billing
Subscription instances: Total instance resources = baseline resources + elastic resources. The baseline resources are billed on a subscription basis and are excluded from auto scaling. The elastic resources are billed on a pay-as-you-go basis. You must first manually enable the PASG Resource Group.
Pay-as-you-go instances: The PASG Resource Group is enabled by default. Baseline and elastic resources are not distinguished; all resources belong to the pay-as-you-go resource group.
Nodes added through auto scaling are billed based on their actual usage duration. Billing stops after the nodes are released during scale-in.
Step 1: Open the Auto Scaling page
Log on to the Alibaba Cloud Milvus console.
In the left-side navigation pane, click Instances.
In the top navigation bar, select the target region.
In the instance list, click the name of the target instance.
On the instance details page, click the Auto Scaling tab.
Step 2: (Optional) Enable the pay-as-you-go resource group
Elastic resources used by managed auto scaling are billed on a pay-as-you-go basis. The pay-as-you-go resource group is enabled by default for pay-as-you-go instances, so you can skip this step. For a subscription instance, enable the pay-as-you-go resource group before you configure a managed auto scaling policy.
On the Auto Scaling Configuration page, check the status of PASG Resource Group.
If the status is Disabled, click Enable PASG Resource Group. In the confirmation dialog box, click Enable.
After it is enabled, click Configure PASG Resource Group to manually adjust the node count of the pay-as-you-go resource group:
Scale-out: The maximum node count is 50. For a high-availability instance deployed across two zones, the step size is 2. The node specifications of the pay-as-you-go resource group are the same as those of the baseline resources and cannot be changed.
Scale-in: The minimum node count is 0. For a high-availability instance deployed across two zones, the step size is 2.
NoteDuring auto scaling, the instance briefly enters a scaling-out or scaling-in state. During this period, you cannot make other configuration changes to the instance or modify the managed auto scaling policy.
Step 3: Configure a managed auto scaling policy
On the Auto Scaling Configuration page, select Managed Auto Scaling.
In the Managed Auto Scaling dialog box, select the Node Type to manage, and set the Minimum node count and Maximum node count.
To manage multiple node types, click Add Node Type and repeat the previous step. To stop managing a node type, delete its configuration.
Click Save.
After you save the policy, if the current node count is outside the new capacity range, the system automatically triggers an adjustment to bring it within the range.
Parameter | Description |
Node type | The node type whose count is automatically adjusted by the system. A policy supports up to 4 distinct node types. Refer to the options displayed on the page. |
Node specifications | The specifications of the nodes, determined by the current resource specifications of the instance. They cannot be changed in this dialog box. |
Minimum node count | The minimum number of nodes to retain during automatic scale-in. For pay-as-you-go instances, the value must be at least 1. For subscription instances, the value can be 0, which means that no additional pay-as-you-go elastic nodes are retained during off-peak periods. |
Maximum node count | The maximum node count allowed during automatic scale-out. The value must be at least 1 and no less than the minimum node count. For subscription instances, this is the maximum number of additional pay-as-you-go nodes that can be added; it does not affect the subscription baseline resources. |
For high-availability instances deployed across two zones, the node count must start at 2 and increase in increments of 2. Each node type must also meet the following capacity requirements.
Node type | Capacity requirements |
Proxy Node, Streaming Node | Both the minimum and maximum node counts must be even numbers greater than or equal to 4. |
Other node types, such as Data Node, Index Node, and Query Node | Both the minimum and maximum node counts must be even numbers greater than or equal to 2. |
Manage a managed auto scaling policy
Change the capacity range
On the Auto Scaling Configuration page, click Edit.
Change the Minimum node count or Maximum node count, and then click Save.
The new capacity range is immediately used for subsequent scaling decisions. If the current node count is outside the new range, the system automatically triggers an adjustment. You cannot modify the policy while an auto scaling task is running on the instance.
Stop using managed auto scaling
On the Auto Scaling Configuration page, select Do Not Use Auto Scaling, and confirm the switch in the confirmation dialog box. After the switch, all auto scaling rules stop taking effect but are not deleted. Select managed auto scaling again to restore the previous configuration.
After you stop using managed auto scaling, nodes that have already been added are not automatically released. To adjust the resources, use Upgrade or downgrade an instance or configure the pay-as-you-go resource group.
FAQ
Does managed auto scaling affect running queries and writes?
Running queries and writes are not interrupted. Scale-out usually takes only a few minutes, after which the instance automatically rebalances data. During scale-in, the system first migrates data from the nodes to be removed to the remaining nodes, and releases the node resources only after confirming data integrity.