question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provisioned Concurrency Does Not Work As Described

See original GitHub issue

Bug Report

Provisioned Concurrency was recently added in Serverless v1.59 and described in detail in this blog post: https://serverless.com/blog/aws-lambda-provisioned-concurrency/

The blog post makes the claim that enabling provisioned concurrency is as easy as:

functions:
  hello:
    handler: handler.hello
      events:
        - http:
            path: /hello
            method: get
    provisionedConcurrency: 5

This is not true.

What this configuration will do is assign provisioned concurrency to the version number that was deployed, but API Gateway will continue invoking the Lambda with the $LATEST alias (no version). What effectively ends up happening is every deploy keeps assigning provisioned concurrency to each new version and never actually utilizes it. If a developer does not use any version pruning they will quickly rack up an expensive bill paying for new provisioned capacity on each version, and potentially worse, eventually exhaust their reserved (or unreserved) concurrency on their AWS account.

I think this is a critical issue and needs to, at the very least, be addressed in the blog post. Without some form of version cleanup or aliasing I don’t think there’s much Serverless can do to make this work in a simple configuration like that.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:33
  • Comments:38 (16 by maintainers)

github_iconTop GitHub Comments

7reactions
medikoocommented, Dec 12, 2019

I’ll reopen until we have all issues mentioned here solved.

6reactions
medikoocommented, Dec 20, 2019

@vavarodrigues it’s still not really fixed, but it should be shortly with v1.60.2, stay tuned.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Lambda provisioned concurrency issues
Follow these steps to troubleshoot issues with provisioned concurrency: 1. Verify that the Lambda function being used to configure provisioned ...
Read more >
aws lambda - Provisioned concurrency not resolving cold start
When I create this stack in my Test environment though (where I am the only user, and so there are no other calls...
Read more >
AWS Lambda Provisioned Concurrency: The End of Cold Starts
Once enabled, Provisioned Concurrency will keep your desired number of concurrent executions initialized and ready to respond to requests. This means an end...
Read more >
Lambda provisioned concurrency for $LATEST, or, updating ...
I do not find the API Gateway console particularly clear. It has an "Integrations" page which refers to my lambda function by name,...
Read more >
Provisioned Concurrency: What it is and how to use it with the ...
This setting can be made very simply in the AWS Console. Go to the function in the Lambda service, scroll all the way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found