Hi,

Can the member-timeout of a particular jvm can be used by the monitoring jvm.
Example: jvm1 monitors jvm2, jvm2 monitors jvm 3. Member timeout for jvm1 is 
10, jvm2 is 20 and jvm3 is 30. Suppose the jvm4 is coordinator and its member 
timeout is 30. So what if we want jvm1 should be monitored by other jvm’s for a 
deterministic time like 10 and jvm2 should be monitored for 20.

Right now, I understand that a jvm will be monitored by member timeout of the 
monitoring jvm and coordinator. My requirement is the each jvm should be 
monitored by its own member timeout followed by coordinator’s member-timeout.

In code there is a wait for a member timeout variable in GMSHealthMonitor.java.
if (pingResp.getResponseMsg() == null) {
            pingResp.wait(memberTimeout);
          }

What if we get the member timeout of the jvm which is monitored by this one. We 
can do this in setNextNeighbor function in GMSHealthMonitor.java
But how to get the member-timeout of other jvm. Is it possible?

Thanks,
Aravind Musigumpula

From: Bruce Schuchardt [mailto:[email protected]]
Sent: Tuesday, June 20, 2017 9:16 PM
To: [email protected]
Subject: Re: Different member-timeout for particular jvm’s

It is the membership coordinator that performs the final check on a suspect 
member.  If you have network partition detection enabled or are using 
authentication of peers the role of membership coordinator will be a locator 
(if one is in the system) so in your scenario it will be the Locator that 
performs this check.  It will use its own member-timeout to determine how long 
to wait for a response to a "final check" message to the suspected member.

If the Locator is down then the oldest member in the system will take over the 
role.  This might be server1 if the membership view is [ s1, s2, s4, s3 ].  If 
there is a problem with s2 then s1 will use its own member-timeout setting to 
determine how long to wait for a final-check response from s1.


On 6/20/17 8:18 AM, Aravind Musigumpula wrote:
Hi,

Is there any way to configure different member-timeout for particular jvm’s.

According to my understanding each jvm monitors its neighbor. If any jvm is 
missing heart beat from its neighbor, it waits for member-timeout interval and 
sends a suspect message. Then Coordinator tries to contact that particular jvm, 
if it is unable to connect to that jvm. Coordinator waits for its configured 
member-timeout interval and removes that member if it is unable to connect to 
that jvm.

Scenario:
Locator: member-timeout=10000
Server1: member-timeout=20000
Server2: member-timeout=30000
Server3: member-timeout=20000
Server4: member-timeout=20000

Suppose server1 is monitoring server2. I made server2 stuck. So server1 tries 
to contact the server2 , waits for 20000ms and sends suspect message. Then 
locator tries to connect with server2 , if unable to connect waits for 10000 
and removes server3 from view.

My requirement is I don’t want to kick server2 until 40000ms. This can be done 
by setting 30000 for the jvm which monitors server2. But how can we see that 
this particular jvm monitors server2. In my case every time different jvm is 
monitoring server2.
Please correct me if I am wrong.


Thanks,
Aravind Musigumpula

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at https://www.amdocs.com/about/email-disclaimer

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer 
<https://www.amdocs.com/about/email-disclaimer>

Reply via email to