infinispan cluster of a predefined set of IP Addresses

女生的网名这么多〃 提交于 2019-12-12 04:37:43

问题


I am using infinispan to distribute the cache over multiple nodes using multicast which is working fine.

Unfortunately, according to the System Admin requirements they don't want to allow multicast and they gave me a set of the possible node IP addresses.

Is there a way programatically or via infinispan.xml or jgroups.xml to define the set of IP Addresses of the nodes instead of auto discovery? If not is there an alternative cache that fit the same requirement?


回答1:


You need to adjust JGroups configuration. By default Infinispan uses default-configs/default-jgroups-udp.xml but you should take default-configs/default-jgroups-tcp.xml as a starter if multicast/UDP is not allowed in your network. In your derived configuration replace the MPING protocol (which uses auto-discovery, too) with TCPPING - see JGroups docs.



来源:https://stackoverflow.com/questions/45719003/infinispan-cluster-of-a-predefined-set-of-ip-addresses

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