Index build is taking very long and failing on Documentdb. How to resolve that?

0

Hi,

I am trying to create DocumentDB Multi-Key index. It is getting failed and taking too much time. Please help me to resolve that.

Sombir
已提问 10 个月前372 查看次数
1 回答
3
已接受的回答

There could be 2 possible reasons.

  • Amazon DocumentDB utilizes local storage on an instance as part of the index creation process. You can monitor this disk usage using the FreeLocalStorage CloudWatch metric (CloudWatch -> Metrics -> DocDB -> Instance Metrics). When an index build consumes all of the local disk and fails, you will receive an error. You can try to scale the instance and then re try index creation.
  • Background index builds in Amazon DocumentDB do not start until all queries on the primary instance that started before the index build was initiated complete executing. If there is a long running query, background index builds will block until the query finishes and thus can take longer than expected to complete. This is true even if collections are empty

https://docs.aws.amazon.com/documentdb/latest/developerguide/troubleshooting.index-creation.html

AWS
已回答 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则