mrs__CreateScalingPolicy
Create or update an MRS auto-scaling policy for a task node group, including scaling rules, capacity limits, resource plans, and optional automation scripts.
Instructions
[MRS] 对弹性伸缩规则进行编辑。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"auto_scaling_policy": "<auto_scaling_policy>",
"cluster_id": "<cluster_id>",
"node_group": "<node_group>",
"project_id": "<project_id>"
},
"name": "mrs__CreateScalingPolicy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster_id | Yes | 集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。 | |
| node_group | Yes | 弹性伸缩规则适用的节点类型,当前只支持task节点。 | |
| project_id | Yes | 项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。 | |
| auto_scaling_policy | Yes | 弹性伸缩规则。 |