Products | Versions |
---|---|
TIBCO DataSynapse GridServer | - |
Not Applicable | - |
Resolution:
Custom configuration to use static ports for manager communication
Normally, a set of ephermal ports are used between Directors and Brokers to communicate. You can, however, reconfigure the components to use a static set of ports.
To set static TCP ports for communications among Directors and Brokers, you first need to install those components on different machines. In other words, you must install each standalone Director or Broker on a separate machine. For example, if you want to set the communication port between two Directors to 7124, you need to install two standalone directors on two machines, and these machines cannot have any Brokers installed or configured. If you want to set the communication port between Brokers and Directors to 7123, you need to install each standalone Broker alone on a separate machine.
Configuration changes are made in all primary and secondary Directors' director.xml file.
Configuring director<->director communication
To set the communication port between directors to 7124, Edit the primary Director and secondary Directors' webapps/livecluster/WEB-INF/config/director.xml file and add the port property, as shown below:
<connectionmanager class="ServerSocketConnectionManager" name="Secondary Director Connections">
<property name="address" value="$DSAddress$"/>
<property name="permanentConnection" value="true"/>
<property name="SSL" value="False"/>
<property name="port" value="7124"/>
</connectionmanager>
Secondary Directors will log in to the primary or acting primary Director using the port 2000 initially. Then the primary Director will notify secondary Directors to use port 7124 on both sides for further communication.
Configuring director<->broker communication
To set the communication port between Directors and Brokers to 7123, edit the primary Director and secondary Director's webapps/livecluster/WEB-INF/config/director.xml file and add the the port property, as shown below:
<import package="com.livecluster.connection.multiplexer"/>
<connectionmanager class="MultiplexerConnectionManager">
<connectionmanager class="ServerSocketConnectionManager" name="Broker Connections">
<property name="address" value="$DSAddress$"/>
<property name="SSL" value="False"/>
<property name="permanentConnection" value="true"/>
<property name="port" value="7123"/>
</connectionmanager>
</connectionmanager>
Brokers will log in to the primary or acting primary Director using the port 2000 initially. Then the primary Director will notify Brokers to use port 7123 on both sides for further communication.
You need to restart the Directors after making any changes in the director.xml file.