Skip to content

Commit

Permalink
Update replication-between-clusters.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber committed Sep 6, 2022
1 parent 54693a0 commit 0a7d376
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ drainer:机器 IP 地址为`192.168.10.104`,只启动 drainer 服务。

用户向主集群中写入数据时,可以查看集群间数据同步的状态,以判断数据同步是否正常。

### 查看主集群发送数据的状态
### 查看主集群同步数据的状态

在主集群中执行`SHOW SYNC STATUS`命令可查看主集群给从集群发送数据的状态。`SHOW SYNC STATUS`实时获取集群间数据同步状态的信息,只有当主集群写入成功了,才往从集群发送同步数据。

Expand Down Expand Up @@ -324,7 +324,7 @@ nebula> SHOW SYNC STATUS;
| 14 | "ONLINE" | 0 | 0 |
| 15 | "ONLINE" | 0 | 0 |
+--------+-------------+-----------+--------------+
// 再次查看当前集群数据同步的状态(返回结果表示数据已完全被发送至从集群)。
// 再次查看当前集群数据同步的状态(返回结果表示数据已完全同步至从集群,没有需要待同步的数据)。
nebula> SHOW SYNC STATUS;
+--------+-------------+-----------+--------------+
| PartId | Sync Status | LogId Lag | Time Latency |
Expand Down Expand Up @@ -357,7 +357,7 @@ nebula> SHOW SYNC STATUS;
| LogId Lag | 表示的 Log ID 间隔,也就是主集群对应分片还有多少条 Log 往从集群发送。<br>当值为`0`时,表示主集群对应分片中没有 Log 需要发送。|
| Time Latency | 主集群的对应分片中需要发送最后一条 Log 的 WAL 中的时间戳与已经发送的最后一条 Log 的 WAL 中的时间戳差值。<br>当值为`0`时,表示数据已经发送至从集群。 |

### 查看从集群接收数据的状态
### 查看从集群同步数据的状态

在从集群中,执行`SHOW DRAINER SYNC STATUS`查看从集群同步接收的数据至从集群 Meta 和 Storage 的状态。

Expand Down

0 comments on commit 0a7d376

Please sign in to comment.