Skip to content

Commit

Permalink
returned to stock jgroups
Browse files Browse the repository at this point in the history
the initial hosts attribute will need to be a puppet parameter
  • Loading branch information
gregjan committed Feb 25, 2014
1 parent 13a05bf commit e0d27dd
Showing 1 changed file with 74 additions and 2 deletions.
76 changes: 74 additions & 2 deletions templates/jgroups-fcrepo-tcp.xml.erb
@@ -1,6 +1,7 @@
<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-3.0.xsd">
<TCP
bind_addr="<%= hostname %>"

<!-- <TCP
bind_addr="<%= ipaddress_eth0 %>"
bind_port="7800"
loopback="false"
recv_buf_size="${tcp.recv_buf_size:5M}"
Expand Down Expand Up @@ -28,6 +29,11 @@
oob_thread_pool.queue_enabled="false"
oob_thread_pool.queue_max_size="100"
oob_thread_pool.rejection_policy="discard"/>
<TCPPING timeout="3000"
initial_hosts="fedora4-1.libint.unc.edu[7800],fedora4-2.libint.unc.edu[7800],fedora4-3.libint.unc.edu[7800],fedora4-4.libint.unc.edu[7800],fedora4-5.libint.unc.edu[7800],fedora4-6.libint.unc.edu[7800],fedora4-7.libint.unc.edu[7800]"
port_range="5"
num_initial_members="1"
ergonomics="false"/>
<MPING timeout="1000"
num_initial_members="1"/>
<MERGE2 max_interval="30000"
Expand All @@ -46,4 +52,70 @@
min_threshold="0.4"/>
<FRAG2 frag_size="60K" />
<pbcast.STATE_TRANSFER />
-->
<TCP
bind_addr="<%= ipaddress_eth0 %>"
bind_port="7800"
loopback="false"
port_range="30"
recv_buf_size="20m"
send_buf_size="640k"
max_bundle_size="64000"
max_bundle_timeout="30"
enable_bundling="true"
use_send_queues="true"
enable_diagnostics="false"
bundler_type="new"

thread_naming_pattern="pl"

thread_pool.enabled="true"
thread_pool.min_threads="2"
thread_pool.max_threads="30"
thread_pool.keep_alive_time="60000"
thread_pool.queue_enabled="true"
thread_pool.queue_max_size="100"
thread_pool.rejection_policy="Discard"

oob_thread_pool.enabled="true"
oob_thread_pool.min_threads="2"
oob_thread_pool.max_threads="30"
oob_thread_pool.keep_alive_time="60000"
oob_thread_pool.queue_enabled="false"
oob_thread_pool.queue_max_size="100"
oob_thread_pool.rejection_policy="Discard"
/>

<!-- Ergonomics, new in JGroups 2.11, are disabled by default in TCPPING until JGRP-1253 is resolved -->
<TCPPING timeout="3000"
initial_hosts="fedora4-1.libint.unc.edu[7800],fedora4-2.libint.unc.edu[7800],fedora4-3.libint.unc.edu[7800],fedora4-4.libint.unc.edu[7800],fedora4-5.libint.unc.edu[7800],fedora4-6.libint.unc.edu[7800],fedora4-7.libint.unc.edu[7800]"
port_range="5"
num_initial_members="1"
ergonomics="false"
/>

<MERGE2 max_interval="30000" min_interval="10000"/>
<FD_SOCK/>
<FD timeout="3000" max_tries="3"/>
<VERIFY_SUSPECT timeout="1500"/>
<pbcast.NAKACK2 use_mcast_xmit="false"
xmit_interval="1000"
xmit_table_num_rows="100"
xmit_table_msgs_per_row="10000"
xmit_table_max_compaction_time="10000"
max_msg_batch_size="100"/>

<UNICAST2 stable_interval="5000"
xmit_interval="500"
max_bytes="1m"
xmit_table_num_rows="20"
xmit_table_msgs_per_row="10000"
xmit_table_max_compaction_time="10000"
max_msg_batch_size="100"/>
<pbcast.STABLE stability_delay="500" desired_avg_gossip="5000" max_bytes="1m"/>
<pbcast.GMS print_local_addr="false" join_timeout="3000" view_bundling="true"/>
<UFC min_credits="64k" max_credits="200k" min_threshold="0.20"/>
<MFC min_credits="64k" max_credits="200k" min_threshold="0.20"/>
<FRAG2 frag_size="60000"/>
<RSVP timeout="60000" resend_interval="500" ack_on_delivery="false" />
</config>

0 comments on commit e0d27dd

Please sign in to comment.