Cannot set reserve concurrency for a lambda function

0

The Unreserved account concurrency of my account is 100

I have four lambda function in eu-central-1 and I want to limit the concurrency of one of them to a very small value. Specifically, I do not want more than 3 instances of this function running concurrently. This function is not expected to receive a lot of traffic so setting its Reserve concurrency to a low value makes a lot of sense.

However, when I try to do I get a rejection message as follows: The unreserved account concurrency can't go below 100. (see attached screenshot).

What should I do to be able to restrict the concurrency of this function?

Enter image description here

imaman
已提问 2 年前1240 查看次数
2 回答
1

Lambda provisioned concurrency can be reserved up to 100 less than the number of unreserved account concurrencies. [1]

[1] Managing Lambda reserved concurrency - AWS Lambda
https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html

Therefore, to set the provisioned concurrency to 3, the account concurrency must be greater than 103.

The concurrency limit can be requested via service quotas. [2]

[2] AWS service quotas - AWS General Reference
https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html

profile picture
mn87
已回答 2 年前
  • Provisioned concurrency and reserved concurrency are different things. I believe you intended to say Reserved Concurrency and not Provisioned Concurrency

1

You have to leave a minimum of 100 for lambda functions in an account that don't have reserved concurrency - https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html that mentions "You can reserve up to the Unreserved account concurrency value that is shown, minus 100 for functions that don't have reserved concurrency."

You have to request an increase in the account concurrency to a number higher than 100, so you can set reserved concurrency for certain lambda functions in your account.

profile pictureAWS
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则