0 Replies Latest reply on Jul 21, 2010 4:38 AM by thomas2008ch

    How to configure clustering usiong TCP?

    thomas2008ch

      I have two Jboss nodes on two machines. Since the multicasting is not allowed, so I have to configure the clustering by means of TCP.

       

      I try to edit the code in file 'xxx/deploy/jboss-web-cluster.sar/META-INF/jboss-service.xml', but not sure how to, especially the 'bind_addr' and 'initial_hosts'.

       

      Assumed the ip of node1 is 123.23.34.1 and the node2 is 123.23.34.2. I did as follow but it seems the cluster is not known.

       

      By node1:

      ...

      <TCP bind_addr="123.23.34.1" start_port="7810" loopback="true"
                           tcp_nodelay="true"
                           recv_buf_size="20000000"
                           send_buf_size="640000"
                           discard_incompatible_packets="true"
                           enable_bundling="true"
                           max_bundle_size="64000"
                           max_bundle_timeout="30"
                           use_incoming_packet_handler="true"
                           use_outgoing_packet_handler="false"
                           down_thread="false" up_thread="false"
                           use_send_queues="false"
                           sock_conn_timeout="300"
                           skip_suspected_members="true"/>
                      <TCPPING initial_hosts="123.23.34.1[7810],
      123.23.34.2[7810]" port_range="3"
                               timeout="3000"
                               down_thread="false" up_thread="false"
                               num_initial_members="3"/>

      ...

       

       

      By node2:

      ...

      <TCP bind_addr="123.23.34.2" start_port="7810" loopback="true"
                            tcp_nodelay="true"
                            recv_buf_size="20000000"
                            send_buf_size="640000"
                            discard_incompatible_packets="true"
                            enable_bundling="true"
                            max_bundle_size="64000"
                            max_bundle_timeout="30"
                            use_incoming_packet_handler="true"
                            use_outgoing_packet_handler="false"
                            down_thread="false" up_thread="false"
                            use_send_queues="false"
                            sock_conn_timeout="300"
                            skip_suspected_members="true"/>
                       <TCPPING initial_hosts="123.23.34.2[7810],
      123.23.34.1[7810]"  port_range="3"
                                timeout="3000"
                                down_thread="false" up_thread="false"
                                num_initial_members="3"/>

      ...

       

       

      Besides, how can I start up the Jboss instance? What D-parameter should I use?