Setting Static Communication Ports Between Directors and Brokers

Setting Static Communication Ports Between Directors and Brokers

book

Article ID: KB0090097

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

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<-&gtdirector 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:

&ltconnectionmanager class="ServerSocketConnectionManager" name="Secondary Director Connections">
                &ltproperty name="address" value="$DSAddress$"/>
                &ltproperty name="permanentConnection" value="true"/>
                &ltproperty name="SSL" value="False"/>
                &ltproperty 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<-&gtbroker 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:

&ltimport package="com.livecluster.connection.multiplexer"/>
&ltconnectionmanager class="MultiplexerConnectionManager">
&ltconnectionmanager class="ServerSocketConnectionManager" name="Broker Connections">
        &ltproperty name="address" value="$DSAddress$"/>
        &ltproperty name="SSL" value="False"/>
        &ltproperty name="permanentConnection" value="true"/>
        &ltproperty 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.

Issue/Introduction

Setting Static Communication Ports Between Directors and Brokers