Help Center/ GaussDB/ User Guide/ Cross-Cloud DR Management/ Enabling or Disabling Log Cache
Updated on 2024-12-25 GMT+08:00

Enabling or Disabling Log Cache

Scenarios

If the primary and standby regions are disconnected for a long time due to network problems, you can enable log cache to temporarily store incremental data in the primary instance storage space. When the network recovers, the incremental data, instead of full data, is synchronized to the DR instance.

Precautions

  • This function is supported only when streaming DR is used and the DB engine version is V2.0-3.200 or later.
  • During the log caching period in the cross-cloud DR scenario, the DR relationship cannot be removed.

Procedure

  1. Log in to the console and select the region where the DR instance is located.
  2. In the navigation pane on the left, choose Disaster Recovery. Click More in the Operation column of the target DR task, and choose Enable Log Cache.
  3. After the log cache is enabled, the task status of the primary instance changes to Caching logs. The incremental data temporarily stores in the primary instance storage space.
  4. After the DR relationship is normal, log in to the console, select the region where the primary instance is located, and click Disable Log Cache in the Operation column.
  5. After log cache is disabled, check that the DR task is restored to the status before the log cache is enabled. The data generated during the log cache on the primary instance is synchronized to the DR instance.