Runbook

MongoDB index corruption causing query performance issues.

Back to Runbooks

Overview

This incident type refers to a problem in a MongoDB database where the index becomes corrupted, causing a significant decrease in query performance. This can result in slow query times, timeouts, or even complete failure to retrieve data. This issue can affect any application or service that relies on the affected MongoDB database. It is important to resolve this issue quickly to minimize the impact on end-users and ensure the reliability of the affected application or service.

Parameters

Debug

Check MongoDB version

Check MongoDB log for any error messages

Check MongoDB server status

Check the status of all indexes on a specific collection

Repair corrupted indexes on a specific collection

Repair

Perform a complete backup of the database before attempting any remediation procedures.

If the index corruption is not easily fixable, consider rebuilding the indexes from scratch. This can be done using the "reindex" command in MongoDB.

Learn more

Related Runbooks

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