且构网

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

HA模式下的Keycloak(Wildfly/Infinispan)-在检测群集中的其他计算机时出现问题

更新时间:2022-12-24 21:30:03

这是我对其进行调试的方式:

This is how I debugged it:

  • 确保jgroups-tcpjgroups-tcp-fd正在侦听公共接口,而不是私有接口.这些属性在standalone/configurations/standalone-ha.xml中.

  • Make sure that jgroups-tcp and jgroups-tcp-fd is listening to public interface, and not private interface. These properties are in standalone/configurations/standalone-ha.xml.

在通过bin/standalone.sh | bin/standalone.bat启动集群实例时,请确保您传递-b <public interface IP>而不是0.0.0.0(所有接口).要查找公共接口IP,请运行以下命令:

While starting the the instances of your cluster via bin/standalone.sh | bin/standalone.bat make sure you pass -b <public interface IP> and not 0.0.0.0 (all interfaces). To find the public interface IP, run the following command:

ifconfig eth0 | grep -i mask | awk '{print $2}'| cut -f2 -d:

启动第一个实例时(应该是您在initial_hosts属性中传递的实例;您可以尝试telnet <IP> 7600来测试TCPPING是否正常工作.它应该可以用于群集发现.8> >

When you start the first instance (should be the instance you passed in initial_hosts property; you can try telnet <IP> 7600 to test if your TCPPING is working or not. It should work for cluster discovery.