Overview of the MSBuild Build Coordinator
mainThe MSBuild Build Coordinator is a resource management system that orchestrates and enforces fair-share allocation of build nodes across multiple simultaneous MSBuild processes. It runs as a separate process (MSBuild.Coordinator) and uses named pipes for Inter-Process Communication (IPC).
Its primary functions include:
- Enforcing a global node budget: Defaults to the processor count to prevent system resource exhaustion.
- Fair-share allocation: Distributes available nodes among competing builds.
- Build health monitoring: Uses periodic heartbeats to track active builds.
- Nested grant support: Allows child processes to share a parent's node grant to prevent deadlocks.
- Auto-shutdown: The coordinator shuts down after a period of inactivity.