Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-45975

Add --oplogMinRetentionHours argument and use it to limit oplog truncation

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.4
    • Affects Version/s: None
    • Component/s: Replication, Storage
    • None
    • Fully Compatible
    • Execution Team 2020-02-10, Execution Team 2020-02-24
    • 0

      Allow specifying a minimum retention time for the oplog in addition to a maximum size. Oplog entries are only deleted if they both exceed the size cap and the minimum retention time.

      The retention time is specified in hours, allowing fractions. The default is 0 hours (feature is off).

      Use the ReplicationCoordinator::getLastAppliedOpTime() as proxy for "now" and the timestamp derived from Stone::lastRecord as the most recent timestamp in the next oplog range to truncate.

            Assignee:
            andrew.chen@mongodb.com Andrew Chen
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: