How to troubleshoot mongo sharded environment like query slow

Hi @giribabu_venugopal and welcome to the MongoDB community!!

Could you help with some details on the issues you are observing:

  1. The error message observed if any while executing the query.
  2. The output for .explain() for which slow query has been observed.
  3. Sharded cluster deployment specifications (like no of shard servers, number of mongos etc)
  4. MongoDB version you are using
  5. Hardware specifications for the sharded cluster. (eg. disc space, RAM etc).
  6. Is the deployment On-Prem or an Atlas deployment.

Also, for troubleshooting slow queries in sharded cluster the following documentation can be of help.

  1. Troubleshoot Sharded Clusters
  2. Indexes for slow query improvements.

Let us know if you have any further queries.

Best Regards
Aasawari

1 Like