Skip to content

Add support for offers with unknown disk size - #4066

Merged
un-def merged 1 commit into
masterfrom
pr_offers_with_unknown_disk_size
Jul 27, 2026
Merged

Add support for offers with unknown disk size#4066
un-def merged 1 commit into
masterfrom
pr_offers_with_unknown_disk_size

Conversation

@un-def

@un-def un-def commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

If InstanceOffer.instance.resources.disk.size_mib is set to 0, it's now treated as "disk size is unknown", and such offers are not filtered against Requirements.resources.disk.size (as if it's set to None); in other words, the DiskSpec requirement is simply ignored.

The only backend that uses this new feature is Slurm -- there is no notion of persistent disk storage as a consumable resource (unless expressed via GRES, which we don't support), and previously we adjusted offers with fake disk size from the lower limit of the DiskSpec.size range, making a false promise that such an amount of storage is available. Now, disk size is always 0 -> isn't displayed to the end user at all, but offers are still not skipped due to disk size min/max requirements.

If `InstanceOffer.instance.resources.disk.size_mib` is set to `0`, it's
now treated as "disk size is unknown", and such offers are not filtered
against `Requirements.resources.disk.size` (as if it's set to `None`);
in other words, the `DiskSpec` requirement is simply ignored.

The only backend that uses this new feature is Slurm -- there is no
notion of persistent disk storage as a consumable resource (unless
expressed via GRES, which we don't support), and previously we adjusted
offers with fake disk size from the lower limit of the `DiskSpec.size`
range, making a false promise that such an amount of storage is available.
Now, disk size is always `0` -> isn't displayed to the end user at all,
but offers are still not skipped due to disk size min/max requirements.
@un-def
un-def requested a review from r4victor July 24, 2026 11:25
@un-def
un-def merged commit 2020a84 into master Jul 27, 2026
24 checks passed
@un-def
un-def deleted the pr_offers_with_unknown_disk_size branch July 27, 2026 13:18
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.

2 participants