public class RocksDBNativeMetricOptions extends Object implements Serializable
Properties and doc comments are taken from RocksDB documentation. See db.h for more information.
Constructor and Description |
---|
RocksDBNativeMetricOptions() |
Modifier and Type | Method and Description |
---|---|
void |
enableActualDelayedWriteRate()
Returns the current actual delayed write rate.
|
void |
enableBackgroundErrors()
Returns accumulated number of background errors.
|
void |
enableCompactionPending()
Returns 1 if at least one compaction is pending; otherwise, returns 0.
|
void |
enableCurSizeActiveMemTable()
Returns approximate size of active memtable (bytes).
|
void |
enableCurSizeAllMemTables()
Returns approximate size of active and unflushed immutable memtables (bytes).
|
void |
enableEstimateLiveDataSize()
Returns an estimate of the amount of live data in bytes.
|
void |
enableEstimateNumKeys()
Returns estimated number of total keys in the active and unflushed immutable memtables and storage.
|
void |
enableEstimatePendingCompactionBytes()
Returns estimated total number of bytes compaction needs to rewrite to get all levels down
to under target size.
|
void |
enableEstimateTableReadersMem()
Returns estimated memory used for reading SST tables, excluding memory
used in block cache (e.g.,filter and index blocks).
|
void |
enableMemTableFlushPending()
Returns 1 if a memtable flush is pending; otherwise, returns 0.
|
void |
enableNumDeletesActiveMemTable()
Returns total number of delete entries in the active memtable.
|
void |
enableNumDeletesImmMemTables()
Returns total number of delete entries in the unflushed immutable memtables.
|
void |
enableNumEntriesActiveMemTable()
Returns total number of entries in the active memtable.
|
void |
enableNumEntriesImmMemTables()
Returns total number of entries in the unflushed immutable memtables.
|
void |
enableNumImmutableMemTable()
Returns number of immutable memtables that have not yet been flushed.
|
void |
enableNumLiveVersions()
Returns number of live versions.
|
void |
enableNumRunningCompactions()
Returns the number of currently running compactions.
|
void |
enableNumRunningFlushes()
Returns the number of currently running flushes.
|
void |
enableNumSnapshots()
Returns number of unreleased snapshots of the database.
|
void |
enableSizeAllMemTables()
Returns approximate size of active, unflushed immutable, and pinned immutable memtables (bytes).
|
void |
enableTotalSstFilesSize()
Returns total size (bytes) of all SST files.
|
static RocksDBNativeMetricOptions |
fromConfig(Configuration config)
Creates a
RocksDBNativeMetricOptions based on an
external configuration. |
Collection<String> |
getProperties() |
boolean |
isEnabled()
{
RocksDBNativeMetricMonitor } is enabled is any property is set. |
public static final ConfigOption<Boolean> MONITOR_NUM_IMMUTABLE_MEM_TABLES
public static final ConfigOption<Boolean> MONITOR_MEM_TABLE_FLUSH_PENDING
public static final ConfigOption<Boolean> TRACK_COMPACTION_PENDING
public static final ConfigOption<Boolean> MONITOR_BACKGROUND_ERRORS
public static final ConfigOption<Boolean> MONITOR_CUR_SIZE_ACTIVE_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_CUR_SIZE_ALL_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_SIZE_ALL_MEM_TABLES
public static final ConfigOption<Boolean> MONITOR_NUM_ENTRIES_ACTIVE_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_NUM_ENTRIES_IMM_MEM_TABLES
public static final ConfigOption<Boolean> MONITOR_NUM_DELETES_ACTIVE_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_NUM_DELETES_IMM_MEM_TABLE
public static final ConfigOption<Boolean> ESTIMATE_NUM_KEYS
public static final ConfigOption<Boolean> ESTIMATE_TABLE_READERS_MEM
public static final ConfigOption<Boolean> MONITOR_NUM_SNAPSHOTS
public static final ConfigOption<Boolean> MONITOR_NUM_LIVE_VERSIONS
public static final ConfigOption<Boolean> ESTIMATE_LIVE_DATA_SIZE
public static final ConfigOption<Boolean> MONITOR_TOTAL_SST_FILES_SIZE
public static final ConfigOption<Boolean> ESTIMATE_PENDING_COMPACTION_BYTES
public static final ConfigOption<Boolean> MONITOR_NUM_RUNNING_COMPACTIONS
public static final ConfigOption<Boolean> MONITOR_NUM_RUNNING_FLUSHES
public static final ConfigOption<Boolean> MONITOR_ACTUAL_DELAYED_WRITE_RATE
public static RocksDBNativeMetricOptions fromConfig(Configuration config)
RocksDBNativeMetricOptions
based on an
external configuration.public void enableNumImmutableMemTable()
public void enableMemTableFlushPending()
public void enableCompactionPending()
public void enableBackgroundErrors()
public void enableCurSizeActiveMemTable()
public void enableCurSizeAllMemTables()
public void enableSizeAllMemTables()
public void enableNumEntriesActiveMemTable()
public void enableNumEntriesImmMemTables()
public void enableNumDeletesActiveMemTable()
public void enableNumDeletesImmMemTables()
public void enableEstimateNumKeys()
public void enableEstimateTableReadersMem()
public void enableNumSnapshots()
public void enableNumLiveVersions()
public void enableEstimateLiveDataSize()
public void enableTotalSstFilesSize()
public void enableEstimatePendingCompactionBytes()
public void enableNumRunningCompactions()
public void enableNumRunningFlushes()
public void enableActualDelayedWriteRate()
public Collection<String> getProperties()
public boolean isEnabled()
RocksDBNativeMetricMonitor
} is enabled is any property is set.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.