ThrottlingException when calling IoT SearchIndex

0

Hi

I have just implemented an api to get the online status for our IoT devices using the SearchIndex operation in AWS IoT. This worked fine during testing, but when it was put into production it failed immediately. I tried manually doing a SearchIndex from the console at the time and got the following error:

> aws iot search-index --index-name "AWS_Things" --query-string "thingName:xxx" --profile yyy

An error occurred (ThrottlingException) when calling the SearchIndex operation (reached max retries: 2): Rate exceeded

How can I find out what the current throttling limit is for this operation?

I found a list of throttling limits in the documentation, but can't see anything that concerns the IoT Index: https://docs.aws.amazon.com/general/latest/gr/iot-core.html#throttling-limits

From our logs found that the API was hit about 90 times per second at the time. We currently have around 430K devices.

We could reduce the load by doing some caching on our side, but without knowing what the limits are, it is difficult to know if that will be sufficient.

Is there perhaps a better way to query the online status of a device?

已提問 2 年前檢視次數 515 次
1 個回答
1
已接受的答案

Hi,

the SearchIndex API is part of AWS IoT Device Management. You can find the quotas at https://docs.aws.amazon.com/general/latest/gr/iot_device_management.html. The quota is adjustable according to the documentation.

KR, P.

AWS
專家
已回答 2 年前

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

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

回答問題指南