These issues may be attributable to JGroup (the underlying communication package that JBoss® uses for its HA implementation) and to the fact that a Foglight HA implementation uses UDP for communication by default and UDP is by nature an unreliable protocol.
If you encounter these HA issues, consider performing the following tuning exercise.
b |
Edit server/default/deploy/cluster-service.xml by doing the following: |
c |
Locate the line beginning <TCPPING initial_hosts="thishost[7800],thathost[7800]" and change thathost to the host name of the secondary server in the cluster. If there are more than two servers in the cluster, add those servers to the list as well: thishost[7800],host2[7800],host3[7800]. |
To specify the IP address or host name to be used for communication, set the following:
You can set this using the command line interface or by adding the following to the server.config file:
server.cmdline.option0 = "-Djboss.bind.address=127.0.0.1";
server.cmdline.option0 = “-Dbind.address”;
server.cmdline.option1 = “127.0.0.1”;
where 127.0.0.1 is the desired IP address
server.cmdline.option0 = "-Djboss.bind.address=host1.example.com";
server.cmdline.option1 = "-Dbind.address=host1.example.com";
where host1.example.com is the desired host name
You also need to reconfigure the restarter to perform server health check with the same host name or IP address. To do so, open the restart_monitor.config file, find the line beginning with health.check.url, and replace localhost with the host name or IP address specified with --host.
-Dquest.host.name=”host1.example.com”
Foglight™ Management Servers running on a VMware® Linux® x86_64 image fail to start up and a "java.net.BindException: Cannot assign requested address exception" is raised.
This is a JDK issue with IPv6 on Linux, not a true High Availability issue. It also impacts standalone servers. However, the issue is documented here because it occurs when the JBoss® cluster service is starting up.
Workaround: Start the Management Server with the following command:
-Djava.net.preferIPv4Stack=true
For more information, see: the JGroups FAQ (http://community.jboss.org/wiki/JGroupsFAQ) and Oracle® Bugs for it (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521974).
© ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center