This article describes how to reconfigure a Foglight High Availability (HA) environment to use TCP instead of UDP for JGroups cluster communication.
This procedure is documented in the Foglight - High Availability Field Guide. Refer to the latest version available from the Support Portal for complete details.
[FMS_HOME]/config/jgroups-config.xmlUDP and PING blocks by adding the <!-- and --> comment tags. For example:
<!--<UDP
...
/>-->
<!--<PING />-->
TCP and TCPPING blocks by removing the <!-- and --> comment tags. For example:
<TCP
...
/>
<TCPPING
...
/>
TCPPING block on each server so that the initial_hosts parameter includes the hostnames of the other HA nodes in the cluster. For example:
<TCPPING
initial_hosts="${jgroups.bind_addr}[7800],server-b[7800]"
port_range="3"
/>
The following log entries can be used to verify that Foglight is starting in HA mode and nodes joined the cluster.
High Availability Enabled
The servers should start in High Availability mode:
INFO [forge-startup] com.quest.nitro.startup.ForgeServer - Forge Server starts in high availability mode under partition name: FMS_HA
Primary Server Startup
INFO [forge-startup] com.quest.nitro.service.ServiceMBeanUtil - Cluster Manager Service Starting...
VERBOSE [forge-startup] STDOUT -
-------------------------------------------------------------------
GMS: address=server-a-51266, cluster=FMS_HA, physical address=192.0.2.10:7800
-------------------------------------------------------------------
VERBOSE [forge-startup] com.quest.nitro.service.cluster.jgroups.JGroupsClusterManager - Received new cluster view: [server-a-51266|0] (1) [server-a-51266]
INFO [forge-startup] com.quest.nitro.service.ha.HAMembershipService - Running as the primary server of the partition FMS_HA with 1 servers in total.
INFO [forge-startup] com.quest.nitro.service.ServiceMBeanUtil - Cluster Manager Service Started.
Secondary Server Startup
INFO [forge-startup] com.quest.nitro.service.ServiceMBeanUtil - Cluster Manager Service Starting...
VERBOSE [forge-startup] STDOUT -
-------------------------------------------------------------------
GMS: address=server-b-25800, cluster=FMS_HA, physical address=192.0.2.20:7800
-------------------------------------------------------------------
VERBOSE [forge-startup] com.quest.nitro.service.cluster.jgroups.JGroupsClusterManager - Received new cluster view: [server-a-39725|5] (2) [server-a-39725, server-b-25800]
INFO [forge-startup] com.quest.nitro.service.ha.HAMembershipService - Running as a secondary server of the partition FMS_HA with 2 servers in total.
INFO [forge-startup] com.quest.nitro.service.ServiceMBeanUtil - Cluster Manager Service Started.
Secondary Server Promoted to Primary
After the primary server is stopped, the secondary server should be promoted to primary:
INFO [jgroups-15,FMS_HA,server-b-25800] com.quest.nitro.service.ha.HAMembershipService - Running as the primary server of the partition FMS_HA with 1 servers in total.
1). Ensure that each server can successfully resolve the hostname of the other servers (use the FQDN if applicable). For example:
nslookup server-a
nslookup server-b
2). Confirm the configured JGroups TCP port (default 7800) is listening on each server. For example:
Windows
netstat -ano | findstr :7800
Linux
netstat -tlnp | grep 7800
Note: Please run the Linux command as root (or using sudo) to display process information. Otherwise, you may see message "Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all."
3). Verify connectivity to the listening port. For example:
Windows PowerShell
Test-NetConnection SERVER2 -Port 7800
Linux
nc -zv SERVER2 7800
If Foglight is configured to use HTTPS and HA mode has been enabled, but the environment is not functioning correctly or the FMS is experiencing frequent restarts, ensure that HTTPS is not configured in the restart_monitor.config file. For additional information, refer to KB 4261697.
For information on how to verify which FMS server is the primary node, refer to KB 4276240.