Original Question or Issue: |
The Auto Archive Audit Database feature is enabled and working, but the storage space isn't reduced. |
Environment: |
|
Steps to Reproduce: |
The Auto Archive Audit Database is enabled. MongoDB is deployed in a replica set. |
Error or Log Message: | Storage space consumption is not reduced. |
Defect or Enhancement Number: |
|
Cause: |
MongoDB does not release the space but keeps it for new entries to be added. |
Resolution or Workaround: |
If you need to reclaim the space, please find below the procedure to compact the audit collection in a MongoDB replica set:
|
Notes: | Please execute the above procedure during a maintenance window and take a backup before that. |