-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lambda warmup not waming up the function properly #66
Comments
@nenti WarmUP invokes You could just check by FunctionName Lambda metric and it will show up fine in CloudWatch. And you could check your service warmed up functions CloudWatch logs which you can easily cross-check if they are invoked or not. |
@goncaloneves thank you for clarifying this. I found the logs and it is invoked just fine. Problem is, that when I invoke my lambda it hits without the Please see the request times of my test. |
Are you running multiple version containers? |
No I only run one version of lambda. But still warmup invocations are showing up in different monitoring and the lambda doesn't seem to be warm when I invoke it. Invocation comes from another service and is called like so: const params = {
FunctionName: arn,
InvocationType: async ? 'Event' : 'RequestResponse',
Payload: typeof data === 'object' ? JSON.stringify(data) : data,
}
return this.lambda.invoke(params, (error, result) => {
// do something
}) |
You are invoking without |
Yes I invoke without Qualifier. But it is not a recommended field in invoke. So shouldn't we be expecting people calling without Qualifier? UPDATE: I tried hitting with Qualifiers set and now it lists in the same monitoring tab. First hit was still with almost a second delay again while execution time vary within 100ms. Now first hit was 2400 ms (compared to >3000) only so closer to 2nd hit. Would there be any other layer that needs to be warmed when hitting a lambda from remote? Testsetup is running a local unit test that calls remote lambda. Could be that the unit-test is just running slower on initial execution. |
It is fine without Qualifier, by default it sets to If you are finding issues with cold starts, lower the schedule interval. I set to run every 2 minutes since in most use cases without external invocations most lambdas go cold around 3 minutes. (Edit) Most containers regardless of activity go down around 15 minutes of uptime. The shorter the interval (1 minute minimum with CW Schedule), less likely your users will feel the cold start pain when there is no container up. |
Hi, is there a way to keep a specific version of function warm instead of $LATEST? Thanks |
I installed the warmup plugin to my project and just realized that it is not working properly.
The warmup-lambda is peroperly executing every 5 minutes:
The logs indicate a successful execution:
But the function monitoring on
captureTransaction
doesn't log an invocation:Also the end to end test is still showing following load times on sequential execution:
The text was updated successfully, but these errors were encountered: