Skip to content

Commit

Permalink
Documentation of RELAY3 (https://issues.redhat.com/browse/JGRP-2697)
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Aug 21, 2023
1 parent e674df6 commit 008cbdf
Show file tree
Hide file tree
Showing 11 changed files with 410 additions and 17 deletions.
2 changes: 2 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
<copy todir="${compile.dir}/">
<fileset dir="${conf.dir}" includes="*.btm *.jks">
<include name="scripts/**"/>
<include name="relay/**"/>
<exclude name="log4j*.xml"/>
<exclude name="settings.xml"/>
<exclude name="${version.file}"/>
Expand All @@ -202,6 +203,7 @@
<copy todir="${compile.dir}/">
<fileset dir="${conf.dir}" includes="*.properties, *.xml">
<include name="scripts/**"/>
<include name="relay/**"/>
<exclude name="log4j*.xml"/>
<exclude name="settings.xml"/>
</fileset>
Expand Down
33 changes: 33 additions & 0 deletions conf/relay/bridge-net1-hf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

<config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">

<TCP
bind_addr="${jgroups.bind_addr:match-address:192.*,site_local,loopback}"
bind_port="${jgroups.bind_port:8200}"

thread_pool.enabled="true"
thread_pool.max_threads="200"
thread_pool.rejection_policy="abort"/>
<MPING mcast_addr="226.0.0.3" />
<MERGE3 max_interval="120000"
min_interval="30000"/>
<FD_SOCK2 offset="10" />
<!--FD_ALL3 /-->
<VERIFY_SUSPECT timeout="1500" />

<pbcast.NAKACK2 xmit_interval="500"
use_mcast_xmit="false" />

<UNICAST3 xmit_interval="500"
conn_close_timeout="60000"/>
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="8M"/>
<pbcast.GMS print_local_addr="true" join_timeout="1000"/>
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG4 frag_size="60K" />
</config>
34 changes: 34 additions & 0 deletions conf/relay/bridge-net1-net2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

<config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">

<TCP
bind_addr="${jgroups.bind_addr:match-address:192.*,site_local,loopback}"
bind_port="${jgroups.bind_port:8000}"

thread_pool.enabled="true"
thread_pool.max_threads="200"
thread_pool.rejection_policy="abort"/>
<MPING mcast_addr="226.0.0.1" />
<MERGE3 max_interval="120000"
min_interval="30000"/>
<FD_SOCK2 offset="10" />
<!--FD_ALL3 /-->
<VERIFY_SUSPECT timeout="1500" />

<pbcast.NAKACK2 xmit_interval="500"
use_mcast_xmit="false"
/>

<UNICAST3 xmit_interval="500"
conn_close_timeout="60000"/>
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="8M"/>
<pbcast.GMS print_local_addr="true" join_timeout="1000"/>
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG4 frag_size="60K" />
</config>
34 changes: 34 additions & 0 deletions conf/relay/bridge-net2-net3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

<config xmlns="urn:org:jgroups"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">

<TCP
bind_addr="${jgroups.bind_addr:match-address:192.*,site_local,loopback}"
bind_port="${jgroups.bind_port:8100}"

thread_pool.enabled="true"
thread_pool.max_threads="200"
thread_pool.rejection_policy="abort"/>
<MPING mcast_addr="226.0.0.2" />
<MERGE3 max_interval="120000"
min_interval="30000"/>
<FD_SOCK2 offset="10"/>
<!--FD_ALL3 /-->
<VERIFY_SUSPECT timeout="1500" />

<pbcast.NAKACK2 xmit_interval="500"
use_mcast_xmit="false"
/>

<UNICAST3 xmit_interval="500"
conn_close_timeout="60000"/>
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="8M"/>
<pbcast.GMS print_local_addr="true" join_timeout="1000"/>
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG4 frag_size="60K" />
</config>
53 changes: 53 additions & 0 deletions conf/relay/hf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

<!--
Site-local config
Author: Bela Ban
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">
<UDP
bind_addr="192.168.1.106"
bind_port="8200"
ip_mcast="false"
thread_pool.min_threads="0"
thread_pool.max_threads="200"
thread_pool.keep_alive_time="30000"/>

<MPING mcast_addr="225.0.0.4" />

<MERGE3 max_interval="30000" min_interval="10000" />
<FD_SOCK/>
<!--FD_ALL timeout="15000" interval="3000"/-->
<VERIFY_SUSPECT timeout="1500" />
<pbcast.NAKACK2 xmit_interval="500"
discard_delivered_msgs="true" />
<UNICAST3 xmit_interval="500" />
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="8m"/>
<pbcast.GMS print_local_addr="true" join_timeout="1000" />
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG2 frag_size="60K" />
<relay.RELAY3 site="hf"
max_site_masters="1"
can_become_site_master="true">
<RelayConfiguration xmlns="urn:jgroups:relay:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jgroups:relay:1.0 relay.xsd">
<sites>
<site name="hf">
<bridges>
<bridge name="bridge-net1-hf" config="/Users/bela/bridge-net1-hf.xml"/>
</bridges>
<forwards>
<forward to=".*" gateway="net1"/>
</forwards>
</site>
</sites>
</RelayConfiguration>
</relay.RELAY2>
</config>
55 changes: 55 additions & 0 deletions conf/relay/net1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

<!--
Site-local config
Author: Bela Ban
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">
<UDP
bind_addr="192.168.2.2"
bind_port="7000"
mcast_addr="225.0.0.1"

thread_pool.min_threads="0"
thread_pool.max_threads="200"
thread_pool.keep_alive_time="30000"/>

<PING />

<MERGE3 max_interval="30000" min_interval="10000"/>
<FD_SOCK2 offset="10"/>
<!--FD_ALL timeout="15000" interval="3000"/-->
<VERIFY_SUSPECT timeout="1500" />
<pbcast.NAKACK2 xmit_interval="500"
discard_delivered_msgs="true" />
<UNICAST3 xmit_interval="500" />
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="8m"/>
<pbcast.GMS print_local_addr="true" join_timeout="1000" />
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG2 frag_size="60K" />
<relay.RELAY3 site="net1"
max_site_masters="1"
can_become_site_master="true">
<RelayConfiguration xmlns="urn:jgroups:relay:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jgroups:relay:1.0 relay.xsd">
<sites>
<site name="net1">
<bridges>
<bridge name="bridge-net1-net2" config="/Users/bela/bridge-net1-net2.xml"/>
<bridge name="bridge-net1-hf" config="/Users/bela/bridge-net1-hf.xml"/>
</bridges>
<forwards>
<forward to="net3" gateway="net2"/>
</forwards>
</site>
</sites>
</RelayConfiguration>
</relay.RELAY2>
</config>
54 changes: 54 additions & 0 deletions conf/relay/net2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

<!--
Site-local config
Author: Bela Ban
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">
<UDP
bind_addr="192.168.3.3"
bind_port="7100"
mcast_addr="225.0.0.2"

thread_pool.min_threads="0"
thread_pool.max_threads="200"
thread_pool.keep_alive_time="30000"/>

<PING />

<MERGE3 max_interval="30000" min_interval="10000"/>
<FD_SOCK2 offset="10"/>
<!--FD_ALL timeout="15000" interval="3000"/-->
<VERIFY_SUSPECT timeout="1500" />
<pbcast.NAKACK2 xmit_interval="500"
discard_delivered_msgs="true" />
<UNICAST3 xmit_interval="500" />
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="8m"/>
<pbcast.GMS print_local_addr="true" join_timeout="1000" />
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG2 frag_size="60K" />
<relay.RELAY3 site="net2"
can_become_site_master="true">
<RelayConfiguration xmlns="urn:jgroups:relay:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jgroups:relay:1.0 relay.xsd">
<sites>
<site name="net2">
<bridges>
<bridge name="bridge-net1-net2" config="/Users/bela/bridge-net1-net2.xml"/>
<bridge name="bridge-net2-net3" config="/Users/bela/bridge-net2-net3.xml"/>
</bridges>
<forwards>
<forward to="hf" gateway="net1"/>
</forwards>
</site>
</sites>
</RelayConfiguration>
</relay.RELAY2>
</config>
53 changes: 53 additions & 0 deletions conf/relay/net3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

<!--
Site-local config
Author: Bela Ban
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd">
<UDP
bind_addr="192.168.4.4"
bind_port="7200"
mcast_addr="225.0.0.3"

thread_pool.min_threads="0"
thread_pool.max_threads="200"
thread_pool.keep_alive_time="30000"/>

<PING />

<MERGE3 max_interval="30000" min_interval="10000"/>
<FD_SOCK2 offset="10" />
<!--FD_ALL timeout="15000" interval="3000"/-->
<VERIFY_SUSPECT timeout="1500" />
<pbcast.NAKACK2 xmit_interval="500"
discard_delivered_msgs="true" />
<UNICAST3 xmit_interval="500" />
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="8m"/>
<pbcast.GMS print_local_addr="true" join_timeout="1000" />
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG2 frag_size="60K" />
<relay.RELAY3 site="net3"
can_become_site_master="true">
<RelayConfiguration xmlns="urn:jgroups:relay:1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jgroups:relay:1.0 relay.xsd">
<sites>
<site name="net3">
<bridges>
<bridge name="bridge-net2-net3" config="/Users/bela/bridge-net2-net3.xml"/>
</bridges>
<forwards>
<forward to=".*" gateway="net2"/>
</forwards>
</site>
</sites>
</RelayConfiguration>
</relay.RELAY2>
</config>
Loading

0 comments on commit 008cbdf

Please sign in to comment.