Foglight HA: Best practice configuration for Foglight HA host with multiple NICs
When configuring Foglight® Management Servers that are installed on hosts with multiple network interfaces (that is, with multiple IP addresses and host names), you can specify the IP address that is to be used for communication with the server. To specify the IP address and host name, configure the following parameters in the server.config file:
server.bind.address = "X.X.X.X"; server.remote.address = "host_name";
Where:
Example A
server.bind.address = "192.0.2.2"; server.remote.address = "host1.example.com";
If a DNS host name is not available for the bind address, the IP address can be used:
server.bind.address = "192.0.2.2"; server.remote.address = "192.0.2.2";
When the Management Server is configured to run in HA mode, you also need to reconfigure the restarter to perform server health check with the same host name or IP address. To do that, open the restart_monitor.config file, locate the health.check.url
and server.host properties, and set their values to the one specified by the server.remote.address
parameter (in server.config).
Example B
server.bind.address = "host1.example.com";
If a DNS name is available for the desired bind address, the name can be used instead of the raw address.
For more information about server.bind.address
and server.remote.address
, see the comments in server.config.
For additional information on HA configurations refer to Foglight - High Availability Field Guide.
Side effect of not following best practice may include: Dual Primary HA environment, this may cause topology churn and/or data to not appear correctly.
Other options
Remote to the Foglight Management Server (FMS) host
Modify the /config/server.config and include the following lines
server.vm.optionXX = "-Djboss.bind.address=<Change IP>";
Note: This will bind Foglight to use a specific NIC
server.vm.optionXX = "-Djgroups.bind_addr=<Change IP>";
Note: This option sets configures the HA cluster's heartbeat monitoring
server.vm.optionXX = "-Djava.rmi.server.hostname=<Change IP>";
Note: This will ensure the Remote Method Invocation (RMI) ports are properly bound to the appropriate NIC
Note: Ensure the XX is changed to the first available option number such as 0, 1, 2.....
If the server localhost host value resolves to a different IP than the Foglight HA bound NIC, modify the /config/restart_monitor.config
server.host = "<same IP as bound NIC above>";
Restart the FMS server to implement changes
© ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center