Restrict members in Hazelcast cluster

穿精又带淫゛_ 提交于 2021-01-29 07:38:46

问题


I am working on a spring boot project where i am using Hazelcast as Cache. I have enabled tcp as join method and i also mentioned some members. The members are able to join. But the problem is other nodes are also able to join apart from the members. can anyone tell me how i can restrict it?

This is my configuration,

@Bean
    public Config hazelcastConfig() {
        Config config = new Config()
                .setClusterName("myCluster");
        List<String> members = new ArrayList<>();
        members.add("192.168.99.1:5523");
        members.add("192.168.99.2:5542");
        config.getNetworkConfig().getJoin()
                .setMulticastConfig(new MulticastConfig().setEnabled(false))
                .setTcpIpConfig(new TcpIpConfig().setEnabled(true).setMembers(members));
        config.getNetworkConfig().setPort(5523);
        return config;
    }

回答1:


The main approach in the Hazelcast IMDG (community edition) is to configure the different cluster names.

You can also look into Hazelcast Enterprise which has a set of security features (JAAS authentication, TLS, symmetric encryption, ...).

More details in these answers:

  • https://stackoverflow.com/a/62540153/653069
  • https://stackoverflow.com/a/56216106/653069


来源:https://stackoverflow.com/questions/62713563/restrict-members-in-hazelcast-cluster

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!