Creating a Unicast Junos Space Cluster
The nodes of a Junos Space cluster support only multicast traffic. But sometimes, for example, when Internet Group Management Protocol (IGMP) snooping is enabled on switches, unicast communication should be configured on the Junos Space nodes within a subnet so that these nodes can communicate with each other.
Junos Space provides the changeSettings2staticIP.sh script to enable you to toggle between unicast and multicast traffic on the nodes of a Junos Space cluster. This script is located in the /var/www/cgi-bin folder of a Junos Space node.
Script Syntax
sh changeSettings2StaticIP.sh
Options
backup
—Backs up libraries and configuration files from the nodes of the Junos Space clusterrestore
—Restores the libraries and configuration files on the nodes of the Junos Space clustermulticast2unicast
—Changes multicast communication to unicast communication on the nodes of a Junos Space clusterunicast2multicast
—Changes unicast communication to multicast communication on the nodes of a Junos Space cluster
When you run the script, the following subsystems in the domain.xml configuration file located at /usr/local/jboss/domain/configuration are modified:
Subsystem |
Multicast Parameters |
Unicast Parameters |
---|---|---|
mod-cluster |
advertise=false, proxy-list |
advertise=false, proxy-list |
messaging |
default-stack=udp, protocol (type=MPING) |
default-stack=tcp, protocol (type=TCPPING) |
jgroups |
cluster-connections (discovery-group-ref) |
connectors (netty-connector), cluster-connections (static-connectors) |
You can create a unicast Junos Space cluster from a single node configured for unicast communication or by changing the multicast communication in an existing cluster to unicast communication.
Creating a Unicast Junos Space Cluster from a Single Node
To create a unicast Junos Space cluster from a single node:
Creating a Unicast Junos Space Cluster from an Existing Multicast Junos Space Cluster
To change multicast communication in an existing cluster to
unicast communication, you must stop jbosson all nodes and execute
the sh changeSettings2StaticIP.sh
script with the multicast2unicast
option on the VIP node of the cluster and
then restart the jboss-dc and start jboss processes.
You must stop the watchdog service before executing the below procedure.
To change multicast communication to unicast communication:
Changing Unicast Communication to Multicast Communication on a Junos Space Cluster
To change unicast communication in an existing cluster to multicast
communication, you must execute the sh changeSettings2StaticIP.sh
script with the unijcast2multicast
option on the VIP
node of the cluster and then restart the jboss-dc and jboss processes.
To change unicast communication to multicast communication: