Skip to content

Conversation

@r4victor
Copy link
Collaborator

@r4victor r4victor commented Sep 15, 2025

Closes #3020

The PR updates the optimal fleet selection logic for the run. Previously, only pool (instance) offers were considered, and the fleet with the cheapest pool offer was chosen. Now, dstack also considers backend offers for all fleets and choses a fleet with the cheapest backend offer if there are no pool offers.

It's no longer necessary to specify fleets in run configuration to choose an elastic fleet without instances for the run – such fleet will be chosen if they have backend offers. Autocreated fleets can be created only in case when existing fleets have neither pool nor backend offers.

The PR does NOT change run plan offers so that offers respect fleet specs – this is to be addressed in a separate PR.

@r4victor r4victor merged commit 6d9b016 into master Sep 16, 2025
28 checks passed
@r4victor r4victor deleted the issue_3020_optimal_fleet_backend_offers branch September 16, 2025 06:29
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.

Consider backend offers when choosing optimal fleet for run

2 participants