-
Notifications
You must be signed in to change notification settings - Fork 146
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
Setting Worker Machine for Distributed Builds #1341
Comments
Hi @rushikeshDeveloper, you need to specify a config.dsc file on every worker - the same config file you used on the orchestrator machine. You should have the same set of source files across each worker machine (make sure you do package restore on each machine as well if that's a step that happens outside the build). |
Is a worker then limited to only one orchestrator machine or is there a way that each machine could act as both an orchestrator and a worker? Also, is there any mechanism to orchestrate executing git commands to update the source and switch branches on the worker machines? |
Hi @pgunasekara, So the things we have tried is:
So can you provide us with a sample example for distributed build on both Orchestrator & Worker machine along with cache implementation or any documentations. |
@peter-liberman, yes you are limited to a single orchestrator machine. We don't provide any mechanism to perform git operations through buildxl. |
@rushikeshDeveloper I don't have any examples to share with you, however the issue you linked is outdated now. You can try set up a cache backed by azure blob storage. Here's the documentation on how to do that: https://github.com/microsoft/BuildXL/blob/main/Documentation/Wiki/shared-cache.md |
While using distributed build from Orchestrator machine we specify config file for solution to build using MsBuild like "bxl /config:config.dsc /DistributedBuildOrchestratorLocation:DTP-ABC-IND:9090 /DistributedBuildRole:Orchestrator /DistributedBuildWorker:DTP-XYZ-IND:9090 /DistributedBuildServicePort:9090" and we have set inbound & outbound rule for Port 9090. But how do we initiate worker machine like we need bxl.exe running on worker machine for distributed build. And mainly on worker machine we need command like "bxl /DistributedBuildRole:Worker /DistributedBuildOrchestratorLocation:DTP-ABC-IND:9090" but additionally it asks to specify config.dsc. If so what will we specify in config file on worker machine as worker machine just need to build and all required things are specified in config.dsc file on Orchestrator machine.
The text was updated successfully, but these errors were encountered: