Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-note-for-sync-when-wal-expires #2422

Merged
merged 6 commits into from
Dec 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)。