Skip to content

fix: validate instance is scalable before scale - #505

Open
shivamj-del wants to merge 1 commit into
mainfrom
BREV-12654/validate-instance-scalable
Open

shivamj-del wants to merge 1 commit into
mainfrom
BREV-12654/validate-instance-scalable

Conversation

@shivamj-del

@shivamj-del shivamj-del commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Issue

brev scale sends the resize request for any instance and prints "Instance scaled to ", even when the provider can't change the type of an existing instance (e.g. Crusoe, AWS spot). The backend then stops the instance, fails, and leaves it stopped on its old type.

Fix

  • Read instanceTypeInfo.sub_location_type_changeable from the workspace. dev-plane sets it only for instance types whose provider can change type in place (AWS on-demand, GCP).
  • Check it before sending the scale request (both --gpu and --cpu). If it's false or missing, fail with instance "<name>" does not support scale; create a new instance with the desired type instead.

@shivamj-del shivamj-del self-assigned this Oct 12, 2026
@shivamj-del
shivamj-del marked this pull request as ready for review October 12, 2026 03:30
@shivamj-del
shivamj-del requested a review from a team as a code owner October 12, 2026 03:30
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.

1 participant