Repository navigation
Documenting initialization timeout value in endpoint configuration #945
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
base: main
Are you sure you want to change the base?
Changes from all commits
9f04e66
79f95c3
f89db69
5bebc36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The PR description says |
||
|
|
||
| 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. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "The timeout starts when the worker starts, after its image and models are downloaded" does not match how I read the worker lifecycle. The init deadline is set when the worker is resumed on the host (now plus the configured seconds), before the image pull and model download, so a slow pull spends the same budget. Can you confirm with whoever owns the platform side? If I am right, this sentence misleads exactly the readers the section is for: someone with a large model who raises the value expecting the download not to count. It would also contradict the migrate/baseten.mdx troubleshooting line, which says a cached model keeps the download from counting against startup.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does "within about 90 seconds" come from? As far as I can tell a worker is only stopped after the platform sees it as not reporting on two separate sweeps, so the delay depends on the sweep interval rather than a fixed number. If there is no measured source, "shortly after" is safer than a figure readers will plan around. |
||
|
|
||
| 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. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Two behaviours worth a line here if they are known: what happens when |
||
|
|
||
| ### Execution timeout | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"If cold start exceeds 7 minutes" is the default, which the new text makes configurable, so it reads as a fixed limit. Something like "exceeds the Initialization timeout (7 minutes by default)" with a link to the endpoint configuration section would stay correct. "Marked unhealthy" is also softer than what happens, which is that the worker is stopped.