Skip to content

feat(bigtable): add BIGTABLE_ACCELERATOR_STARTUP_TIMEOUT env var and raise default to 20s - #18

Open
mutianf wants to merge 1 commit into
accel-16-ycsb-console-scriptfrom
accel-17-startup-timeout-env-var
Open

feat(bigtable): add BIGTABLE_ACCELERATOR_STARTUP_TIMEOUT env var and raise default to 20s#18
mutianf wants to merge 1 commit into
accel-16-ycsb-console-scriptfrom
accel-17-startup-timeout-env-var

Conversation

@mutianf

@mutianf mutianf commented Aug 14, 2026

Copy link
Copy Markdown
Owner

What

Adds a BIGTABLE_ACCELERATOR_STARTUP_TIMEOUT environment variable to tune the accelerator daemon's startup readiness budget without a code change or rebuild, and raises the default from 10s → 20s.

Why

Cold, constrained environments (e.g. Cloud Run's gVisor sandbox) spend ~10s in Go runtime init + ADC token fetch before the daemon binds its UDS. A 10s budget frequently misses that window and silently falls back to the native client. 20s covers the cold start with margin.

Details

  • New constant _STARTUP_TIMEOUT_ENV_VAR = "BIGTABLE_ACCELERATOR_STARTUP_TIMEOUT".
  • _DEFAULT_STARTUP_TIMEOUT 10.0 → 20.0.
  • New _resolve_startup_timeout() — precedence: explicit constructor arg > env var > default. A malformed or non-positive env value is raised loudly as a deployment misconfiguration rather than silently ignored.
  • AcceleratorDaemon(startup_timeout=...) default changed to None so the env var is read at instantiation time.

Scope: _daemon.py only.

Stacking

Stacked on top of #accel-16-ycsb-console-script. Review/merge that first.

@mutianf
mutianf force-pushed the accel-16-ycsb-console-script branch from 0e84777 to b7e5247 Compare August 14, 2026 15:12
@mutianf
mutianf force-pushed the accel-17-startup-timeout-env-var branch from db6ae41 to 070d1e9 Compare August 14, 2026 15:13
…raise default to 20s

Change-Id: I5033fa2de87f6b8ac829c74bc2ca7915f7a9d467
@mutianf
mutianf force-pushed the accel-16-ycsb-console-script branch from b7e5247 to 0890bb6 Compare August 14, 2026 21:02
@mutianf
mutianf force-pushed the accel-17-startup-timeout-env-var branch from 070d1e9 to 970c71a Compare August 14, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant