Skip to content
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

Implement fleet apply plan #1765

Merged
merged 8 commits into from
Oct 2, 2024
Merged

Implement fleet apply plan #1765

merged 8 commits into from
Oct 2, 2024

Conversation

r4victor
Copy link
Collaborator

@r4victor r4victor commented Oct 2, 2024

Closes #1472

This PR adds a fleet apply plan similar to the run plan:

✗ dstack apply -f .dstack/confs/fleet.yaml
 Project        main                           
 User           admin                          
 Configuration  .dstack/confs/fleet.yaml       
 Type           fleet                          
 Fleet type     cloud                          
 Nodes          2                              
 Placement      cluster                        
 Backends       aws                            
 Resources      2..xCPU, 8GB.., 100GB.. (disk) 
 Spot policy    on-demand                      

 #  BACKEND  REGION        INSTANCE   RESOURCES                   SPOT  PRICE    
 1  aws      eu-west-1     m5.large   2xCPU, 8GB, 100.0GB (disk)  no    $0.107   
 2  aws      eu-central-1  m5.large   2xCPU, 8GB, 100.0GB (disk)  no    $0.115   
 3  aws      eu-west-1     c5.xlarge  4xCPU, 8GB, 100.0GB (disk)  no    $0.192   
    ...                                                                          
 Shown 3 of 82 offers, $40.9447 max

Fleet my-cluster-fleet does not exist yet.
Create the fleet? [y/n]: 

For older servers (<=0.18.16), the plan is shown without offers (since they don't implement the necessary /get_plan API).

It also implements "attach" for fleet apply so that dstack apply does not exit until the fleet is provisioned with the fleet table shown in watch mode. (addresses #1571).

@r4victor r4victor merged commit 16bec03 into master Oct 2, 2024
23 checks passed
@r4victor r4victor deleted the issue_1472_fleet_apply_plan branch October 2, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UX] Show a plan for applying a fleet
1 participant