dstack icon indicating copy to clipboard operation
dstack copied to clipboard

Optimize getting run plan when using region/instance-type filters

Open jvstme opened this issue 1 year ago • 7 comments

Current

The user can filter instance offers by region or instance type, e.g.:

dstack run . --region westus3

However, the current implementation always prepares offers for all regions and instance types and applies the filters only after that. This may slow down getting the run plan significantly due to checking quotas and availability for the instances that will then be filtered out.

Proposed

Pass these filters to Compute.get_offers and adjust backend implementations to only prepare offers for the requested regions and instance types.

jvstme avatar May 09 '24 17:05 jvstme

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Jun 09 '24 01:06 peterschmidt85

This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.

peterschmidt85 avatar Jun 24 '24 01:06 peterschmidt85

Relevant

jvstme avatar Jun 24 '24 05:06 jvstme

This issue is stale because it has been open for 30 days with no activity.

peterschmidt85 avatar Jul 25 '24 01:07 peterschmidt85

This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.

github-actions[bot] avatar Aug 09 '24 01:08 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 09 '24 01:09 github-actions[bot]

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 10 '24 01:10 github-actions[bot]