################################################################################
## ##
## jGroups TCP Cluster Configuration ##
## ##
################################################################################
##
## The default jGroups configuration shipped with uPortal uses TCP Unicast. If
## a different jGroups configuration is needed change the contents of
## uportal-war/src/main/resources/properties/jgroups.xml
##
## The jGroups manaul can be found here:
## http://www.jgroups.org/manual-3.x/html/index.html
##
## Alternative configurations can be found here:
## https://github.com/belaban/JGroups/tree/1df66514dcfd7dd3ea494709184a6430f71e3820/conf
##
## For additional information, see
## http://jasig.275507.n4.nabble.com/Re-uportal-dev-EhCache-and-jgroups-question-td4661918.html
##
## The port to use for the FD_SOCK protocol
## http://www.jgroups.org/manual-3.x/html/protlist.html#FD_SOCK
##
## Note that the default configuration is to use a 50 port range starting at
## the start_port. So if the specified start_port is already in use the port
## number is incremented and the next port is tried.
##
uPortal.cacheManager.jgroups.fd_sock.start_port=7800
##
## The port for the TCP transport to listen on
## http://www.jgroups.org/manual-3.x/html/protlist.html#Transport
##
## Note that the default configuration is to use a 50 port range starting at
## the bind_port. So if the specified bind_port is already in use the port
## number is incremented and the next port is tried.
##
uPortal.cacheManager.jgroups.tcp.bind_port=7800
##
## The length of the random token used for the AUTH protocol of the default jGroups
## configuration. Should be a value between 100 and 1000
##
org.jasig.portal.jgroups.auth.token_length=1000
jgroups.xml调整
<!--
TCP based stack, with flow control and message bundling. This is usually used when IP
multicasting cannot be used in a network, e.g. because it is disabled (routers discard multicast).
Note that TCP.bind_addr and TCPPING.initial_hosts should be set, possibly via system properties, e.g.
-Djgroups.bind_addr=192.168.5.2 and -Djgroups.tcpping.initial_hosts=192.168.5.2[7800]
author: Bela Ban
--><configxmlns="urn:org:jgroups"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.1.xsd"><TCPbind_addr="192.168.0.1"bind_port="${uPortal.cacheManager.jgroups.tcp.bind_port}"loopback="false"recv_buf_size="${tcp.recv_buf_size:20M}"send_buf_size="${tcp.send_buf_size:640K}"max_bundle_size="64K"max_bundle_timeout="30"enable_bundling="true"use_send_queues="true"sock_conn_timeout="300"timer_type="new"timer.min_threads="4"timer.max_threads="10"timer.keep_alive_time="3000"timer.queue_max_size="500"thread_pool.enabled="true"thread_pool.min_threads="1"thread_pool.max_threads="10"thread_pool.keep_alive_time="5000"thread_pool.queue_enabled="false"thread_pool.queue_max_size="100"thread_pool.rejection_policy="discard"oob_thread_pool.enabled="true"oob_thread_pool.min_threads="1"oob_thread_pool.max_threads="8"oob_thread_pool.keep_alive_time="5000"oob_thread_pool.queue_enabled="false"oob_thread_pool.queue_max_size="100"oob_thread_pool.rejection_policy="discard"/><TCPPINGtimeout="3000"initial_hosts="${jgroups.tcpping.initial_hosts:192.168.0.1[7800],192.168.0.2[7801]}"port_range="1"num_initial_members="10"/><MERGE2min_interval="10000"max_interval="30000"/><FD_SOCKstart_port="${uPortal.cacheManager.jgroups.fd_sock.start_port}"/><FDtimeout="3000"max_tries="3"/><VERIFY_SUSPECTtimeout="1500"/><BARRIER/><ENCRYPTencrypt_entire_message="false"sym_init="128"sym_algorithm="AES/ECB/PKCS5Padding"asym_init="512"asym_algorithm="RSA"/><pbcast.NAKACK2use_mcast_xmit="false"discard_delivered_msgs="true"/><UNICAST/><pbcast.STABLEstability_delay="1000"desired_avg_gossip="50000"max_bytes="4M"/><AUTHauth_class="org.jasig.portal.jgroups.auth.HashedDaoAuthToken"/><pbcast.GMSprint_local_addr="true"join_timeout="3"view_bundling="true"/><UFCmax_credits="2M"min_threshold="0.4"/><MFCmax_credits="2M"min_threshold="0.4"/><FRAG2frag_size="60K"/><!--RSVP resend_interval="2000" timeout="10000"/--><pbcast.STATE_TRANSFER/></config>