第一次在种子节点设置

First time setting in seed nodes

我知道种子节点的主要目的是让其他节点 bootstrap 进入集群,除此之外它们没什么重要的,除了闲聊新节点的种子。我已经阅读了一些安装文档,并且想第一次弄清楚种子节点。

1) 如果节点有两个种子节点和两个非种子节点。对于启动时的第一个种子节点,种子列表和自动引导值应该是多少?它会有自己的IP地址和第二个种子节点IP地址和auto-bootstrap: false吗?请澄清一下,我是否应该在此处提供种子列表?

2) 对于非种子节点,是的,种子列表应该是第一和第二种子 ip 地址。

3) 如果我想在我决定拥有另一个数据中心种子时添加另外两个种子节点,我需要将其添加到第一个数据中心种子列表中并且为此需要重新启动,否则它会自动八卦彼此?

感谢您的宝贵时间。

1) If the node has two seed nodes and two non seed nodes. For the first seed node when starting what should be the seeds list and auto boot strap values? Will it have the its own ip address and the second seed node ip address and auto-bootstrap: false? Pls clarify on this, should I have the seed list here or not?

种子列表中有一个节点自己的IP是可以的。

2) For non seed node , yes the seed list should be the first and second seeds ip address.

3) If I want to add another two seed nodes when I decide to have another data center seeds , I need to add that to the first data center seeds list and is restart necessary for this or it will automatically gossip with each other?

种子列表不会通过八卦传播。您应该在种子列表中为每个数据中心保留 ~3 个种子节点,并且您必须滚动重启才能拾取它。