The operations log (local.oplog.rs) stores an append-only stream of write statements transformed into idempotent mutations. Because it operates as a capped collection, older entries roll off when size limits are reached.
If a secondary's replication lag exceeds the primary's oplog window duration, replication breaks permanently, forcing an expensive Initial Sync. Oplog capacity should comfortably buffer 24 to 48 hours of write spikes.