gaussdb__UpdateAutoScalingPolicy
Updates a GaussDB instance's auto-scaling policy, including enabling or disabling scaling, setting CPU thresholds, and configuring flavor or read-only node scaling limits.
Instructions
[GAUSSDB] 设置自动变配。
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": {
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"scaling_strategy": "<scaling_strategy>",
"status": "<status>"
},
"name": "gaussdb__UpdateAutoScalingPolicy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | 自动变配开关状态。 | |
| max_flavor | No | 扩容规格上限。开启扩缩规格时必填。 | |
| project_id | Yes | 租户在某一Region下的project ID。 | |
| instance_id | Yes | 实例ID,严格匹配UUID规则。 | |
| monitor_cycle | No | 监测周期(单位:秒)。 | |
| silence_cycle | No | 静默周期(单位:秒)。 | |
| reduce_enabled | No | 是否开启自动回缩。开启自动变配时必填。 | |
| read_only_weight | No | 只读节点读写分离权重。开启增删只读节点时必填。 | |
| scaling_strategy | Yes | 自动变配策略。 | |
| enlarge_threshold | No | CPU平均使用率(百分比数值)。 | |
| max_read_only_count | No | 只读节点数量上限。开启增删只读节点时必填。 |