我目前正在尝试在n台计算机上创建一个由N个节点组成的集群。但是(我不是网络专家),在我的办公室网络中,组播只允许在特定的组播组和端口上进行。
我没有在机箱配置中找到如何指定组ip,Hazelcast可以做到这一点。
有什么想法吗?多播比单播酷多了。
谢谢。
发布于 2015-10-27 18:47:54
由于Crate使用Elasticsearch进行发现(以及其他许多事情),因此组播组的配置方式与Elasticsearch中的方式相同。
将以下内容添加到您的crate.yml
discovery.zen.ping.multicast.group: <YOUR_GROUP>
另请参阅https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#multicast
发布于 2015-10-27 13:09:24
看看MulticastConfig吧。
Config config = new Config();
config.getNetworkConfig().getJoin().getMulticastConfig()
.setMulticastGroup(multicastGroup)
.setMulticastPort(multicastPort);
HazelcastInstance hz = Hazelcast.newHazelcastInstance(config);https://stackoverflow.com/questions/33357566
复制相似问题