Oplog.rs Size Too Large – Running Out of Storage

I’m running a MongoDB Atlas M2 cluster, and I’m facing an issue where my ‘oplog.rs’ size is growing too large, consuming most of my available storage. This is causing my database to run out of space quickly.

I would like to understand:

  1. Why is my ‘oplog.rs’ growing so large?
  2. How can I control or reduce its size on an M2 cluster?
  3. Are there any best practices to prevent this issue in the future?

I would appreciate any insights or recommendations on how to manage oplog size effectively. Thanks in advance!