Skip to content

Commit 8493715

Browse files
authored
Merge pull request #2 from keviryan/master
detail ec2 rate limit
2 parents c679695 + c687fa3 commit 8493715

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

doc_source/scaling.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ For example, if there are five active shards on a stream \(that is, you have fiv
3636

3737
## Automatic Scaling<a name="scaling-behavior"></a>
3838

39+
AWS Lambda will dynamically scale capacity in response to increased traffic, subject to your account's [Account Level Concurrent Execution Limit](concurrent-executions.md#concurrent-execution-safety-limit)\. To handle any burst in traffic, Lambda will immediately increase your concurrently executing functions by a predetermined amount, dependent on which region it's executed \(see table below\)\.
40+
41+
If the default **Immediate Concurrency Increase** value, as noted in the table below, is not sufficient to accommodate the traffic surge, Lambda will continue to increase the number of concurrent function executions by 500 per minute until your account safety limit has been reached or the number of concurrently executing functions is sufficient to successfully process the increased load\.
42+
43+
**Note**
44+
Because Lambda depends on Amazon EC2 to provide Elastic Network Interfaces for VPC\-enabled Lambda functions, these functions are also subject to Amazon EC2's rate limits as they scale\. If Amazon EC2 rate limits prevent VPC\-enabled functions from adding 500 concurrent invocations per minute, please request a limit increase by following the instructions in [Limits](limits.md). When requesting the limit increase however, please use the **Use Case Description** field to include any throttling responses that you may have recieved from EC2, along with details about any previous limit increase\.
45+
Beyond this rate \(i\.e\. for applications taking advantage of the full Immediate concurrency increase\), your application should handle Amazon EC2 throttling \(502 EC2ThrottledException\) through client\-side retry and backoff\. For more details, see [Error Retries and Exponential Backoff in AWS](http://docs.aws.amazon.com/general/latest/gr/api-retries.html)\.
46+
3947
AWS Lambda dynamically scales function execution in response to increased traffic, up to your [concurrency limit](limits.md)\. Under sustained load, your function's concurrency bursts to an initial level between 500 and 3000 concurrent executions that varies per region\. After the initial burst, the function's capacity increases by an additional 500 concurrent executions each minute until either the load is accommodated, or the total concurrency of all functions in the region hits the limit\.
4048

4149

@@ -57,4 +65,4 @@ AWS Lambda dynamically scales function execution in response to increased traffi
5765
**Note**
5866
If your function is connected to a VPC, the [Amazon VPC network interface limit](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_vpc) can prevent it from scaling\. For more information, see [Configuring a Lambda Function to Access Resources in an Amazon VPC](vpc.md)\.
5967

60-
To limit scaling, you can configure functions with *reserved concurrency*\. For more information, see [Managing Concurrency](concurrent-executions.md)\.
68+
To limit scaling, you can configure functions with *reserved concurrency*\. For more information, see [Managing Concurrency](concurrent-executions.md)\.

0 commit comments

Comments
 (0)