[jgroups-users] suspect() only called on coordinator?

Questions/problems related to using JGroups <[email protected]> Mon, 17 Oct 2022 08:30:27 -0400
Newsgroups gmane.comp.java.javagroups.general
Message-ID <mailman.4946.1666011484.1350.javagroups-users@lists.sourceforge.net>
--===============2392834503248220409==
Content-Type: multipart/alternative; boundary="000000000000249a5b05eb3a2677"

--000000000000249a5b05eb3a2677
Content-Type: text/plain; charset="UTF-8"

Hi,

I see that the suspect() method is only called on the coordinator node in
my cluster when another node disappears; no other nodes in the cluster get
the message. Is this the expected behavior? The docs don't say one way or
the other:

http://www.jgroups.org/javadoc4/org/jgroups/MembershipListener.html#suspect(org.jgroups.Address)

We're using jgroups 4.1.8 currently. We wrote code, way back with jgroups
3.4, where every node needs to know if a member left the view suspect or
not. The nodes use this to compare the current cluster size to a "stable"
size that changes more slowly (changes to match cluster size right away if
nodes leave gracefully since that means a human caused it on purpose). So
either suspect() was called on every node back then or we really missed
something during testing. It was seven years ago so we could have
definitely missed it.

Can send more information if you'd like it, but is this the way it's
supposed to work? Is there anything else I can do have suspect() called on
each node?

(If not, I currently think my best option is to have non-coordinator nodes
treat any decrease in view size as suspect until, after the view change,
the coordinator can send them a message telling them that a node left
gracefully and that the current actual size is "stable.")

Thank you,
Bobby

--000000000000249a5b05eb3a2677
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I see that the suspect() method is =
only called on the coordinator node in my cluster when another node disappe=
ars; no other nodes in the cluster get the message. Is this the expected be=
havior? The docs don&#39;t say one way or the other:</div><div><br></div><d=
iv><a href=3D"http://www.jgroups.org/javadoc4/org/jgroups/MembershipListene=
r.html#suspect(org.jgroups.Address)">http://www.jgroups.org/javadoc4/org/jg=
roups/MembershipListener.html#suspect(org.jgroups.Address)</a><br></div><di=
v><br></div><div>We&#39;re using jgroups=C2=A04.1.8 currently. We wrote cod=
e, way back with jgroups 3.4, where every node needs to know if a member le=
ft the view suspect or not. The nodes use this to compare the current clust=
er size to a &quot;stable&quot; size that changes more slowly=C2=A0(changes=
 to match cluster size right away if nodes leave gracefully since that mean=
s a human caused it on purpose). So either suspect() was called on every no=
de back then or we really missed something during testing. It was seven yea=
rs ago so we could have definitely missed it.</div><div><br></div><div>Can =
send more information if you&#39;d like it, but is this the way it&#39;s su=
pposed to work? Is there anything else I can do have suspect() called on ea=
ch node?=C2=A0</div><div><br></div><div>(If not, I currently think my best =
option is to have non-coordinator nodes treat any decrease in view size as =
suspect until, after the view change, the coordinator can send them a messa=
ge telling them that a node left gracefully and that the current actual siz=
e is &quot;stable.&quot;)</div><div><br></div><div>Thank you,</div><div>Bob=
by</div><div><br></div></div>

--000000000000249a5b05eb3a2677--


--===============2392834503248220409==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2392834503248220409==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
javagroups-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javagroups-users

--===============2392834503248220409==--