Yed clustering setup
davewebb Mar 22, 2005 8:26 AMI have singe physical machine that one NIC and I need to setup 3 clusters on the machine for 3 different applications.
My setup is:
Linux
JBoss 4.0.1SP1
JDK 1.4.2_03
Tomcat 5
My experience with clustering J2EE servers tells me that changing the mcast_addr in the cluster_services.xml and tc5-clustering-service.xml files to be unique to each cluster will separate the clusters and the clustering activity. My example will only use 2 servers since I can not even separate 2 clusters at this point.
Server 1 - Cluster 1
cluster-service.xml
<UDP mcast_addr="228.1.2.41" mcast_port="45566" bind_addr="192.168.1.41" ip_ttl="32" ip_mcast="true" mcast_send_buf_size="800000" mcast_recv_buf_size="150000" ucast_send_buf_size="800000" ucast_recv_buf_size="150000" loopback="false" />
tc5-cluster-service.xml
<UDP mcast_addr="230.1.2.41" mcast_port="45577" bind_addr="192.168.1.41" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false"/>
Server 2 - Cluster 2
cluster-service.xml
<UDP mcast_addr="228.1.2.42" mcast_port="45566" bind_addr="192.168.1.42" ip_ttl="32" ip_mcast="true" mcast_send_buf_size="800000" mcast_recv_buf_size="150000" ucast_send_buf_size="800000" ucast_recv_buf_size="150000" loopback="false" />
tc5-cluster-service.xml
<UDP mcast_addr="230.1.2.42" mcast_port="45577" bind_addr="192.168.1.42" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false"/>
The results are as follows. The first server comes up no problem and deploys the expected packages in the deploy and farm directories. When I bring up the second server, it joins a cluster with server 1 and picks up all the files in server 1's farm directory.
What else do I need to change to have 2 to n clusters on a single machine when each cluster is bound to a different IP address?
Thank you in advance for any assistance.