All Products
Search
Document Center

ApsaraDB RDS:DescribeReadDBInstanceDelay

Last Updated:Jul 05, 2024

Queries the latency of data replication between a primary instance and its read-only instance.

Operation description

Supported database engines

  • MySQL
  • PostgreSQL

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DBInstanceIdstringYes

The primary instance ID. You can call the DescribeDBInstances operation to query the primary instance ID.

rm-bp*****
ReadInstanceIdstringYes

The read-only instance ID. You can call the DescribeDBInstances operation to query the read-only instance ID.

rr-bp*****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

DBInstanceIdstring

The primary instance ID.

rm-bp*****
RequestIdstring

The request ID.

F1BDDEA8-452D-450B-AB10-CD5C5BAFC5DF
DelayTimeinteger

The latency of data replication. Unit: seconds.

0
ReadDBInstanceIdstring

The read-only instance ID.

rr-bp*****
Itemsarray<object>

The latency information.

object
DBInstanceIdstring

The primary instance ID.

rm-bp*****
ReadonlyInstanceDelayarray<object>

The information about the write-ahead log (WAL) latency.

Note This parameter is returned only when the primary instance runs PostgreSQL.
object
WriteLatencystring

The data size that is allowed for the latency in the write-back of WAL data. Unit: MB.

0
FlushLatencystring

The data size that is allowed for the latency in the persistence of WAL data. Unit: MB.

0
ReadDBInstanceNamestring

The read-only instance ID.

rr-bp*****
WriteLagstring

The duration that is allowed for the latency in the write-back of WAL data. Unit: seconds.

0
FlushLagstring

The duration that is allowed for the latency in the persistence of WAL data. Unit: seconds.

0
SendLatencystring

The data size that is allowed for the latency in the sending of WAL data. Unit: MB.

0
ReplayLagstring

The duration that is allowed for the latency in the playback of WAL data. Unit: seconds.

0
ReplayLatencystring

The data size that is allowed for the latency in the playback of WAL data. Unit: MB.

0
ReadDelayTimesarray

The latency of data replication.

string

The consumption latency.

Note This parameter is returned only when the primary instance runs MySQL.
0
ReadDBInstanceNamesarray

An array that consists of information about the read-only instance.

string

The read-only instance name.

Note This parameter is returned only when the primary instance runs MySQL.
rr-bp*****

Examples

Sample success responses

JSONformat

{
  "DBInstanceId": "rm-bp*****",
  "RequestId": "F1BDDEA8-452D-450B-AB10-CD5C5BAFC5DF",
  "DelayTime": 0,
  "ReadDBInstanceId": "rr-bp*****",
  "Items": {
    "Items": [
      {
        "DBInstanceId": "rm-bp*****",
        "ReadonlyInstanceDelay": {
          "ReadonlyInstanceDelay": [
            {
              "WriteLatency": "0",
              "FlushLatency": "0",
              "ReadDBInstanceName": "rr-bp*****",
              "WriteLag": "0",
              "FlushLag": "0",
              "SendLatency": "0",
              "ReplayLag": "0",
              "ReplayLatency": "0"
            }
          ]
        },
        "ReadDelayTimes": {
          "ReadDelayTime": [
            "0"
          ]
        },
        "ReadDBInstanceNames": {
          "ReadDBInstanceName": [
            "rr-bp*****"
          ]
        }
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-06-17The internal configuration of the API is changed, but the call is not affectedView Change Details