jeremydaly / lambda-warmer

A module to optimize AWS Lambda function cold starts
MIT License
525 stars 55 forks source link

Find optimal concurrency level #34

Closed masotrix closed 1 year ago

masotrix commented 2 years ago

Hi, we have a huge application that without qarming gets to 16 concurrency We have set the concurrency level of warmup to 20, but now rhe concurrency level gets to 24

Our application does some very intensive processin which can take up to 27 seconds, which makes us think that may be beating lambda-warmer because of lambda-warmer keeping busy the concurrent lambdas when this happens or something similar

Does this make sense? What procedure would you recommend to find the optimal lambda-warmer concurrency level?

naorpeled commented 1 year ago

Lambda warmer works great for small admin apps that power APIs, but for something like this, it's probably not going to be optimal.

Also, if your handler runs for 27 seconds, I'm not sure cold starts are the issue.

I'll be closing this issue but feel free to ping me if you need anything.