Technologies/LocalStack/localstack.lambda.cold_start.duration
LocalStackLocalStackMetric

localstack.lambda.cold_start.duration

Cold start duration
Dimensions:None
Available on:Native (1)
Interface Metrics (1)
Native
Duration of Lambda cold start initialization in milliseconds
Dimensions:None

Technical Annotations (22)

Configuration Parameters (5)
LAMBDA_RUNTIME_ENVIRONMENT_TIMEOUTrecommended: 600
wait time in seconds for Lambda runtime environment startup
LAMBDA_EXECUTORrecommended: local or docker-reuse
Controls Lambda execution mode; 'local' offers best performance, 'docker-reuse' reuses containers (use local only if no OS-specific C bindings needed)
latencyrecommended: 5000
Milliseconds of artificial latency for chaos testing (5 seconds)
LAMBDA_DOCKER_NETWORKrecommended: remove entirely
Should not be manually set; LocalStack auto-detects the correct network including docker-compose project prefix
AWS_ENDPOINT_URL
Must point to LocalStack instance IP reachable from Lambda container network
Error Signatures (4)
timed out during startup. Check for errors during the startup of your Lambda function and consider increasing the startup timeout via LAMBDA_RUNTIME_ENVIRONMENT_TIMEOUTlog pattern
Read timeout on endpoint URL: "http://localhost:4566/2015-03-31/functions/arn%3Aaws%3Alambda%3Aus-east-1%3A000000000000%3Afunction%3Aproxy-function/invocations"log pattern
INTEGRATION_FAILUREerror code
502http status
Technical References (13)
Lambda runtime environmentcomponentcold startsconceptprovisioned concurrencyconceptVPC configurationconceptexecution environmentcomponenthot-reloadconceptLOCALSTACK_HOSTNAMEcomponentINITconceptcold startconceptLambda function handlercomponentREPORT statementsconceptREPORT linecomponentInitialization Durationcomponent
Related Insights (7)
Lambda runtime environment startup timeoutwarning
Lambda operations taking 17-30+ seconds due to executor configurationwarning
Lambda latency increases cause pipeline timeouts and slowdownswarning
Lambda execution environment timeout during startup with boto3 and hot-reloadcritical
Lambda cold starts increase IntegrationLatencywarning
Lambda cold starts increase API Gateway integration latencywarning
Lambda cold start increases API Gateway response latencywarning