dataall icon indicating copy to clipboard operation
dataall copied to clipboard

Lambda settings - memory & timeout

Open dosiennik opened this issue 1 year ago • 5 comments

Is your idea related to a problem? Please describe.

We need to review the settings for the lambda functions memory and timeouts to find the most optimal ones for both the compute and the cost . As far as I see for the custom resource functions we setup the memory to 1664 and timeout to 300 s (5 minutes) although these function only call an API so not sure if this is the optimal setting. For the lambda handling graph ql queries the memory is set to 3 GB and timeout is set to 15 minutes, although the API Gateway max timeout is 29 s, so it doesn't make much sense.

Describe the solution you'd like We can leverage the following to find an optimal values: https://docs.aws.amazon.com/lambda/latest/operatorguide/profile-functions.html https://github.com/alexcasalboni/aws-lambda-power-tuning

dosiennik avatar Mar 24 '23 15:03 dosiennik