Skip to content

Implement log compaction for AOF snapshot #4

@steadyfall

Description

@steadyfall

The AOF (append-only file) snapshot grows continuously due to its append-only design, risking increased disk usage and performance issues. A systematic log compaction mechanism is needed to periodically rewrite the log and remove obsolete data.

Steps to Reproduce

  1. Run the application and allow log entries to accumulate in the AOF snapshot over time.

Expected Behavior

The log file size should remain manageable with periodic compaction.

Proposed Fix

Implement a routine to compact and rewrite the AOF snapshot, removing outdated entries.

Additional Context

Consider performance impact and ensure data integrity during the compaction process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions