public class MemberHeartbeatPlugin extends DiagnosticsPlugin
Normally, heartbeats are sent at a fixed frequency, but if there is a deviation in this frequency, it could indicate problems.
Modifier and Type | Field and Description |
---|---|
static HazelcastProperty |
MAX_DEVIATION_PERCENTAGE
The maximum allowed deviation.
|
static HazelcastProperty |
PERIOD_SECONDS
The period in seconds the MemberHeartbeatPlugin runs.
|
logger
Constructor and Description |
---|
MemberHeartbeatPlugin(NodeEngineImpl nodeEngine) |
Modifier and Type | Method and Description |
---|---|
long |
getPeriodMillis()
Returns the period of executing the monitor in millis.
|
void |
onStart() |
void |
run(DiagnosticsLogWriter writer) |
public static final HazelcastProperty PERIOD_SECONDS
This plugin is very cheap to use.
This plugin will only output if there is the max deviation is exceeded.
Setting the value high will lead to not seeing smaller deviations. E.g if this plugin runs every minute, then it will not see a lot of small deviations. The default of 10 seconds is ok since it will not generate too much overhead and noise and in most cases it is the big outliers we are interested in.
If set to 0, the plugin is disabled.
public static final HazelcastProperty MAX_DEVIATION_PERCENTAGE
public MemberHeartbeatPlugin(NodeEngineImpl nodeEngine)
public long getPeriodMillis()
DiagnosticsPlugin
If a monitor is disabled, 0 is returned.
If a monitor should run only once, a negative value is returned. This is
useful for 'static' monitors like the SystemPropertiesPlugin
that run at the beginning of a log file but their contents will not
change.
getPeriodMillis
in class DiagnosticsPlugin
public void onStart()
onStart
in class DiagnosticsPlugin
public void run(DiagnosticsLogWriter writer)
run
in class DiagnosticsPlugin
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.