public static final class RogLogCompactor.Params extends RogLogCheckpointReaderParams
Compactor parameters are set as properties in the StorePersisterDescriptor prefixed with
'compactor.' The paramateres may be set with StorePersisterDescriptor.setCompactorProperty(String, String).
RogLogCheckpointReaderParams.OffheapBufferingLoadStrategy| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_COMPACT_ON_START
Property used to indicate that log compaction should automatically triggered on start
|
static boolean |
PROP_COMPACT_ON_START_DEFAULT |
static String |
PROP_COMPACTION_THRESHOLD
Property used to indicate the log compaction threshold
The log compaction threshold is the size (in megabytes) that
triggers a log compaction.
|
static String |
PROP_COMPACTION_THRESHOLD_DEFAULT |
static String |
PROP_MAX_COMPACTION_WINDOW_SIZE
Property used to indicate the max log compaction window size
The log compaction window is the approximate maximum size
(in megabytes) rounded up to the end of the nearest checkpoint
that a compact operation uses to determine how many log entries
it will hold in memory.
|
static String |
PROP_MAX_COMPACTION_WINDOW_SIZE_DEFAULT |
PROP_CONFLATE_CHECKPOINTS, PROP_CONFLATE_CHECKPOINTS_DEFAULT, PROP_ENTRY_RETENTION_THRESHOLD, PROP_ENTRY_RETENTION_THRESHOLD_DEFAULT, PROP_MEM_MAPPED_READ_BUFFER_LOAD, PROP_MEM_MAPPED_READ_BUFFER_LOAD_DEFAULT, PROP_MEM_MAPPED_READ_BUFFER_MAX_SIZE, PROP_MEM_MAPPED_READ_BUFFER_MAX_SIZE_DEFAULT, PROP_OFF_HEAP_BUFFERING, PROP_OFF_HEAP_BUFFERING_DEFAULT, PROP_OFF_HEAP_BUFFERING_LOAD_STRATEGY, PROP_OFF_HEAP_BUFFERING_LOAD_STRATEGY_DEFAULT, PROP_OFF_HEAP_BUFFERING_MAX_PAGE_SIZE, PROP_OFF_HEAP_BUFFERING_MAX_PAGE_SIZE_DEFAULT, PROP_SKIP_CDC_CHECKPOINTED, PROP_SKIP_CDC_CHECKPOINTED_DEFAULT| Modifier and Type | Method and Description |
|---|---|
static RogLogCompactor.Params |
create(Properties props)
Loads cdc parameters from the give set of log descriptor properties.
|
public static final String PROP_COMPACTION_THRESHOLD
The log compaction threshold is the size (in megabytes) that triggers a log compaction. The act of compacting a log will compact as many complete checkpoints in the log and switch the live log over to the compacted log. A threshold value of <= 0 disables live log compaction.
public static final String PROP_COMPACTION_THRESHOLD_DEFAULT
public static final String PROP_MAX_COMPACTION_WINDOW_SIZE
The log compaction window is the approximate maximum size (in megabytes) rounded up to the end of the nearest checkpoint that a compact operation uses to determine how many log entries it will hold in memory. The more entries the compactor can hold in memory while performing a compaction, the more efficient the compact operation will be.
Note:RogLogCompactor.PROP_CONFLATE_CHECKPOINTS is
false the compaction window is ignored in favor of
a full conflation of the log in a non-windowed fashion. In this
case heap memory usage is governed by the RogLogCompactor.PROP_ENTRY_RETENTION_THRESHOLD
property and PROP_OFF_HEAP_BUFFERING
settings.
public static final String PROP_MAX_COMPACTION_WINDOW_SIZE_DEFAULT
public static final String PROP_COMPACT_ON_START
public static final boolean PROP_COMPACT_ON_START_DEFAULT
public static RogLogCompactor.Params create(Properties props)
This method looks for cdc properties identifed with with the "cdc." prefix.
props - The properties to load fromCopyright © 2019 Neeve Research, LLC. All Rights Reserved.