diff --git a/serverless/development/optimization.mdx b/serverless/development/optimization.mdx index d2642e837..f8d284e44 100644 --- a/serverless/development/optimization.mdx +++ b/serverless/development/optimization.mdx @@ -40,7 +40,7 @@ Use [benchmarking](/serverless/development/benchmarking) to measure these metric -If cold start exceeds 7 minutes, the worker is marked unhealthy. Extend with `RUNPOD_INIT_TIMEOUT=800` (seconds). +If cold start exceeds 7 minutes, the worker is marked unhealthy. Increase Initialization timeout in the endpoint configuration to allow more time. ## Reduce cold starts diff --git a/serverless/endpoints/endpoint-configurations.mdx b/serverless/endpoints/endpoint-configurations.mdx index 8ca805168..e131e8ef9 100644 --- a/serverless/endpoints/endpoint-configurations.mdx +++ b/serverless/endpoints/endpoint-configurations.mdx @@ -93,7 +93,11 @@ Once an endpoint has been scaled down this way, it stays at its reduced max work ### Initialization timeout -`RUNPOD_INIT_TIMEOUT` in the endpoint configuration sets how long, in seconds, a worker can take to initialize before Runpod stops it. The default is 420 seconds. Workers are billed while they initialize. For large models that need longer to load, set a higher value. +Initialization timeout in the endpoint configuration sets how long, in seconds, a worker can take to initialize before Runpod stops it. The default is 420 seconds. Range: 60 to 14400 seconds. Workers are billed while they initialize. For large models that need longer to load, set a higher value. + +The timeout starts when the worker starts, after its image and models are downloaded, and ends when the worker first reports that it is ready. A worker that runs past the timeout is stopped within about 90 seconds. + +With the REST API, set `workers.initTimeout` in seconds when you [create](/api-reference-v2/serverless/create-a-serverless-endpoint) or [update](/api-reference-v2/serverless/update-a-serverless-endpoint) an endpoint. ### Execution timeout