且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Hazelcast tcp-ip配置集群:即使在指定了集群名称之后,不需要的IP也会加入集群

更新时间:2023-12-01 15:38:58

您的配置中有一些错字:

You have some typos in your configurations:

  • tip-ip => tcp-ip
  • 成员列表:-地址应以-
  • 开头
  • 缩进错误
  • tip-ip => tcp-ip
  • member-list: - addresses should start with -
  • indentation is wrong

因此您的配置应如下所示:

So your configuration should look like:

hazelcast:
  cluster-name: cluster1
  network:
    join:
      multicast:
        enabled:false
      tcp-ip:
        enabled: true
        member-list:
        - machineA
        - machineB

这可以解决您的问题.如果没有,请共享所有Hazelcast成员的日志(按照尼尔·史蒂文森的建议)

This may solve your issue. If not, please share the logs from all your Hazelcast members (as recommended by Neil Stevenson)