내용으로 건너뛰기

How can I find out why my client is being throttled when subscribing in mqtt?

0

I have recently begun to see subscribe requests fail with reason "throttled" in the aws iot logs in cloudwatch.

I'm unsure what is causing this or why and need to find out immediately!

How can I learn what the cause for throttling is so I can quickly resolve it?

On that note it would be nice if AWS returned the specific reason instead of the generic "throttled" in the logs!

Example log:

{
    "timestamp": "2023-08-08 22:43:33.727",
    "logLevel": "ERROR",
    "traceId": "X",
    "accountId": "X",
    "status": "Failure",
    "eventType": "Subscribe",
    "protocol": "MQTT",
    "topicName": "users/X/status",
    "clientId": "<clientId>",
    "principalId": "USER",
    "sourceIp": "X",
    "sourcePort": X,
    "reason": "throttled"
}

질문됨 3년 전1.3천회 조회

1개 답변
0

Hi borg. Is it intermittent? I see from your question history that this is probably a chat application? How many clients?

Please also check your CloudWatch metrics. The .Throttle metrics will only exist if you have indeed exceeded that particular quota at some point. Description of metrics here: https://docs.aws.amazon.com/iot/latest/developerguide/metrics_dimensions.html#message-broker-metrics

From the error you've shared, I'm not certain which quota you've exceeded, but please be aware of these limits: https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits

Enter image description here

Enter image description here

And there are other subscription limits if you use shared subscriptions at all.

AWS
전문가

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.