Worker Lambda Duration

Worker Lambda duration

AlarmName: <prefix>_<te_version>_worker_lambda_duration_alarm (example: turbot_5_40_0_worker_lambda_duration_alarm).

Configuration: The amount of time that worker lambda function code spends processing an event. The billed duration for an invocation is the value rounded up to the nearest millisecond. The "Timeout for Worker Lambda" is configured in the "Advanced - Worker" section of TEF. All the new TE installations will pick the value from the TEF. You can also over ride this value at the TE by giving it a new value. When making any changes to the WorkerLambdaTimeout at the TEF, please remember to flip the "Parameter Deployment Trigger" of the TE from Blue to Green or vice-versa.

Condition: Duration >= 350000 for 1 datapoints within 1 minute.

Healthy: All metrics are consistently low with a relatively small difference from Average to p90 and p99. Occasional, non-periodic spikes on the Max metric are okay.

Periodic Slow Running Queries: If the max metric is high but all other metrics are low, this indicates that a single or small set of queries are taking a long time. Investigate by looking at the Worker Lambda CloudWatch for durations matching the Max metric.

Large Spread in Metrics: A large spread in metrics from Avg to p90, p99 and Max indicates a greater portion of Worker Lambda runs are taking longer.

Troubleshooting

This is the duration taken for Lambda function execution. The worker lambda has a max timeout in seconds defined by the parameter WorkerLambdaTimeout (defaults to 350 seconds) and the executions are supposed to finish within these 350 seconds.

Need help?

Please reach out to Turbot Support with the collected information.