public class PersistenceMetricsImpl extends Object implements PersistenceMetricsMXBean
| Constructor and Description |
|---|
PersistenceMetricsImpl(boolean metricsEnabled,
long rateTimeInterval,
int subInts) |
| Modifier and Type | Method and Description |
|---|---|
void |
disableMetrics()
Disables persistence metrics collection on an Apache Ignite node.
|
void |
enableMetrics()
Enables persistence metrics collection on an Apache Ignite node.
|
long |
getLastCheckpointCopiedOnWritePagesNumber()
Gets the number of pages copied to a temporary checkpoint buffer during the last checkpoint.
|
long |
getLastCheckpointDataPagesNumber()
Gets the number of data pages written during the last checkpoint.
|
long |
getLastCheckpointFsyncDuration()
Gets the duration of the sync phase of the last checkpoint in milliseconds.
|
long |
getLastCheckpointingDuration()
Gets the duration of the last checkpoint in milliseconds.
|
long |
getLastCheckpointLockWaitDuration()
Gets the duration of last checkpoint lock wait in milliseconds.
|
long |
getLastCheckpointMarkDuration()
Gets the duration of last checkpoint mark phase in milliseconds.
|
long |
getLastCheckpointPagesWriteDuration()
Gets the duration of last checkpoint pages write phase in milliseconds.
|
long |
getLastCheckpointTotalPagesNumber()
Gets the total number of pages written during the last checkpoint.
|
int |
getWalArchiveSegments()
Gets the current number of WAL segments in the WAL archive.
|
float |
getWalFsyncTimeAverage()
Gets the average WAL fsync duration in microseconds over the last time interval.
|
float |
getWalLoggingRate()
Gets the average number of WAL records per second written during the last time interval.
|
float |
getWalWritingRate()
Gets the average number of bytes per second written during the last time interval.
|
boolean |
metricsEnabled() |
void |
onCheckpoint(long lockWaitDuration,
long markDuration,
long pagesWriteDuration,
long fsyncDuration,
long duration,
long totalPages,
long dataPages,
long cowPages) |
void |
onFsync(long nanoTime) |
void |
onWalBytesWritten(int size) |
void |
onWalRecordLogged() |
void |
rateTimeInterval(long rateTimeInterval)
Sets time interval for rate-based metrics.
|
void |
subIntervals(int subInts)
Sets a number of sub-intervals the whole
PersistenceMetricsMXBean.rateTimeInterval(long) will be split into to calculate
rate-based metrics. |
void |
wal(IgniteWriteAheadLogManager wal) |
public PersistenceMetricsImpl(boolean metricsEnabled,
long rateTimeInterval,
int subInts)
metricsEnabled - Metrics enabled flag.rateTimeInterval - Rate time interval.subInts - Number of sub-intervals.public float getWalLoggingRate()
The length of time interval is configured via PersistentStoreConfiguration.setRateTimeInterval(long)
configurartion property.
The number of subintervals is configured via PersistentStoreConfiguration.setSubIntervals(int)
configuration property.
getWalLoggingRate in interface PersistenceMetricsMXBeangetWalLoggingRate in interface PersistenceMetricspublic float getWalWritingRate()
PersistentStoreConfiguration.setRateTimeInterval(long)
configurartion property.
The number of subintervals is configured via PersistentStoreConfiguration.setSubIntervals(int)
configuration property.getWalWritingRate in interface PersistenceMetricsMXBeangetWalWritingRate in interface PersistenceMetricspublic int getWalArchiveSegments()
getWalArchiveSegments in interface PersistenceMetricsMXBeangetWalArchiveSegments in interface PersistenceMetricspublic float getWalFsyncTimeAverage()
The length of time interval is configured via PersistentStoreConfiguration.setRateTimeInterval(long)
configurartion property.
The number of subintervals is configured via PersistentStoreConfiguration.setSubIntervals(int)
configuration property.
getWalFsyncTimeAverage in interface PersistenceMetricsMXBeangetWalFsyncTimeAverage in interface PersistenceMetricspublic long getLastCheckpointingDuration()
getLastCheckpointingDuration in interface PersistenceMetricsMXBeangetLastCheckpointingDuration in interface PersistenceMetricspublic long getLastCheckpointLockWaitDuration()
getLastCheckpointLockWaitDuration in interface PersistenceMetricsMXBeangetLastCheckpointLockWaitDuration in interface PersistenceMetricspublic long getLastCheckpointMarkDuration()
getLastCheckpointMarkDuration in interface PersistenceMetricsMXBeangetLastCheckpointMarkDuration in interface PersistenceMetricspublic long getLastCheckpointPagesWriteDuration()
getLastCheckpointPagesWriteDuration in interface PersistenceMetricsMXBeangetLastCheckpointPagesWriteDuration in interface PersistenceMetricspublic long getLastCheckpointFsyncDuration()
getLastCheckpointFsyncDuration in interface PersistenceMetricsMXBeangetLastCheckpointFsyncDuration in interface PersistenceMetricspublic long getLastCheckpointTotalPagesNumber()
getLastCheckpointTotalPagesNumber in interface PersistenceMetricsMXBeangetLastCheckpointTotalPagesNumber in interface PersistenceMetricspublic long getLastCheckpointDataPagesNumber()
getLastCheckpointDataPagesNumber in interface PersistenceMetricsMXBeangetLastCheckpointDataPagesNumber in interface PersistenceMetricspublic long getLastCheckpointCopiedOnWritePagesNumber()
getLastCheckpointCopiedOnWritePagesNumber in interface PersistenceMetricsMXBeangetLastCheckpointCopiedOnWritePagesNumber in interface PersistenceMetricspublic void enableMetrics()
enableMetrics in interface PersistenceMetricsMXBeanpublic void disableMetrics()
disableMetrics in interface PersistenceMetricsMXBeanpublic void rateTimeInterval(long rateTimeInterval)
PersistentStoreConfiguration.setRateTimeInterval(long) configuration property.rateTimeInterval in interface PersistenceMetricsMXBeanrateTimeInterval - Time interval (in milliseconds) used for allocation and eviction rates calculations.public void subIntervals(int subInts)
PersistenceMetricsMXBean.rateTimeInterval(long) will be split into to calculate
rate-based metrics. Identical to setting PersistentStoreConfiguration.setSubIntervals(int) configuration
property.subIntervals in interface PersistenceMetricsMXBeansubInts - A number of sub-intervals.public void wal(IgniteWriteAheadLogManager wal)
wal - Write-ahead log manager.public boolean metricsEnabled()
public void onCheckpoint(long lockWaitDuration,
long markDuration,
long pagesWriteDuration,
long fsyncDuration,
long duration,
long totalPages,
long dataPages,
long cowPages)
lockWaitDuration - Lock wait duration.markDuration - Mark duration.pagesWriteDuration - Pages write duration.fsyncDuration - Total checkpoint fsync duration.duration - Total checkpoint duration.totalPages - Total number of all pages in checkpoint.dataPages - Total number of data pages in checkpoint.cowPages - Total number of COW-ed pages in checkpoint.public void onWalRecordLogged()
public void onWalBytesWritten(int size)
size - Size written.public void onFsync(long nanoTime)
nanoTime - Fsync nano time.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017