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년 전842회 조회
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년 전

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

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

질문 답변하기에 대한 가이드라인

관련 콘텐츠