-
Couldn't load subscription status.
- Fork 180
Dynamically customizable timeout for envd init #1265
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
Dynamically customizable timeout for envd init #1265
Conversation
0438b7f to
bee7be0
Compare
it's not it will use fallback - 50ms |
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.
we won't be able to track how many attempts are required per one sandbox start, correct?
packages/orchestrator/internal/template/build/layer/create_sandbox.go
Outdated
Show resolved
Hide resolved
we will - it's total/success |
# Conflicts: # packages/orchestrator/internal/server/sandboxes.go
c347dc8 to
1302578
Compare
packages/orchestrator/internal/template/build/phases/base/builder.go
Outdated
Show resolved
Hide resolved
c195b94 to
820b387
Compare
Increasing the timeout didn't affect start times, but the number of initialization requests went down.

Note
Envd init now uses a feature-flagged per-request timeout, records init attempt counts and duration with envd version attributes, and adds a logger field for envd version.
envdinit request timeout configurable via feature flag (envd-init-request-timeout-milliseconds); store ininternalConfigand use per-request.initEnvdto use sandbox config directly;doRequestWithInfiniteRetriesnow takes timeout, returns attempt count, and logs retries withsandbox_idandenvd.version.telemetry.EnvdInitCallswith{success: true|false},envd.version, andtimeout_msattributes.WaitForEnvdduration viatelemetry.WaitForEnvdDurationHistogramNamewithenvd.versionandtimeout_ms.orchestrator.sandbox.envd.init.callsand histogramorchestrator.sandbox.envd.init.durationwith units/descriptions.telemetry.WithEnvdVersionattribute helper and wire through spans.EnvdInitTimeoutSeconds(envd-init-request-timeout-milliseconds) int flag with default50.logger.WithEnvdVersionand use it in retry logs and clock-drift warnings.Written by Cursor Bugbot for commit ce9c48c. This will update automatically on new commits. Configure here.