cache.jgourps.xml Maven / Gradle / Ivy
<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.6.xsd"> <!-- JVM需配置禁止使用IPv6,JVM启动参数添加:-Djava.net.preferIPv4Stack=true,若使用Tomcat运行项目,则在catalina.sh文件中添加该启动参数:JAVA_OPTS --> <!-- 组播相关: 1.组播IP地址范围:224.0.0.0~239.255.255.255,其中224开头的为保留地址,239开头的为实验用地址。这些地址不能随便使用,它们也是有权威部门(IANA)管理,类似于TCP,UDP的保留端口,建议使用时避开。 224.0.0.0 基础地址,保留,不能被任何群组使用 224.0.0.1 全主机群组(all hosts group),指参加本IP组播的所有主机、路由器、网关(不是指整个互连网) 224.0.0.2 本子网上的路由器(all routers on a LAN) 224.0.0.4 DVMRP*路由器(DVMRP Routers) 224.0.0.5 本子网上的OSPF*路由器(all OSPF routers on a LAN) 224.0.0.6 本子网上被指定的OSPF路由器(all designated OSPF routers on a LAN) 224.0.1.1 网络时间协议(Network Time Protocol,NTP) 224.0.5.000-224.0.5.127 蜂窝式数字信息包数据发送主机组(CDPD Groups) 224.1.0.0-SNAPSHOT-224.1.255.255 基于流的协议组播主机组(Stream Protocol Multicast Groups) 224.2.0.0-224.2.255.255 多媒体会议呼叫(Multimedia Conference Calls) --> <UDP mcast_addr="${jgroups.udp.mcast_addr:238.9.9.9}" mcast_port="${jgroups.udp.mcast_port:18001}" ip_ttl="${jgroups.udp.ip_ttl:2}" tos="8" ucast_recv_buf_size="20M" ucast_send_buf_size="640K" mcast_recv_buf_size="25M" mcast_send_buf_size="640K" max_bundle_size="64k" max_bundle_timeout="30" enable_diagnostics="true" thread_naming_pattern="cl" 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="2" thread_pool.max_threads="8" thread_pool.keep_alive_time="5000" thread_pool.queue_enabled="true" thread_pool.queue_max_size="10000" 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="Run" /> <PING /> <MERGE2 max_interval="30000" min_interval="10000" /> <FD_SOCK /> <FD_ALL /> <VERIFY_SUSPECT timeout="1500" /> <BARRIER /> <pbcast.NAKACK use_mcast_xmit="true" retransmit_timeout="300,600,1200" discard_delivered_msgs="true"/> <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" max_bytes="4M"/> <pbcast.GMS print_local_addr="true" print_physical_addrs="true" join_timeout="3000" view_bundling="true" max_join_attempts="3"/> <UFC max_credits="2M" min_threshold="0.4"/> <MFC max_credits="2M" min_threshold="0.4"/> <FRAG2 frag_size="60K" /> <pbcast.STATE_TRANSFER /> </config>