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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南