How is the Burst Capacity related to the Baseline?

0

I have a function with a steady load of 1000 concurrent function invocations.

The question is, how is the initial burst calculated? Is it based from zero or based from the function baseline 1000 in this case?

With zero based and a Burst Limit of 3000 the function can scale to 3000 concurrency. With baseline the function can burst to 4000 concurrency.

AWS
Marco
已提問 3 年前檢視次數 850 次
2 個答案
1
已接受的答案

Lambda functions run in execution environments. The burst limit is the number of new execution environments that need to be created to handle the requests. We use a bucket algorithm with a predefined token capacity (500 / 1,000 / 3,000, depending on the region) and a fixed refill rate of 500 tokens / min. When we need to create a new execution environment, we first take a token from the bucket, if one exists. If the bucket is empty, the request is throttled.

This means that in the larger regions for example, if you are running at a steady 1,000 concurrency for some period of time, which allows the bucket to get full (6 minutes), you will be able to invoke additional 3,000 concurrent functions and get to 4,000 concurrency immediately.

Note that the burst limit is shared across all functions in the account and that you can't scale beyond the account's concurrency limit, which is 1,000 by default.

profile pictureAWS
專家
Uri
已回答 2 年前
0

See below the quote from the documentation here. This implies the total concurrency you can have is 3000 and this is only applicable to the following regions US West (Oregon), US East (N. Virginia), Europe (Ireland). If you need additional concurrency, you can raise a request for quote increase for your Account and the region you are deploying your lambda functions.

"Your functions' concurrency is the number of instances that serve requests at a given time. For an initial burst of traffic, your functions' cumulative concurrency in a Region can reach an initial level of between 500 and 3000, which varies per Region. Note that the burst concurrency quota is not per-function; it applies to all of your functions in the Region."

AWS
已回答 3 年前

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

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

回答問題指南