Skip to content

Add full_offers option to Compute.get_offers()#4060

Open
un-def wants to merge 1 commit into
masterfrom
pr_full_offers
Open

Add full_offers option to Compute.get_offers()#4060
un-def wants to merge 1 commit into
masterfrom
pr_full_offers

Conversation

@un-def

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

Copy link
Copy Markdown
Collaborator

When set to True, instructs the Compute not to adjust offers by requirements. Ignored by all backends except for Kubernetes and Slurm, which return full allocatable node resources if True or a purely synthetic offer reflecting resources that would be actually requested if False (the old/current default behavior).

Exposed as full_offers request body argument in HTTP API and --full-offers flag in dstack apply/dstack offer commands.

When set to `True`, instructs the Compute not to adjust offers by
requirements. Ignored by all backends except for Kubernetes and Slurm,
which return full allocatable node resources if `True` or a purely
synthetic offer reflecting resources that would be actually requested
if `False` (the old/current default behavior).

Exposed as `full_offers` request body argument in HTTP API and
`--full-offers` flag in `dstack apply`/`dstack offer` commands.
if `full_offers` set to `True`, the method should not adjust offer's resources according to
`requirements`. For most backends, this flag has no meaning, as they work with predefined
provider offers (even configurable disk size reflects the actual disk created once the
instance is provisioned), but some backends such as Kubernetes and Slurm allocates flexible

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
instance is provisioned), but some backends such as Kubernetes and Slurm allocates flexible
instance is provisioned), but some backends such as Kubernetes and Slurm allocate flexible

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