[
http://opencast.jira.com/browse/MH-8081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28341#comment-28341
]
Rubén Pérez Vázquez commented on MH-8081:
-----------------------------------------
So I completely misunderstood and your "patch" is really a "fix". I'm so sorry
about my mistake.
Anyway, to make my post worthwhile at least, maybe you can adapt the code I
proposed to implement the "kindness" you talk about:
for service in ONLINE_SERVICES {
if IS_ONLINE(service) {
// The service is currently available
if service.unavail_counter > 0 {
// The service is back again
service.unavail_counter = 0;
}
} else {
// The service is NOT currently available
service.unavail_counter += 1;
if service.unavail_counter >= MAX_UNAVAIL {
ONLINE_SERVICES.delete(service);
}
}
}
I.e: anytime you find an unavailable system, increment its counter in 1, until
it reaches the maximum, being considered officially "offline". If the service
goes online before reaching that limit, we set the counter to 0 and that's all.
What do you think?
> Distributed servers go offline in service registry after heatbeat check
> -----------------------------------------------------------------------
>
> Key: MH-8081
> URL: http://opencast.jira.com/browse/MH-8081
> Project: Matterhorn Project
> Issue Type: Bug
> Components: Administrative Tools
> Affects Versions: 1.2
> Reporter: Adam McKenzie
> Assignee: Greg Logan
> Priority: Release Blocker
> Fix For: 1.2.1, 1.3
>
> Attachments: opencast.log, serviceRegistryPatch1.2
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://opencast.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________