Skip to content

[Bug]: dstack offers idle instances that have less disk than requested #1516

Closed

Description

@jvstme

Steps to reproduce

> cat fleet.dstack.yml
type: fleet
nodes: 1

resources:
  disk: 100GB

> dstack apply -f fleet.dstack.yml
Configuration does not specify the fleet name. Create a new fleet? [y/n]: y
 FLEET          INSTANCE  BACKEND  RESOURCES  PRICE  STATUS   CREATED 
 friendly-lion  0                                    pending  now

> cat .dstack.yml
type: dev-environment
ide: vscode

resources:
  disk: 200GB..

> dstack apply --spot

Actual behaviour

The idle instance is offered, even though it does not match the disk: 200GB.. requirement.

 #  BACKEND  REGION      INSTANCE         RESOURCES                   SPOT  PRICE           
 1  gcp      us-west4    e2-standard-2    2xCPU, 8GB, 100.0GB (disk)  yes   $0.010052  idle 
 2  gcp      us-west4    e2-standard-2    2xCPU, 8GB, 200.0GB (disk)  yes   $0.010052       
 3  azure    westeurope  Standard_D2s_v3  2xCPU, 8GB, 200.0GB (disk)  yes   $0.0132

Expected behaviour

The idle instance is not offered.

dstack version

0.18.8

Server logs

No response

Additional information

No response

Activity

  1. self-assigned this
    on Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions