You need to enable JavaScript to run this app.
RDS for PostgreSQL

RDS for PostgreSQL

Copy page
Download PDF
Managing connections
ModifyDBEndpointReadWriteDelayThreshold
Copy page
Download PDF
ModifyDBEndpointReadWriteDelayThreshold
Call the ModifyDBEndpointReadWriteDelayThreshold API to modify the read-only latency threshold of an endpoint.​
Request type​
Synchronous request.​
Precautions​
  • Read/Write separation function of the connected endpoint is enabled.​
  • This API only applies to the default endpoint, as read/write separation is supported only on the default endpoint.​
Debug​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameter​
Type​
Is it required?​
Example​
Description​
InstanceId​
String​
Yes​
postgres-0af11cd4****​
Instance ID.​
EndpointId​
String​
Yes​
postgres-0af11cd4****-cluster​
Instance ID.​
ReadOnlyNodeMaxDelayTime​
Integer​
Yes​
30​
Maximum latency threshold for read-only nodes. When the latency of a read-only node exceeds this value, read traffic will not be directed to that node. Unit: seconds. Value range: 0-3,600.​
​
Response parameter​
null​
Sample​
Sample request​
​
POST /?Action=ModifyDBEndpointReadWriteDelayThreshold&Version=2022-01-01 HTTP/1.1​
Content-Type: application/json​
Host: rds-postgresql.cn-beijing.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​
}​
​
Sample response​
​
{​
"ResponseMetadata": {​
"RequestId": "2023101118285676A8F34389CC270EE9CA",​
"Action": "ModifyDBEndpointReadWriteDelayThreshold",​
"Version": "2022-01-01",​
"Service": "rds_postgresql",​
"Region": "cn-beijing"​
},​
"Result": null​
}​
​
Last updated: 2026.03.31 10:45:18