调用 ModifyDBEndpointReadWriteDelayThreshold 接口修改终端只读延迟阈值。
同步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | postgres-0af11cd4**** | 实例 ID。 |
EndpointId | String | 是 | postgres-0af11cd4****-cluster | 实例连接终端 ID。 |
ReadOnlyNodeMaxDelayTime | Integer | 是 | 30 | 只读节点的最大延迟阈值,当只读节点延迟时间超过该值时,读取流量不发往该节点。单位为秒,取值范围为 0~3600。 |
null
POST /?Action=ModifyDBEndpointReadWriteDelayThreshold&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20231002T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_postgresql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "postgres-0af11cd4****", "EndpointId": "postgres-0af11cd4****-cluster", "ReadOnlyNodeMaxDelayTime": 80 }
{ "ResponseMetadata": { "RequestId": "2023101118285676A8F34389CC270EE9CA", "Action": "ModifyDBEndpointReadWriteDelayThreshold", "Version": "2022-01-01", "Service": "rds_postgresql", "Region": "cn-beijing" }, "Result": null }