MultiSnapshotSyncSpec requires compaction that occurs at the appropriate time.
However, the current retryInterval of AtLeastOnceComplete.askTo can upset it.
Too short retryInterval will cause premature compaction because also read-only operations create new LogEntry(NoOp) to guarantee consistency.
The following shows us that increasing retryInterval can reduce NoOp:
(I extracted and formatted AppendEntries sent by the leader to the follower from the debug log)
MultiSnapshotSyncSpec
requires compaction that occurs at the appropriate time. However, the currentretryInterval
ofAtLeastOnceComplete.askTo
can upset it. Too shortretryInterval
will cause premature compaction because also read-only operations create new LogEntry(NoOp) to guarantee consistency.The following shows us that increasing
retryInterval
can reduceNoOp
: (I extracted and formattedAppendEntries
sent by the leader to the follower from the debug log)retryInterval = 1s
retryInterval = 2s (reduces the number of
NoOp
)