Perform log compaction (snapshotting) in the background.
Ensure the leader properly snapshots its log when exceeding the maximum log size.