更新时间:2022-12-24 21:30:03
这是我对其进行调试的方式:
This is how I debugged it:
确保jgroups-tcp
和jgroups-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.