描述流时发生异常-流my-kinesis-stream超出速率

时间:2020-10-20 17:47:17

标签: amazon-web-services spring-boot amazon-kinesis

我有一个使用spring-cloud-stream-binder-kinesis v2.0.1.RELEASE的Spring-Boot(2.x)应用程序有时但并非每次都在本地计算机上启动该应用程序时出现以下错误:< / p>

2020-10-20 12:29:57,716 [INFO] [-kinesis-dispatcher-1[0;39m] [org.springframework.integration.aws.inbound.kinesis.KinesisMessageDrivenChannelAdapter[0;39m: Got an exception when describing stream [dev-kinesis-inventory-create]. Backing off for [5000] millis.

com.amazonaws.services.kinesis.model.LimitExceededException: Rate exceeded for stream dev-kinesis-inventory-create under account ?????. (Service: AmazonKinesis; Status Code: 400; Error Code: LimitExceededException; Request ID: eaa421cd-c84c)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1799)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleServiceErrorResponse(AmazonHttpClient.java:1383)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1359)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1139)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:796)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:764)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:738)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:698)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:680)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:544)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:524)
    at com.amazonaws.services.kinesis.AmazonKinesisClient.doInvoke(AmazonKinesisClient.java:2809)
    at com.amazonaws.services.kinesis.AmazonKinesisClient.invoke(AmazonKinesisClient.java:2776)
    at com.amazonaws.services.kinesis.AmazonKinesisClient.invoke(AmazonKinesisClient.java:2765)
    at com.amazonaws.services.kinesis.AmazonKinesisClient.executeDescribeStream(AmazonKinesisClient.java:875)
    at com.amazonaws.services.kinesis.AmazonKinesisClient.describeStream(AmazonKinesisClient.java:846)
    at org.springframework.integration.aws.inbound.kinesis.KinesisMessageDrivenChannelAdapter.lambda$populateShardsForStream$0(KinesisMessageDrivenChannelAdapter.java:535)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

我设置的基本属性包括:

cloud.aws.stack.auto=false
cloud.aws.credentials.instanceProfile=true
cloud.aws.credentials.useDefaultAwsCredentialsChain=true
spring.cloud.bus.enabled=false
spring.cloud.stream.default.content-type=application/json
spring.cloud.stream.default-binder=kinesis
spring.cloud.stream.kinesis.binder.describeStreamBackoff=5000
spring.cloud.loadbalancer.ribbon.enabled=false

spring.cloud.function.definition=processInventoryAdd;processInventoryChange;processInventoryDelete
spring.cloud.stream.bindings.processInventoryAdd-in-0.group=process-inventory-add-group-vdp
spring.cloud.stream.bindings.processInventoryChange-in-0.group=process-inventory-change-group-vdp
spring.cloud.stream.bindings.processInventoryDelete-in-0.group=process-inventory-delete-group-vdp

我已经做了大量研究,而且所有事情似乎都与生产者问题有关,所以我不确定为什么会出现此错误。最终,我建立了消费者渠道,并且无论如何它都能正常工作,我很想知道可能出什么问题了。

0 个答案:

没有答案