From 9d95ab982b89ab643b6db369bdc62413e092f817 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 26 Apr 2022 16:06:03 +0800 Subject: [PATCH] switch sync data (#1299) --- .../1.nGQL-overview/keywords-and-reserved-words.md | 1 + .../replication-between-clusters.md | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/docs-2.0/3.ngql-guide/1.nGQL-overview/keywords-and-reserved-words.md b/docs-2.0/3.ngql-guide/1.nGQL-overview/keywords-and-reserved-words.md index 4c62c67c737..0497824671e 100644 --- a/docs-2.0/3.ngql-guide/1.nGQL-overview/keywords-and-reserved-words.md +++ b/docs-2.0/3.ngql-guide/1.nGQL-overview/keywords-and-reserved-words.md @@ -106,6 +106,7 @@ PROP REBUILD RECOVER REMOVE +RESTART RETURN REVERSELY REVOKE diff --git a/docs-2.0/synchronization-and-migration/replication-between-clusters.md b/docs-2.0/synchronization-and-migration/replication-between-clusters.md index 4c87b62c11a..ebab9200fd3 100644 --- a/docs-2.0/synchronization-and-migration/replication-between-clusters.md +++ b/docs-2.0/synchronization-and-migration/replication-between-clusters.md @@ -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.