Skip to content

Commit

Permalink
add-note-for-sync-when-wal-expires (#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber committed Dec 30, 2022
1 parent e571b18 commit 45ae55a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ drainer:机器 IP 地址为`192.168.10.104`,只启动 drainer 服务。

- 所有`nebula-graphd.conf`配置文件里设置`enable_authorize=true`。

- 在主集群的`nebula-metad.conf`和`nebula-storaged.conf`文件中,配置`--snapshot_send_files=false`。

- 主从集群填写各自集群的`meta_server_addrs`,注意不要错填其他集群的地址。

- listener 的配置文件里`meta_server_addrs`填写主集群的机器 IP,`meta_sync_listener`填写 listener 机器的 IP。
Expand Down Expand Up @@ -512,3 +514,7 @@ nebula> SHOW DRAINER SYNC STATUS;
### 如何判断数据同步进度?

用户可以执行`SHOW SYNC STATUS`查看主集群发送数据的状态,执行`SHOW DRAINER SYNC STATUS`查看从集群接收数据的状态。如果同时满足主集群中的所有数据都发送成功,并且从集群成功接收所有数据,则说明数据同步完成。

### WAL 日志文件过期了对集群数据同步有影响吗?

如果 WAL 日志文件过期了(超过了`--wal-ttl`设置的时间),数据会不同步。用户可以通过手动在 Meta 和 Storage 服务的配置文件中添加`--snapshot_send_files=false`配置以同步数据。更新文件中的配置后,需要重启服务。关于配置文件的详细信息,参见[配置文件简介](../5.configurations-and-logs/1.configurations/1.configurations.md)

0 comments on commit 45ae55a

Please sign in to comment.