[jboss-cvs] JBossAS SVN: r108922 - in branches/JBPAPP_5_1_datagrid: cluster/src/installers/datagrid and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 26 12:59:50 EDT 2010
Author: galder.zamarreno at jboss.com
Date: 2010-10-26 12:59:49 -0400 (Tue, 26 Oct 2010)
New Revision: 108922
Added:
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp-sync.xml
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp.xml
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-async.xml
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-sync.xml
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp.xml
Modified:
branches/JBPAPP_5_1_datagrid/build/build-distr.xml
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/build.xml
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/datagrid-jboss-beans.xml
branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/infinispan-configuration.xml
Log:
JBPAPP-5278 - Provide default JGroups stack config which can be used with ServiceBindingManager - Added individual files for each of the JGroups stack configuration and changed configuration and build instructions to fit them into the generated datagrid profile.
Modified: branches/JBPAPP_5_1_datagrid/build/build-distr.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/build/build-distr.xml 2010-10-26 15:32:05 UTC (rev 108921)
+++ branches/JBPAPP_5_1_datagrid/build/build-distr.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -1144,15 +1144,16 @@
<fileset dir="${org.jboss.netty.lib}" excludes="*-sources.jar" />
<fileset dir="${org.jboss.marshalling.lib}" excludes="*sources.jar"/>
<fileset dir="${org.scala.lang.lib}" includes="scala-library.jar"/>
+ <fileset dir="${_datagrid.root}">
+ <include name="jgroups-datagrid-*"/>
+ </fileset>
</copy>
<!-- The configuration files below get built automatically into the extras/datagrid directory.
These need to get moved into the META-INF directory of the exploded sar-->
<move todir="${_deploy.sar}/META-INF">
<fileset dir="${_datagrid.root}">
- <include name="datagrid-endpoint-memcached.properties"/>
- <include name="datagrid-endpoint-hotrod.properties"/>
- <include name="datagrid-endpoint-rest.properties"/>
+ <include name="datagrid-endpoint-*"/>
<include name="datagrid-jboss-beans.xml"/>
<include name="infinispan-configuration.xml"/>
<include name="jboss-structure.xml"/>
Modified: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/build.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/build.xml 2010-10-26 15:32:05 UTC (rev 108921)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/build.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -1,17 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- ====================================================================== -->
-<!-- -->
-<!-- JBoss, the OpenSource J2EE webOS -->
-<!-- -->
-<!-- Distributable under LGPL license. -->
-<!-- See terms of license at http://www.gnu.org. -->
-<!-- -->
-<!-- ====================================================================== -->
+<project default="install" name="JBoss - build file for datagrid profile">
-
-<project default="main" name="JBoss - build file for datagrid profile">
-
<target name="install">
<property name="jboss.home" value="../../"/>
<property name="server.datagrid" value="${jboss.home}/server/datagrid"/>
@@ -90,19 +80,19 @@
<fileset dir="${jboss.home}/server/web/deployers/jbossweb.deployer" />
</copy>
- <!-- Temporary measure to add in the JMX invoker to get the testsuite running-->
+ <!-- Temporary measure to add in the JMX invoker to get the testsuite running-->
<copy todir="${datagrid.deploy}">
<fileset dir="${jboss.home}/server/default/deploy/">
- <include name="jmx-invoker-service.xml"/>
- <include name="legacy-invokers-service.xml"/>
- <include name="transaction-jboss-beans.xml"/>
+ <include name="jmx-invoker-service.xml"/>
+ <include name="legacy-invokers-service.xml"/>
+ <include name="transaction-jboss-beans.xml"/>
</fileset>
- </copy>
+ </copy>
<copy todir="${datagrid.deploy}/ROOT.war">
<fileset dir="${jboss.home}/server/default/deploy/ROOT.war">
</fileset>
- </copy>
-
+ </copy>
+
<delete dir="${datagrid.deploy}/datagrid.sar/infinispan-server-rest.war/WEB-INF/lib/" includes="infinispan-core*, log4j*, slf4j*, jgroups*, river*, scala-library*, jboss-*"/>
</target>
Modified: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/datagrid-jboss-beans.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/datagrid-jboss-beans.xml 2010-10-26 15:32:05 UTC (rev 108921)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/datagrid-jboss-beans.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -1,92 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
-
<deployment xmlns="urn:jboss:bean-deployer:2.0">
- <bean name="DefaultCacheManager" class="org.infinispan.manager.DefaultCacheManager">
- <constructor>
- <parameter class="java.lang.String">META-INF/infinispan-configuration.xml</parameter>
- </constructor>
- </bean>
+ <bean name="DefaultCacheManager" class="org.infinispan.manager.DefaultCacheManager">
+ <constructor>
+ <parameter class="java.lang.String">${jboss.infinispan.config:META-INF/infinispan-configuration.xml}</parameter>
+ </constructor>
+ </bean>
+ <bean name="HotRodServer" class="org.infinispan.server.hotrod.HotRodServer">
+ <install method="start">
+ <!--
+ <parameter class="java.util.Properties">
+ <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String" name="">
+ <entry>
+ <key>infinispan.server.host</key>
+ <value>
+ <value-factory bean="ServiceBindingManager"
+ method="getStringBinding">
+ <parameter>HotRodServer</parameter>
+ <parameter><null /></parameter>
+ <parameter><null/></parameter>
+ <parameter>${jboss.bind.address}</parameter>
+ <parameter>11311</parameter>
+ </value-factory>
+ </value>
+ </entry>
+ <entry>
+ <key>infinispan.server.port</key>
+ <value>
+ <value-factory bean="ServiceBindingManager"
+ method="getIntBinding">
+ <parameter>HotRodServer</parameter>
+ <parameter>
+ <null />
+ </parameter>
+ <parameter>${jboss.bind.address}</parameter>
+ <parameter>11311</parameter>
+ </value-factory>
+ </value>
+ </entry>
+ </map>
+ </parameter> -->
+ <parameter class="java.lang.String">${jboss.infinispan.hotrod.properties:META-INF/datagrid-endpoint-hotrod.properties}</parameter>
+ <parameter class="org.infinispan.manager.EmbeddedCacheManager">
+ <inject bean="DefaultCacheManager"/>
+ </parameter>
+ </install>
+ </bean>
- <bean name="HotRodServer" class="org.infinispan.server.hotrod.HotRodServer">
- <install method="start">
- <!--
- <parameter class="java.util.Properties">
- <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String" name="">
- <entry>
- <key>infinispan.server.host</key>
- <value>
- <value-factory bean="ServiceBindingManager"
- method="getStringBinding">
- <parameter>HotRodServer</parameter>
- <parameter><null /></parameter>
- <parameter><null/></parameter>
- <parameter>${jboss.bind.address}</parameter>
- <parameter>11311</parameter>
- </value-factory>
- </value>
- </entry>
- <entry>
- <key>infinispan.server.port</key>
- <value>
- <value-factory bean="ServiceBindingManager"
- method="getIntBinding">
- <parameter>HotRodServer</parameter>
- <parameter>
- <null />
- </parameter>
- <parameter>${jboss.bind.address}</parameter>
- <parameter>11311</parameter>
- </value-factory>
- </value>
- </entry>
- </map>
- </parameter> -->
- <parameter class="java.lang.String">META-INF/datagrid-endpoint-hotrod.properties</parameter>
- <parameter class="org.infinispan.manager.EmbeddedCacheManager"><inject bean="DefaultCacheManager" /></parameter>
- </install>
- </bean>
+ <bean name="MemcachedServer" class="org.infinispan.server.memcached.MemcachedServer">
+ <install method="start">
+ <!--
+ <parameter class="java.util.Properties">
+ <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
+ <entry>
+ <key>infinispan.server.host</key>
+ <value>
+ <value-factory bean="ServiceBindingManager"
+ method="getStringBinding">
+ <parameter>MemcachedServer</parameter>
+ <parameter><null /></parameter>
+ <parameter><null/></parameter>
+ <parameter>${jboss.bind.address}</parameter>
+ <parameter>11211</parameter>
+ </value-factory>
+ </value>
+ </entry>
+ <entry>
+ <key>infinispan.server.port</key>
+ <value>
+ <value-factory bean="ServiceBindingManager"
+ method="getIntBinding">
+ <parameter>MemcachedServer</parameter>
+ <parameter><null /></parameter>
+ <parameter>${jboss.bind.address}</parameter>
+ <parameter>11211</parameter>
+ </value-factory>
+ </value>
+ </entry>
+ </map>
+ </parameter> -->
+ <parameter class="java.lang.String">${jboss.infinispan.memcached.properties:META-INF/datagrid-endpoint-memcached.properties}</parameter>
+ <parameter class="org.infinispan.manager.EmbeddedCacheManager">
+ <inject bean="DefaultCacheManager"/>
+ </parameter>
+ </install>
+ </bean>
- <bean name="MemcachedServer" class="org.infinispan.server.memcached.MemcachedServer">
- <install method="start">
- <!--
- <parameter class="java.util.Properties">
- <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
- <entry>
- <key>infinispan.server.host</key>
- <value>
- <value-factory bean="ServiceBindingManager"
- method="getStringBinding">
- <parameter>MemcachedServer</parameter>
- <parameter><null /></parameter>
- <parameter><null/></parameter>
- <parameter>${jboss.bind.address}</parameter>
- <parameter>11211</parameter>
- </value-factory>
- </value>
- </entry>
- <entry>
- <key>infinispan.server.port</key>
- <value>
- <value-factory bean="ServiceBindingManager"
- method="getIntBinding">
- <parameter>MemcachedServer</parameter>
- <parameter><null /></parameter>
- <parameter>${jboss.bind.address}</parameter>
- <parameter>11211</parameter>
- </value-factory>
- </value>
- </entry>
- </map>
- </parameter> -->
- <parameter class="java.lang.String">META-INF/datagrid-endpoint-memcached.properties</parameter>
- <parameter class="org.infinispan.manager.EmbeddedCacheManager"><inject bean="DefaultCacheManager" /></parameter>
- </install>
- </bean>
-
</deployment>
Modified: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/infinispan-configuration.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/infinispan-configuration.xml 2010-10-26 15:32:05 UTC (rev 108921)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/infinispan-configuration.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -1,5 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
+<infinispan
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="urn:infinispan:config:4.2 http://www.infinispan.org/schemas/infinispan-config-4.2.xsd"
+ xmlns="urn:infinispan:config:4.2">
-<infinispan />
+ <global>
+ <transport clusterName="${jboss.infinispan.partition.name:DatagridPartition}-Infinispan">
+ <properties>
+ <property name="configurationFile" value="${jboss.infinispan.jgroups.config:jgroups-datagrid-udp.xml}"/>
+ </properties>
+ </transport>
+ </global>
+</infinispan>
Added: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp-sync.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp-sync.xml (rev 0)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp-sync.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -0,0 +1,75 @@
+<config>
+ <!--
+ TCP based stack, without flow control and without
+ message bundling. TCP stacks are usually used when IP
+ multicasting cannot be used in a network (e.g.routers
+ discard multicast). This configuration should be used
+ instead of 'tcp' above when (1) synchronous calls are
+ used and (2) the message volume (rate and size) is not
+ that large.
+ -->
+ <TCP
+ singleton_name="tcp_sync"
+ start_port="${jboss.jgroups.tcp_sync.tcp_port:7650}"
+ tcp_nodelay="true"
+ loopback="true"
+ recv_buf_size="20000000"
+ send_buf_size="640000"
+ discard_incompatible_packets="true"
+ enable_bundling="false"
+ use_send_queues="false"
+ sock_conn_timeout="300"
+ skip_suspected_members="true"
+ enable_diagnostics="${jboss.jgroups.enable_diagnostics:true}"
+ diagnostics_addr="${jboss.jgroups.diagnostics_addr:224.0.75.75}"
+ diagnostics_port="${jboss.jgroups.diagnostics_port:7500}"
+
+ thread_pool.enabled="true"
+ thread_pool.min_threads="8"
+ thread_pool.max_threads="200"
+ thread_pool.keep_alive_time="5000"
+ thread_pool.queue_enabled="true"
+ thread_pool.queue_max_size="1000"
+ thread_pool.rejection_policy="discard"
+
+ oob_thread_pool.enabled="true"
+ oob_thread_pool.min_threads="20"
+ oob_thread_pool.max_threads="200"
+ oob_thread_pool.keep_alive_time="1000"
+ oob_thread_pool.queue_enabled="false"
+ oob_thread_pool.rejection_policy="discard"/>
+ <!-- Alternative 1: multicast-based automatic discovery. -->
+ <MPING timeout="3000"
+ num_initial_members="3"
+ mcast_addr="${jboss.jgroups.tcp_sync.mping_mcast_addr:231.11.11.11}"
+ mcast_port="${jboss.jgroups.tcp_sync.mping_mcast_port:45701}"
+ ip_ttl="${jgroups.udp.ip_ttl:2}"/>
+ <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
+ of all possible cluster members.
+ <TCPPING timeout="3000"
+ initial_hosts="${jboss.jgroups.tcp_sync.tcpping.initial_hosts:localhost[7650],localhost[7651]}"
+ port_range="1"
+ num_initial_members="3"/>
+ -->
+ <MERGE2 max_interval="100000" min_interval="20000"/>
+ <FD_SOCK start_port="${jboss.jgroups.tcp_sync.fd_sock_port:57650}"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <FD timeout="6000" max_tries="5"/>
+ <VERIFY_SUSPECT timeout="1500"/>
+ <BARRIER/>
+ <pbcast.NAKACK use_mcast_xmit="false" gc_lag="0"
+ retransmit_timeout="300,600,1200,2400,4800"
+ discard_delivered_msgs="true"/>
+ <UNICAST timeout="300,600,1200,2400,3600"/>
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+ max_bytes="400000"/>
+ <VIEW_SYNC avg_send_interval="10000"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <pbcast.GMS print_local_addr="true" join_timeout="3000"
+ view_bundling="true"
+ view_ack_collection_timeout="5000"
+ resume_task_timeout="7500"/>
+ <!-- Non blocking state transfer in Infinispan requires streaming state transfer -->
+ <pbcast.STREAMING_STATE_TRANSFER/>
+ <pbcast.FLUSH timeout="0" start_flush_timeout="10000"/>
+</config>
Added: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp.xml (rev 0)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-tcp.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -0,0 +1,79 @@
+<config>
+ <!--
+ TCP based stack, with flow control and message bundling.
+ TCP stacks are usually used when IP multicasting cannot
+ be used in a network, e.g. because it is disabled (e.g.
+ routers discard multicast)
+ -->
+ <TCP
+ singleton_name="tcp"
+ start_port="${jboss.jgroups.tcp.tcp_port:7600}"
+ tcp_nodelay="true"
+ loopback="true"
+ recv_buf_size="20000000"
+ send_buf_size="640000"
+ discard_incompatible_packets="true"
+ max_bundle_size="64000"
+ max_bundle_timeout="30"
+ use_incoming_packet_handler="true"
+ enable_bundling="false"
+ use_send_queues="false"
+ sock_conn_timeout="300"
+ skip_suspected_members="true"
+ timer.num_threads="12"
+ enable_diagnostics="${jboss.jgroups.enable_diagnostics:true}"
+ diagnostics_addr="${jboss.jgroups.diagnostics_addr:224.0.75.75}"
+ diagnostics_port="${jboss.jgroups.diagnostics_port:7500}"
+
+ thread_pool.enabled="true"
+ thread_pool.min_threads="20"
+ thread_pool.max_threads="200"
+ thread_pool.keep_alive_time="5000"
+ thread_pool.queue_enabled="true"
+ thread_pool.queue_max_size="1000"
+ thread_pool.rejection_policy="discard"
+
+ oob_thread_pool.enabled="true"
+ oob_thread_pool.min_threads="20"
+ oob_thread_pool.max_threads="200"
+ oob_thread_pool.keep_alive_time="1000"
+ oob_thread_pool.queue_enabled="false"
+ oob_thread_pool.rejection_policy="discard"/>
+ <!-- Alternative 1: multicast-based automatic discovery. -->
+ <MPING timeout="3000"
+ num_initial_members="3"
+ mcast_addr="${jboss.jgroups.tcp.mping_mcast_addr:230.11.11.11}"
+ mcast_port="${jgroups.tcp.mping_mcast_port:45700}"
+ ip_ttl="${jgroups.udp.ip_ttl:2}"/>
+ <!-- Alternative 2: non multicast-based replacement for MPING. Requires a static configuration
+ of *all* possible cluster members.
+ <TCPPING timeout="3000"
+ initial_hosts="${jboss.jgroups.tcp.tcpping.initial_hosts:localhost[7600],localhost[7601]}"
+ port_range="1"
+ num_initial_members="3"/>
+ -->
+ <MERGE2 max_interval="100000" min_interval="20000"/>
+ <FD_SOCK start_port="${jboss.jgroups.tcp.fd_sock_port:57600}"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <FD timeout="6000" max_tries="5"/>
+ <VERIFY_SUSPECT timeout="1500"/>
+ <BARRIER/>
+ <pbcast.NAKACK use_mcast_xmit="false" gc_lag="0"
+ retransmit_timeout="300,600,1200,2400,4800"
+ discard_delivered_msgs="true"/>
+ <UNICAST timeout="300,600,1200,2400,3600"/>
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+ max_bytes="400000"/>
+ <VIEW_SYNC avg_send_interval="10000"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <pbcast.GMS print_local_addr="true" join_timeout="3000"
+ view_bundling="true"
+ view_ack_collection_timeout="5000"
+ resume_task_timeout="7500"/>
+ <FC max_credits="2000000" min_threshold="0.10"
+ ignore_synchronous_response="true"/>
+ <FRAG2 frag_size="60000"/>
+ <!-- Non blocking state transfer in Infinispan requires streaming state transfer -->
+ <pbcast.STREAMING_STATE_TRANSFER/>
+ <pbcast.FLUSH timeout="0" start_flush_timeout="10000"/>
+</config>
Added: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-async.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-async.xml (rev 0)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-async.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -0,0 +1,70 @@
+<config>
+ <!--
+ Same as the default 'udp' stack above, except message bundling
+ is enabled in the transport protocol (enable_bundling=true).
+ Useful for services that make high-volume asynchronous
+ RPCs (e.g. high volume JBoss Cache instances configured
+ for REPL_ASYNC) where message bundling may improve performance.
+ -->
+ <UDP
+ singleton_name="udp-async"
+ mcast_port="${jboss.jgroups.udp_async.mcast_port:45689}"
+ mcast_addr="${jboss.jgroups.udp_async.mcast_addr:228.11.11.11}"
+ bind_port="${jboss.jgroups.udp_async.bind_port:55225}"
+ tos="8"
+ ucast_recv_buf_size="20000000"
+ ucast_send_buf_size="640000"
+ mcast_recv_buf_size="25000000"
+ mcast_send_buf_size="640000"
+ loopback="true"
+ discard_incompatible_packets="true"
+ enable_bundling="true"
+ max_bundle_size="64000"
+ max_bundle_timeout="30"
+ ip_ttl="${jgroups.udp.ip_ttl:2}"
+ thread_naming_pattern="cl"
+ timer.num_threads="12"
+ enable_diagnostics="${jboss.jgroups.enable_diagnostics:true}"
+ diagnostics_addr="${jboss.jgroups.diagnostics_addr:224.0.75.75}"
+ diagnostics_port="${jboss.jgroups.diagnostics_port:7500}"
+
+ thread_pool.enabled="true"
+ thread_pool.min_threads="8"
+ thread_pool.max_threads="200"
+ thread_pool.keep_alive_time="5000"
+ thread_pool.queue_enabled="true"
+ thread_pool.queue_max_size="1000"
+ thread_pool.rejection_policy="discard"
+
+ oob_thread_pool.enabled="true"
+ oob_thread_pool.min_threads="8"
+ oob_thread_pool.max_threads="200"
+ oob_thread_pool.keep_alive_time="1000"
+ oob_thread_pool.queue_enabled="false"
+ oob_thread_pool.rejection_policy="discard"/>
+ <PING timeout="2000" num_initial_members="3"/>
+ <MERGE2 max_interval="100000" min_interval="20000"/>
+ <FD_SOCK start_port="${jboss.jgroups.udp_async.fd_sock_port:54225}"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <FD timeout="6000" max_tries="5"/>
+ <VERIFY_SUSPECT timeout="1500"/>
+ <BARRIER/>
+ <pbcast.NAKACK use_mcast_xmit="true" gc_lag="0"
+ retransmit_timeout="300,600,1200,2400,4800"
+ discard_delivered_msgs="true"/>
+ <UNICAST timeout="300,600,1200,2400,3600"/>
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+ max_bytes="400000"/>
+ <VIEW_SYNC avg_send_interval="10000"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <pbcast.GMS print_local_addr="true" join_timeout="3000"
+ view_bundling="true"
+ view_ack_collection_timeout="5000"
+ resume_task_timeout="7500"/>
+ <FC max_credits="2000000" min_threshold="0.10"
+ ignore_synchronous_response="true"/>
+ <FRAG2 frag_size="60000"/>
+ <!-- Non blocking state transfer in Infinispan requires streaming state transfer -->
+ <pbcast.STREAMING_STATE_TRANSFER/>
+ <pbcast.FLUSH timeout="0" start_flush_timeout="10000"/>
+</config>
Added: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-sync.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-sync.xml (rev 0)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp-sync.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -0,0 +1,65 @@
+<config>
+ <!--
+ IP multicast based stack, without flow control and
+ without message bundling. This should be used instead
+ of 'udp' if (1) synchronous calls are used and (2) the
+ message volume (rate and size) is not that large. Don't
+ use this configuration if you send messages at a high
+ sustained rate, or you might run out of memory
+ -->
+ <UDP
+ singleton_name="udp_sync"
+ mcast_port="${jboss.jgroups.udp_sync.mcast_port:45699}"
+ mcast_addr="${jboss.jgroups.udp_sync.mcast_addr:229.11.11.11}"
+ bind_port="${jboss.jgroups.udp_sync.bind_port:55250}"
+ tos="8"
+ ucast_recv_buf_size="20000000"
+ ucast_send_buf_size="640000"
+ mcast_recv_buf_size="25000000"
+ mcast_send_buf_size="640000"
+ loopback="true"
+ discard_incompatible_packets="true"
+ enable_bundling="false"
+ ip_ttl="${jgroups.udp.ip_ttl:2}"
+ enable_diagnostics="${jboss.jgroups.enable_diagnostics:true}"
+ diagnostics_addr="${jboss.jgroups.diagnostics_addr:224.0.75.75}"
+ diagnostics_port="${jboss.jgroups.diagnostics_port:7500}"
+
+ thread_pool.enabled="true"
+ thread_pool.min_threads="8"
+ thread_pool.max_threads="200"
+ thread_pool.keep_alive_time="5000"
+ thread_pool.queue_enabled="true"
+ thread_pool.queue_max_size="1000"
+ thread_pool.rejection_policy="discard"
+
+ oob_thread_pool.enabled="true"
+ oob_thread_pool.min_threads="20"
+ oob_thread_pool.max_threads="200"
+ oob_thread_pool.keep_alive_time="1000"
+ oob_thread_pool.queue_enabled="false"
+ oob_thread_pool.rejection_policy="discard"/>
+ <PING timeout="2000" num_initial_members="3"/>
+ <MERGE2 max_interval="100000" min_interval="20000"/>
+ <FD_SOCK start_port="${jboss.jgroups.udp_sync.fd_sock_port:54250}"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <FD timeout="6000" max_tries="5"/>
+ <VERIFY_SUSPECT timeout="1500"/>
+ <BARRIER/>
+ <pbcast.NAKACK use_mcast_xmit="true" gc_lag="0"
+ retransmit_timeout="300,600,1200,2400,4800"
+ discard_delivered_msgs="true"/>
+ <UNICAST timeout="300,600,1200,2400,3600"/>
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+ max_bytes="400000"/>
+ <VIEW_SYNC avg_send_interval="10000"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <pbcast.GMS print_local_addr="true" join_timeout="3000"
+ view_bundling="true"
+ view_ack_collection_timeout="5000"
+ resume_task_timeout="7500"/>
+ <FRAG2 frag_size="60000"/>
+ <!-- Non blocking state transfer in Infinispan requires streaming state transfer -->
+ <pbcast.STREAMING_STATE_TRANSFER/>
+ <pbcast.FLUSH timeout="0" start_flush_timeout="10000"/>
+</config>
Added: branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp.xml
===================================================================
--- branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp.xml (rev 0)
+++ branches/JBPAPP_5_1_datagrid/cluster/src/installers/datagrid/jgroups-datagrid-udp.xml 2010-10-26 16:59:49 UTC (rev 108922)
@@ -0,0 +1,73 @@
+<config>
+ <!-- UDP transport config meant to be shared between different channels,
+ Message bundling is disabled, as it can add latency to synchronous
+ group RPCs. When data grid is configured for asynchronous RPCs (e.g.
+ REPL_ASYNC, DIST_ASYNC, or INVALIDATION_ASYNC) and do so in high
+ volume may be able to improve performance by configuring the data
+ grid to use the udp-async configuration.
+ When data grid is configured for synchronous RPCs (e.g.
+ REPL_SYNC, DIST_SYNC, or INVALIDATION_SYNC) may be able
+ to improve performance by using the udp-sync configuration which
+ does not include flow control.
+ -->
+ <UDP
+ singleton_name="shared-udp"
+ mcast_port="${jboss.jgroups.udp.mcast_port:45688}"
+ mcast_addr="${jboss.jgroups.udp.mcast_addr:228.11.11.11}"
+ bind_port="${jboss.jgroups.udp.bind_po rt:55200}"
+ tos="8"
+ ucast_recv_buf_size="20000000"
+ ucast_send_buf_size="640000"
+ mcast_recv_buf_size="25000000"
+ mcast_send_buf_size="640000"
+ loopback="true"
+ discard_incompatible_packets="true"
+ enable_bundling="false"
+ ip_ttl="${jgroups.udp.ip_ttl:2}"
+ thread_naming_pattern="cl"
+ timer.num_threads="12"
+ enable_diagnostics="${jboss.jgroups.enable_diagnostics:true}"
+ diagnostics_addr="${jboss.jgroups.diagnostics_addr:224.0.75.75}"
+ diagnostics_port="${jboss.jgroups.diagnostics_port:7500}"
+
+ thread_pool.enabled="true"
+ thread_pool.min_threads="20"
+ thread_pool.max_threads="200"
+ thread_pool.keep_alive_time="5000"
+ thread_pool.queue_enabled="true"
+ thread_pool.queue_max_size="1000"
+ thread_pool.rejection_policy="discard"
+
+ oob_thread_pool.enabled="true"
+ oob_thread_pool.min_threads="20"
+ oob_thread_pool.max_threads="200"
+ oob_thread_pool.keep_alive_time="1000"
+ oob_thread_pool.queue_enabled="false"
+ oob_thread_pool.rejection_policy="discard"/>
+ <PING timeout="2000" num_initial_members="3"/>
+ <MERGE2 max_interval="100000" min_interval="20000"/>
+ <FD_SOCK start_port="${jboss.jgroups.udp.fd_sock_port:54200}"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <FD timeout="6000" max_tries="5"/>
+ <VERIFY_SUSPECT timeout="1500"/>
+ <BARRIER/>
+ <pbcast.NAKACK use_mcast_xmit="true" gc_lag="0"
+ retransmit_timeout="300,600,1200,2400,4800"
+ discard_delivered_msgs="true"/>
+ <UNICAST timeout="300,600,1200,2400,3600"/>
+ <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+ max_bytes="400000"/>
+ <VIEW_SYNC avg_send_interval="10000"/>
+ <!-- Shun deprecated and ignored, hence it was not copied across -->
+ <pbcast.GMS print_local_addr="true"
+ join_timeout="3000"
+ view_bundling="true"
+ view_ack_collection_timeout="5000"
+ resume_task_timeout="7500"/>
+ <FC max_credits="2000000" min_threshold="0.10"
+ ignore_synchronous_response="true"/>
+ <FRAG2 frag_size="60000"/>
+ <!-- Non blocking state transfer in Infinispan requires streaming state transfer -->
+ <pbcast.STREAMING_STATE_TRANSFER/>
+ <pbcast.FLUSH timeout="0" start_flush_timeout="10000"/>
+</config>
More information about the jboss-cvs-commits
mailing list