Enum MemoryBasedStateMachine.CompactionMode
Represents log compaction mode.
Namespace: DotNext.Net.Cluster.Consensus.Raft
Assembly: DotNext.Net.Cluster.dll
Syntax
public enum MemoryBasedStateMachine.CompactionMode : byte
Fields
Name | Description |
---|---|
Background | Log compaction should be triggered manually with ForceCompactionAsync(long, CancellationToken) in the background. |
Foreground | Log compaction is executing automatically in parallel with the commit process. |
Incremental | Log compaction is executing for each committed log entry and flushes the snapshot only when the partition overflows. |
Sequential | Log compaction forced automatically during the commit process which tries to squash as many committed entries as possible. |