~/talk

Bazel persistent workers

Talkat BazelCon 2020 · on Thursday, 2020-11-12· [devops-and-delivery, open-source]
links:none on file
links:none on file
slides:none on file

Bazel shows 3x faster clean builds and up to 6x faster incremental builds by keeping long‑running worker processes that read work requests on stdin, write artifacts directly to disk, and return proto or JSON responses. Workers use flags like worker_max_instances=4 (default), per‑mnemonic limits, worker_sandboxing, and multiplexing to reduce JVM startup and memory overhead. Current gaps: multiplexing lacks full sandboxing, no request cancellation in the protocol, and Bazel cannot yet track per‑worker CPU/memory for scheduling.

AI-written summary · about

  1. 0:00Persistent workers intro
  2. 1:27How workers improve build performance
  3. 3:11Worker multiplexing
  4. 4:59Tuning worker flags
  5. 8:12Worker binary creation
  6. 10:21Worker rules in Starlark
  7. 12:12Debugging workers
  8. 13:18Sandboxing and dynamic execution
  9. 17:36Future Bazel improvements
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.