警告:JGRP000014:Discovery.timeout 已被弃用:应改用 GMS.join_timeout
WARNING: JGRP000014: Discovery.timeout has been deprecated: GMS.join_timeout should be used instead
WARNING: JGRP000014: Discovery.timeout has been deprecated: GMS.join_timeout should be used instead
如果不是我直接定义的,为什么我会得到这个?至少我不这么认为,看起来我们正在使用 GMS.join_timeout
这是配置方式
log().info(
"Starting JChannel for Distributable Sessions config:{} with channel name of {}",
configString,
channelName
);
jChannel = new JChannel(new PlainConfigurator(configString));
jChannel.connect(channelName);
replicatedSessionIds = new ReplicatedHashMap<>( jChannel );
sessionIds = replicatedSessionIds;
if (! sessionDistributedTest )
{
replicatedSessionIds.start(TIME_OUT);
}
以及该日志消息的输出
Starting JChannel for Distributable Sessions config:TCP(bind_addr=172.20.0.4;bind_port=7800;max_bundle_size=200000):TCPPING(timeout=3000;initial_hosts=dex.master[7800],dex.slave[7800];port_range=1):VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK2(use_mcast_xmit=false;discard_delivered_msgs=true):pbcast.STABLE(stability_delay=1000;desired_avg_gossip=50000;max_bytes=400000):pbcast.GMS(print_local_addr=true;join_timeout=2000;view_bundling=true):pbcast.STATE_SOCK with channel name of Dex_SpringSecurity_Cluster_Dev
jgroups 3.6.13
您实际上 do 在 configString
中定义 timeout
传递给通道构造函数:TCPPING.timeout
.
我有 2 个建议给你:
- 切换到基于XML的配置; 4.0
不再支持纯文本配置
- 使用 3.6.13 附带的
tcp.xml
并根据您的喜好进行修改。您的配置看起来有点过时了。
WARNING: JGRP000014: Discovery.timeout has been deprecated: GMS.join_timeout should be used instead
如果不是我直接定义的,为什么我会得到这个?至少我不这么认为,看起来我们正在使用 GMS.join_timeout
这是配置方式
log().info(
"Starting JChannel for Distributable Sessions config:{} with channel name of {}",
configString,
channelName
);
jChannel = new JChannel(new PlainConfigurator(configString));
jChannel.connect(channelName);
replicatedSessionIds = new ReplicatedHashMap<>( jChannel );
sessionIds = replicatedSessionIds;
if (! sessionDistributedTest )
{
replicatedSessionIds.start(TIME_OUT);
}
以及该日志消息的输出
Starting JChannel for Distributable Sessions config:TCP(bind_addr=172.20.0.4;bind_port=7800;max_bundle_size=200000):TCPPING(timeout=3000;initial_hosts=dex.master[7800],dex.slave[7800];port_range=1):VERIFY_SUSPECT(timeout=1500):pbcast.NAKACK2(use_mcast_xmit=false;discard_delivered_msgs=true):pbcast.STABLE(stability_delay=1000;desired_avg_gossip=50000;max_bytes=400000):pbcast.GMS(print_local_addr=true;join_timeout=2000;view_bundling=true):pbcast.STATE_SOCK with channel name of Dex_SpringSecurity_Cluster_Dev
jgroups 3.6.13
您实际上 do 在 configString
中定义 timeout
传递给通道构造函数:TCPPING.timeout
.
我有 2 个建议给你:
- 切换到基于XML的配置; 4.0 不再支持纯文本配置
- 使用 3.6.13 附带的
tcp.xml
并根据您的喜好进行修改。您的配置看起来有点过时了。