Skip to content

Commit

Permalink
switch sync data (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Apr 26, 2022
1 parent 921cc97 commit 9d95ab9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ PROP
REBUILD
RECOVER
REMOVE
RESTART
RETURN
REVERSELY
REVOKE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ The test environment for the operation example in this topic is as follows:
+-------------+
```

## Stop/Restart data synchronization

The listener continuously sends the WALs to the drainer during data synchronization.

To stop data synchronization, run the `stop sync` command. The listener stops sending the WALs to the drainer.

To restart data synchronization, run the `restart sync` command. The listener sends the WALs accumulated during the period when the synchronization is stopped to the drainer. If the WALs are lost, the listener pulls the snapshot from the primary cluster and synchronizes data again.

## Switch between primary and secondary clusters

To migrate data or implement disaster recovery, manually switch between the primary and secondary clusters.
Expand Down

0 comments on commit 9d95ab9

Please sign in to comment.