Runbook

High Oplog Size Causing Storage Pressure in MongoDB

Back to Runbooks

Overview

This incident type refers to a situation where the oplog size in MongoDB has increased significantly and is causing storage pressure. Oplog is the operation log that records all the write operations on a MongoDB instance. When the oplog size becomes too large, it can lead to storage pressure on the system, causing slow performance and even system crashes. It is important to monitor the oplog size and take appropriate actions to avoid this incident type.

Parameters

Debug

Check disk usage

Check MongoDB version

Check the size of the collections in the database

Check the size of the oplog

Check the total size of the database

Check the indexes on the collections

Check the active connections in the database

Check the logs for any errors or warnings

Repair

Implement a data retention policy to delete old data from the database and oplog. This can help in reducing the amount of data being stored and free up storage space for new data.

Learn more

Related Runbooks

Check out these related runbooks to help you debug and resolve similar issues.