Bazel Knowledge Hub
VirtusLabCareers
Contact usContact us
Basic levels
PThe Philosophy
0The Anatomy
1The Operator
2The Mechanic
Advanced levels
3The Maintainer
4The Architect
Expert levels
5The Consultant
6The Infrastructure
6.1Shared Bazel Services
6.2Shared Remote Cache
6.3Remote Execution Infrastructure
6.4Execution Modes and Persistent Workers
1Choosing Execution Strategies2Dynamic Execution3Operating Persistent Worker Pools4Worker State Isolation5Multiplex Worker Qualification6Execution Concurrency
6.5Bazel CI at Scale
6.6Build Service Operations
6.7Build Supply Chain and Releases
Handbooks
HMonorepo Handbook
Focus
  • Core — must-know in this level, handbook, or guide
  • Recommended — most will need it
  • Extra — niche — safe to skip
  1. 6 The Infrastructure
  2. /6.4 Execution Modes and Persistent Workers
  1. 6 The Infrastructure
  2. /6.4

6.4 Execution Modes and Persistent Workers

Sections in this chapter · 6

6.4.1Choosing Execution Strategies

Use this when choosing local, sandboxed, persistent-worker, remote, or mixed execution for an action class and verifying where it actually ran.

6.4.2Dynamic Executionrecommended

Use this when considering whether racing local and remote work reduces tail latency enough to justify duplicate work and deployment-specific cancellation evidence.

6.4.3Operating Persistent Worker Pools

Use this when deciding whether persistent workers pay off and when worker-key fragmentation, memory growth, or restart churn makes their pools unstable.

6.4.4Worker State Isolation

Use this when repeated or reordered worker requests produce different outputs, see undeclared files, or contaminate one another through process state or the filesystem.

6.4.5Multiplex Worker Qualificationextra

Use this before enabling multiplex workers to prove that concurrent and cancelled requests remain isolated, correctly attributed, and compatible with the selected sandbox mode.

6.4.6Execution Concurrencyrecommended

Use this when increasing --jobs, worker count, or remote capacity fails to improve throughput or causes OOMs and queueing.

©2026 VirtusLab