2 TCP based stack, with flow control and message bundling. This is usually used when IP
3 multicasting cannot be used in a network, e.g. because it is disabled (routers discard multicast).
4 Note that TCP.bind_addr and TCPPING.initial_hosts should be set, possibly via system properties, e.g.
5 -Djgroups.bind_addr=192.168.5.2 and -Djgroups.tcpping.initial_hosts=192.168.5.2[7800]".
8 <config xmlns="urn:org:jgroups"
9 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10 xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.0.xsd">
13 bind_addr="${jgroups.tcp.address:127.0.0.1}"
14 bind_port="${jgroups.tcp.port:7800}"
15 recv_buf_size="${tcp.recv_buf_size:20M}"
16 send_buf_size="${tcp.send_buf_size:640K}"
17 discard_incompatible_packets="true"
19 max_bundle_timeout="30"
20 enable_bundling="true"
21 use_send_queues="true"
22 sock_conn_timeout="300"
25 timer.max_threads="10"
26 timer.keep_alive_time="3000"
27 timer.queue_max_size="500"
28 thread_pool.enabled="true"
29 thread_pool.min_threads="2"
30 thread_pool.max_threads="30"
31 thread_pool.keep_alive_time="60000"
32 thread_pool.queue_enabled="false"
33 thread_pool.queue_max_size="100"
34 thread_pool.rejection_policy="discard"
35 oob_thread_pool.enabled="true"
36 oob_thread_pool.min_threads="2"
37 oob_thread_pool.max_threads="30"
38 oob_thread_pool.keep_alive_time="60000"
39 oob_thread_pool.queue_enabled="false"
40 oob_thread_pool.queue_max_size="100"
41 oob_thread_pool.rejection_policy="discard"/>
44 <!-- bind_port="7800" -->
45 <!-- bind_interface="${jgroups.tcp_nio.bind_interface:bond0}" -->
46 <!-- use_send_queues="true" -->
47 <!-- sock_conn_timeout="300" -->
48 <!-- reader_threads="3" -->
49 <!-- writer_threads="3" -->
50 <!-- processor_threads="0" -->
51 <!-- processor_minThreads="0" -->
52 <!-- processor_maxThreads="0" -->
53 <!-- processor_queueSize="100" -->
54 <!-- processor_keepAliveTime="9223372036854775807"/> -->
55 <TCPGOSSIP initial_hosts="${jgroups.tcpgossip.initial_hosts}"/>
56 <!-- <TCPPING initial_hosts="${jgroups.tcpping.initial_hosts}" -->
57 <!-- port_range="0" -->
58 <!-- timeout="3000" -->
60 <MERGE2 max_interval="30000" min_interval="10000"/>
62 <FD timeout="3000" max_tries="3"/>
63 <VERIFY_SUSPECT timeout="1500"/>
65 use_mcast_xmit="false"
66 retransmit_timeout="300,600,1200,2400,4800"
67 discard_delivered_msgs="false"/>
68 <UNICAST2 timeout="300,600,1200"
69 stable_interval="5000"
71 <pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
72 <pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="true"/>
73 <UFC max_credits="200k" min_threshold="0.20"/>
74 <MFC max_credits="200k" min_threshold="0.20"/>
75 <FRAG2 frag_size="60000"/>
76 <RSVP timeout="60000" resend_interval="500" ack_on_delivery="false" />