public class ProbabilisticQuorumConfigBuilder extends QuorumConfigBuilder
QuorumConfig
configured with ProbabilisticQuorumFunction
that
considers members present in the context of a quorum using a probabilistic, adaptive quorum function.Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_HEARTBEAT_INTERVAL_MILLIS
Default value of heartbeat interval (in milliseconds).
|
static long |
DEFAULT_HEARTBEAT_PAUSE_MILLIS
Default duration in milliseconds corresponding to number of potentially lost/delayed heartbeats that will
be accepted before considering it to be an anomaly.
|
static long |
DEFAULT_MIN_STD_DEVIATION
Default minimum standard deviation (in milliseconds) to use for the normal distribution used when
calculating phi.
|
static double |
DEFAULT_PHI_THRESHOLD
Default threshold for suspicion (φ) level.
|
static int |
DEFAULT_SAMPLE_SIZE
Default number of samples to use for calculation of mean and standard deviation of inter-arrival times.
|
enabled, size
Modifier and Type | Method and Description |
---|---|
QuorumConfig |
build() |
ProbabilisticQuorumConfigBuilder |
withAcceptableHeartbeatPauseMillis(long acceptableHeartbeatPauseMillis)
Duration in milliseconds corresponding to number of potentially lost/delayed heartbeats that will be accepted
before considering it to be an anomaly.
|
ProbabilisticQuorumConfigBuilder |
withHeartbeatIntervalMillis(long heartbeatIntervalMillis)
Bootstrap the stats with heartbeats that corresponds to this duration in milliseconds, with a rather high
standard deviation (since environment is unknown in the beginning).
|
ProbabilisticQuorumConfigBuilder |
withMaxSampleSize(int maxSampleSize)
Number of samples to use for calculation of mean and standard deviation of inter-arrival times.
|
ProbabilisticQuorumConfigBuilder |
withMinStdDeviationMillis(long minStdDeviationMillis)
Minimum standard deviation (in milliseconds) to use for the normal distribution used when calculating phi.
|
ProbabilisticQuorumConfigBuilder |
withSuspicionThreshold(double suspicionThreshold)
Threshold for suspicion (φ) level.
|
enabled, withQuorumSize
public static final double DEFAULT_PHI_THRESHOLD
public static final int DEFAULT_SAMPLE_SIZE
public static final long DEFAULT_MIN_STD_DEVIATION
public static final long DEFAULT_HEARTBEAT_PAUSE_MILLIS
public static final long DEFAULT_HEARTBEAT_INTERVAL_MILLIS
public ProbabilisticQuorumConfigBuilder withSuspicionThreshold(double suspicionThreshold)
public ProbabilisticQuorumConfigBuilder withMaxSampleSize(int maxSampleSize)
public ProbabilisticQuorumConfigBuilder withMinStdDeviationMillis(long minStdDeviationMillis)
public ProbabilisticQuorumConfigBuilder withAcceptableHeartbeatPauseMillis(long acceptableHeartbeatPauseMillis)
public ProbabilisticQuorumConfigBuilder withHeartbeatIntervalMillis(long heartbeatIntervalMillis)
public QuorumConfig build()
build
in class QuorumConfigBuilder
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.