Problem:

The primary IP for Node1 is IP1 and IP2 for Node2. The Cluster IP is set to IP3. How to setup the Naming Service in a HA clustering environment.


Resolution:

The documented configuration in the Developer's Guide->Using the VisiNaming Service->VisiNaming Service Clusters for Failover and Load Balancing->Configuring the VisiNaming Service in Master/Slave mode section is incomplete.

Use the below configuration for the above mentioned setup:

vbroker.se.iiop_tp.scm.iiop_tp.listener.port=20002
vbroker.naming.proxyEnable=1
vbroker.naming.enableSlave=1
vbroker.naming.slaveMode=slave
vbroker.naming.masterServer=Master
vbroker.naming.masterHost= IP1
vbroker.naming.masterPort=20002
vbroker.naming.slaveServer=Slave
vbroker.naming.slaveHost= IP2
vbroker.naming.slavePort=20002
vbroker.naming.masterProxyHost= IP3
vbroker.naming.masterProxyPort=20002
vbroker.naming.slaveProxyHost= IP3
vbroker.naming.slaveProxyPort=20002

The external and internal clients need to connect to the Naming Server using the cluster ip i.e. IP3.