【发布时间】:2023-02-07 21:40:54
【问题描述】:
尝试调用 aws lambda 函数但出现以下错误:
java.util.concurrent.CompletionException: software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: Acquire operation took longer than the configured maximum time. This indicates that a request cannot get a connection from the pool within the specified maximum time. This can be due to high request rate.
Consider taking any of the following actions to mitigate the issue: increase max connections, increase acquire timeout, or slowing the request rate.
在调用 lambda 函数的 aws sdk v2 java 中使用 awsasyncclient
LambdaAsyncClient client = LambdaAsyncClient.builder().region(region_lambda).build();
如何增加最大连接数或增加空闲时间?这里可以做什么?
【问题讨论】:
-
请提供足够的代码,以便其他人可以更好地理解或重现问题。
标签: java amazon-web-services aws-lambda