The Failover Manager registers with all Brokers specified in the failover.conf file.
You can add any number of Brokers to the BrokerSection of the failover.conf file.
When the Failover Manager starts, it assigns priorities to Brokers based on each Broker’s order of definition in failover.conf under the BrokerSection.
The Failover Manager assigns the first Broker entry a priority of 0. The first Broker entry is always the default Active Broker. If you want the Broker running on Location A to be the Active Broker, define it as the first entry under the BrokerSection. Then, define the Standby Broker and any other alternate Broker after the first Broker entry.
Use the following steps to configure monitoring for the Broker on the Failover Manager:
-
From the installation directory of Failover Manager (BASEDIR/smarts/bin), open the failover.conf file. Type:
./sm_edit conf/failover/failover.conf
-
Under the Broker section, uncomment the Broker entries and modify them as needed (for example, change the default port 426 to a value greater than 1024). The first entry for Host A is treated as the Active Broker.
BrokerSection { # Broker # { # HostName = "broker-host-A"; # PortNumber = 426; # Basedir = "/opt/InCharge/SAM/smarts"; # InstalledServiceName = "ic-broker"; # } # Broker # { # HostName = "broker-host-B"; # PortNumber = 426; # Basedir = "/opt/InCharge/SAM/smarts"; # InstalledServiceName = "ic-broker"; # } # # Any URLs listed in OnChangePOST will recieve a POST # with a form parameter of "broker" whenever the active # broker changes. CAS-protected URLs are supported. # # OnChangePOST = "http://smarts-tomcat-host-A:8080/smarts-edaa/setBroker"; # OnChangePOST = "http://smarts-tomcat-host-B:8080/smarts-edaa/setBroker";
-
Save the failover.conf file and exit.
Note:If you configure the Broker for failover while the Failover Manager is already running, use the ic-failover-server script reload option to reload the failover.conf file and use the Reconfigure button in the Domain Manager Administration Console to reconfigure the Failover Manager.