https://www.mongodb.com/es/docs/upcoming/reference/command/replsetresizeoplog/
replSetResizeOplog (database command) - Database Manual - MongoDB Docs
Resize the oplog or adjust its retention period dynamically using the `replSetResizeOplog` command without restarting `mongod`.
databasecommandmanualmongodbdocs