Package org.openspaces.core.multicluster.internal.health
package org.openspaces.core.multicluster.internal.health
-
ClassDescriptionTells the router whether a cluster is currently worth sending traffic to.One cluster's health, as a small state machine over a sliding window of failures.A state change, captured atomically.Decides what to do when an operation fails, and promotes a new active cluster when the current one dies.What the caller should do about a failed operation.Give up and let the exception propagate.Try again on a different cluster - the newly promoted active one.Try the same cluster again after waiting.Told when a cluster fails, so the proxy can update its membership lists and fire the corresponding events.Notified when the active cluster changes, so the proxy can inform its own listeners.Notified when the cluster serving
READ_ACTIVEreads changes - because a pinned read cluster failed over, or because reads were following the active cluster and it moved.Decides what a thrown exception says about the cluster, as opposed to the request.What an exception tells us about the cluster that threw it.Keeps a live picture of which clusters are answering, from the outcome of the operations routed to them: every routed operation reports success or failure, so a dead cluster is noticed by the first request that hits it.One health transition, with the handling that goes with it.Notified when a cluster changes state, so failover can react immediately.Exponential backoff with jitter, for retrying a mutation against a cluster that was briefly unavailable.What to do about a cluster that cannot be reached - the one place the rule lives.The handling for one unreachable cluster.What noticed that the cluster could not be reached.