DWQA QuestionsCategory: DatabasePlease ask us a question: can the oplog.rs set in mongodb's local be cleared directly?
Zhang Chi asked 1 month ago

Mongodb under my server host, where the oplog.rs set in local has occupied 10g size, I want to clean it up, can I empty it directly? If it can’t be emptied directly, how should it be cleaned?
Please ask us a question: can the oplog.rs set in mongodb's local be cleared directly?
Please ask us a question: can the oplog.rs set in mongodb's local be cleared directly?

2 Answers
Evian answered 1 month ago

Do not delete a replica set.Official documentsBold text

Siyuan_Zhou answered 1 month ago

@ EvianYes, but the size can be changed. Chinese document:Modify oplog size