public class SegmentedRaftLogMetrics extends RaftLogMetricsBase
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
RAFT_LOG_APPEND_ENTRY_COUNT
Number of entries appended to the raft log
|
static String |
RAFT_LOG_APPEND_ENTRY_LATENCY
Total time taken to append a raft log entry
|
static String |
RAFT_LOG_CACHE_CLOSED_SEGMENTS_NUM
Number of SegmentedRaftLogCache::closedSegments
|
static String |
RAFT_LOG_CACHE_CLOSED_SEGMENTS_SIZE_IN_BYTES
Size of SegmentedRaftLogCache::closedSegments in bytes
|
static String |
RAFT_LOG_CACHE_HIT_COUNT
Count of RaftLogCache Hits
|
static String |
RAFT_LOG_CACHE_MISS_COUNT
Count of RaftLogCache Misses
|
static String |
RAFT_LOG_CACHE_OPEN_SEGMENT_SIZE_IN_BYTES
Size of SegmentedRaftLogCache::openSegment in bytes
|
static String |
RAFT_LOG_DATA_QUEUE_SIZE
Raft log data queue size which at any time gives the number of log related operations in the queue.
|
static String |
RAFT_LOG_FLUSH_COUNT
Number of times of log flushed.
|
static String |
RAFT_LOG_FLUSH_TIME
Time taken to flush log.
|
static String |
RAFT_LOG_LOAD_SEGMENT_LATENCY
Time required to load and process raft log segments during restart
|
static String |
RAFT_LOG_PURGE_METRIC |
static String |
RAFT_LOG_READ_ENTRY_LATENCY
Time required to read a raft log entry from actual raft log file and create a raft log entry
|
static String |
RAFT_LOG_STATEMACHINE_DATA_READ_TIMEOUT_COUNT
Number of statemachine dataApi read timeouts
|
static String |
RAFT_LOG_STATEMACHINE_DATA_WRITE_TIMEOUT_COUNT
Number of statemachine dataApi write timeouts
|
static String |
RAFT_LOG_SYNC_BATCH_SIZE
Number of raft log entries synced in each flush call.
|
static String |
RAFT_LOG_SYNC_TIME
Time taken to log sync.
|
static String |
RAFT_LOG_TASK_ENQUEUE_DELAY
Time taken for a Raft log operation to get into the queue after being requested.
|
static String |
RAFT_LOG_TASK_EXECUTION_TIME
Time taken for a Raft log operation to complete execution.
|
static String |
RAFT_LOG_TASK_QUEUE_TIME
Time spent by a Raft log operation in the queue.
|
static String |
RAFT_LOG_WORKER_QUEUE_SIZE
Raft log worker queue size which at any time gives number of committed entries that are to be synced.
|
CONFIG_LOG_ENTRY_COUNT, METADATA_LOG_ENTRY_COUNT, RATIS_LOG_WORKER_METRICS, RATIS_LOG_WORKER_METRICS_DESC, STATE_MACHINE_LOG_ENTRY_COUNTRATIS_APPLICATION_NAME_METRICS| 构造器和说明 |
|---|
SegmentedRaftLogMetrics(RaftGroupMemberId serverId) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addClosedSegmentsNum(Supplier<Long> cachedSegmentNum) |
void |
addClosedSegmentsSizeInBytes(Supplier<Long> closedSegmentsSizeInBytes) |
void |
addDataQueueSizeGauge(Supplier<Integer> numElements) |
void |
addFlushBatchSizeGauge(Supplier<Integer> flushBatchSize) |
void |
addLogWorkerQueueSizeGauge(Supplier<Integer> queueSize) |
void |
addOpenSegmentSizeInBytes(Supplier<Long> openSegmentSizeInBytes) |
Timekeeper |
getEnqueuedTimer() |
Timekeeper |
getReadEntryTimer() |
Timekeeper |
getSyncTimer() |
void |
onRaftLogAppendEntry() |
void |
onRaftLogCacheHit() |
void |
onRaftLogCacheMiss() |
void |
onRaftLogFlush() |
void |
onStateMachineDataReadTimeout() |
void |
onStateMachineDataWriteTimeout() |
Timekeeper.Context |
startAppendEntryTimer() |
UncheckedAutoCloseable |
startFlushTimer() |
UncheckedAutoCloseable |
startLoadSegmentTimer() |
UncheckedAutoCloseable |
startPurgeTimer() |
UncheckedAutoCloseable |
startQueuingDelayTimer() |
UncheckedAutoCloseable |
startTaskExecutionTimer(Class<?> taskClass) |
createRegistry, onLogEntryCommittedcreate, getHeartbeatSuffix, getRegistry, newCounterMap, newCounterMaps, newHeartbeatCounter, newHeartbeatTimer, newTimerMap, unregisterpublic static final String RAFT_LOG_FLUSH_TIME
public static final String RAFT_LOG_FLUSH_COUNT
public static final String RAFT_LOG_SYNC_TIME
public static final String RAFT_LOG_DATA_QUEUE_SIZE
public static final String RAFT_LOG_WORKER_QUEUE_SIZE
public static final String RAFT_LOG_SYNC_BATCH_SIZE
public static final String RAFT_LOG_CACHE_MISS_COUNT
public static final String RAFT_LOG_CACHE_HIT_COUNT
public static final String RAFT_LOG_CACHE_CLOSED_SEGMENTS_NUM
public static final String RAFT_LOG_CACHE_CLOSED_SEGMENTS_SIZE_IN_BYTES
public static final String RAFT_LOG_CACHE_OPEN_SEGMENT_SIZE_IN_BYTES
public static final String RAFT_LOG_APPEND_ENTRY_LATENCY
public static final String RAFT_LOG_TASK_QUEUE_TIME
public static final String RAFT_LOG_TASK_ENQUEUE_DELAY
public static final String RAFT_LOG_TASK_EXECUTION_TIME
public static final String RAFT_LOG_APPEND_ENTRY_COUNT
public static final String RAFT_LOG_STATEMACHINE_DATA_WRITE_TIMEOUT_COUNT
public static final String RAFT_LOG_STATEMACHINE_DATA_READ_TIMEOUT_COUNT
public static final String RAFT_LOG_READ_ENTRY_LATENCY
public SegmentedRaftLogMetrics(RaftGroupMemberId serverId)
public void addClosedSegmentsSizeInBytes(Supplier<Long> closedSegmentsSizeInBytes)
public void addOpenSegmentSizeInBytes(Supplier<Long> openSegmentSizeInBytes)
public UncheckedAutoCloseable startFlushTimer()
public Timekeeper getSyncTimer()
public void onRaftLogCacheHit()
public void onRaftLogCacheMiss()
public void onRaftLogFlush()
public void onRaftLogAppendEntry()
public Timekeeper.Context startAppendEntryTimer()
public Timekeeper getEnqueuedTimer()
public UncheckedAutoCloseable startQueuingDelayTimer()
public UncheckedAutoCloseable startTaskExecutionTimer(Class<?> taskClass)
public Timekeeper getReadEntryTimer()
public UncheckedAutoCloseable startLoadSegmentTimer()
public UncheckedAutoCloseable startPurgeTimer()
public void onStateMachineDataWriteTimeout()
public void onStateMachineDataReadTimeout()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.