No more heartbeat after grouping #763
-
Hi, We deploy service to AWS VPC using:
Below is the protocol stack: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups"
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/jgroups.xsd"
>
<TCP_NIO2 bind_addr="${jgroups.bind_addr:site_local}"
bind_port="${jgroups.bind_port:7800}"
external_addr="${jgroups.external_addr}"
external_port="${jgroups.external_port}"
use_virtual_threads="true"
thread_pool.min_threads="0"
thread_pool.max_threads="200"
thread_pool.keep_alive_time="30000"/>
<RED/>
<TCPPING async_discovery="${jgroups.async_discovery:true}"
initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7800]}"
return_entire_cache="${jgroups.tcpping.return_entire_cache:true}"
port_range="${jgroups.tcp.port_range:0}"/>
<MERGE3/>
<FD_SOCK2 bind_addr="${jgroups.bind_addr:site_local}"/>
<FD_ALL3 timeout="30000" />
<VERIFY_SUSPECT2 timeout="1500" />
<BARRIER />
<pbcast.NAKACK2 use_mcast_xmit="false"/>
<UNICAST3 />
<pbcast.STABLE desired_avg_gossip="50000"
max_bytes="4M"/>
<pbcast.GMS print_local_addr="true"
log_collect_msgs="true"
join_timeout="2000"/>
<UFC max_credits="2M"
min_threshold="0.4"/>
<MFC max_credits="2M"
min_threshold="0.4"/>
<FRAG2 frag_size="60K" />
<!--RSVP resend_interval="2000" timeout="10000"/-->
<pbcast.STATE_TRANSFER/>
</config>
At the beginning, 3 services can form a group, but after 30 seconds, member left one by one, we don't know why. Below are logs from one of 3 services:
Should we open tcp ports Would you please give us some hints? Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi: We found that 2 of 3 services didn't get correct physical address via jgroups.bind_addr. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Hi:
We found that 2 of 3 services didn't get correct physical address via jgroups.bind_addr.
And we solved it by setting jgroups.bind_addr to a network interface, like -Djgroups.bind_addr=match-interface:eth0.
Thank you for your time.