This topic describes how to set the latency at which a read-only ApsaraDB RDS for MySQL instance synchronizes data from its primary RDS instance.
After you set the data replication latency of a read-only RDS instance, you cannot add the instance to the read/write splitting link. Before you can add the instance to the read/write splitting link, you must set the data replication latency of the instance to 0. For more information, see Enable the read/write splitting function in the shared proxy of an ApsaraDB RDS for MySQL instance.
- Go to the Basic Information page of the read-only RDS instance.
- Log on to the RDS management console, click on the left Instances , and then select a region above.
- Find the read-only RDS instance and click its ID.
- In the left-side navigation pane, click Service Availability.
- Click Set Delayed Replication.
- In the dialog box that appears, specify the data replication latency and click OK.Note The data replication latency is measured in the unit of seconds. The default value is 0. If you set the data replication latency to 0 seconds, the primary RDS instance sends operations logs to the read-only RDS instance after the related operations are complete. After the read-only RDS instance receives the operations logs, it immediately performs the operations that are specified in the operations logs.