blob: 6e89dbc9758814e8e692e131e0e3174b5d3d6953 [file] [log] [blame]
<!--
Based on a configuration written by Bela Ban [1].
[1] https://koudingspawn.de/jgroups-on-kubernetes/
-->
<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"
>
<TCP bind_addr="loopback,match-interface:eth0"
bind_port="7800"
external_addr="match-interface:eth0"
thread_pool.min_threads="0"
thread_pool.max_threads="200"
thread_pool.keep_alive_time="30000" />
<RED />
<org.jgroups.protocols.kubernetes.KUBE_PING
port_range="1"
namespace="${KUBERNETES_NAMESPACE:default}"
labels="${KUBERNETES_LABELS:app=gerrit}"
/>
<MERGE3 max_interval="30000"
min_interval="10000" />
<FD_SOCK external_addr="${JGROUPS_EXTERNAL_ADDR}"
start_port="${FD_SOCK_PORT:9000}" />
<FD_ALL timeout="30000" interval="5000" />
<VERIFY_SUSPECT timeout="1500" />
<BARRIER />
<pbcast.NAKACK2 xmit_interval="500"
xmit_table_num_rows="100"
xmit_table_msgs_per_row="2000"
xmit_table_max_compaction_time="30000"
use_mcast_xmit="false"
discard_delivered_msgs="true" />
<UNICAST3
xmit_table_num_rows="100"
xmit_table_msgs_per_row="1000"
xmit_table_max_compaction_time="30000" />
<pbcast.STABLE desired_avg_gossip="50000" max_bytes="8m" />
<pbcast.GMS print_local_addr="true" print_physical_addrs="true" join_timeout="3000" />
<MFC max_credits="2M"
min_threshold="0.4" />
<FRAG2 frag_size="60K" />
<pbcast.STATE_TRANSFER />
<CENTRAL_LOCK />
<COUNTER />
</config>