Skip to content

Bump max instance RAM to 1024 GiB #2825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 19, 2025
Merged

Bump max instance RAM to 1024 GiB #2825

merged 2 commits into from
May 19, 2025

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented May 15, 2025

Closes #2824

Turns out we don't have any tests exercising these limits, and while testing it I noticed that we do something really annoying on instance create if you type in too big of a RAM amount. Unlike in the resize modal, where we correctly show an error on blur, on instance create we just silently change the value to the max.

image

Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview May 15, 2025 9:38pm

@david-crespo
Copy link
Collaborator Author

The minValue and maxValue props can be used to limit the entered value to a specific range. The value will be clamped when the user blurs the input field.

https://react-spectrum.adobe.com/react-aria/useNumberField.html#minimum-and-maximum-values

The difference between instance create and resize is that we are not passing max in the resize one (relying solely on the explicit validation function to validate on blur) so it is not doing the clamping. The downside here is that the up button doesn't get disabled when you reach the max, which is cute. If forced to choose, I'd rather have validate on blur than disabled button, but I'll see if we can get both.

@david-crespo david-crespo marked this pull request as ready for review May 15, 2025 21:38
@david-crespo
Copy link
Collaborator Author

Tolerable IMO even though the up button (and up arrow key) isn't disabled. At these numbers you're probably not using them anyway.

image

@david-crespo
Copy link
Collaborator Author

Merging as net improvement, we can figure out the other thing later if we care

@david-crespo david-crespo merged commit a186ae6 into main May 19, 2025
7 checks passed
@david-crespo david-crespo deleted the bump-max-ram branch May 19, 2025 15:47
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.

Bump up maximum VM memory size to 1024 GiB
2 participants