-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devstack: support node joining existing networks and config passing (#…
…4827) This PR refactors devstack to support two key features: 1. Allow compute nodes to join an existing orchestrator: - Added --computes flag (alias for --compute-nodes) to specify number of compute nodes - Added --orchestrators flag (alias for --requester-nodes) to specify number of orchestrator nodes - Added --hybrids flag (alias for --hybrid-nodes) to specify hybrid nodes - When no orchestrator nodes are specified and orchestrator address is provided via -c flag, devstack will run compute-only nodes that connect to the external orchestrator 2. Use test configuration as base: - Devstack now uses NewTestConfig() as base configuration - All configuration can be overridden using -c flags (same as bacalhau serve) - Node-specific settings are layered on top of base configuration - Maintains backward compatibility with existing devstack flags This allows for: ```bash # Run orchestrator node bacalhau devstack --orchestrators 1 # Run compute nodes connecting to existing orchestrator bacalhau devstack --computes 3 -c Compute.Orchestrators=127.0.0.1:4222 # Run both with custom config bacalhau devstack --computes 3 --orchestrators 1 -c Compute.AllowListedLocalPaths=/tmp <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated CLI command-line flags for devstack configuration with more intuitive naming. - Enhanced configuration setup process with more flexible option handling. - Introduced a new package for organizing related functionalities. - **Refactor** - Simplified devstack node configuration terminology. - Improved configuration management in devstack and utility functions. - Streamlined node setup logic in devstack configuration. - **Chores** - Updated method signatures to support more dynamic configuration options. - Maintained backward compatibility with existing flags. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
4 changed files
with
109 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package ncl |