修改集群配置

接口URL

/api/v1/cluster/tidbs/{clusterID}/config

请求方式

PUT

Content-Type

application/json

认证方式

Bearer auth

路径变量

参数名 示例值 参数描述
clusterID tidb-43bd353978db0af4 操作的集群ID

请求Body参数

{
    "ParameterGroupID": -1,
    "ServerConfigs": {
        "tidb": {
            "binlog.enable": false,
            "binlog.ignore-error": false,
            "log.slow-threshold": 400,
            "enable-telemetry": false
        }
    },
    "Variables": {
        "tidb_distsql_scan_concurrency": "15"
    }
}
参数名 示例值 参数类型 是否必填 参数描述
ParameterGroupID -1 Integer -
ServerConfigs - Object -
ServerConfigs.tidb - Object -
ServerConfigs.tidb.binlog.enable false Boolean -
ServerConfigs.tidb.binlog.ignore-error false Boolean -
ServerConfigs.tidb.log.slow-threshold 400 Integer -
ServerConfigs.tidb.enable-telemetry false Boolean -
Variables - Object -
Variables.tidb_distsql_scan_concurrency 15 String -

成功响应示例

{
    "Data": null,
    "Success": true
}
参数名 示例值 参数类型 参数描述
Data null Null
Success true Boolean
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""