Repository navigation
Add VM limits - #1656
Add VM limits#1656
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| return `Must be at least 1 vCPU` | ||
| } | ||
| if (cpus > INSTANCE_MAX_CPU) { | ||
| return `CPUs capped to 32` |
There was a problem hiding this comment.
Sorry to double nit, but this is not our usual language for maximums. We usually say snooty things like "An instance can have at most 32 CPUs". @benjaminleonard got any word ideas? Also, the number should be templated in using the variable.
There was a problem hiding this comment.
Micro-copy is not my strong suit, but you're probably right, something more descriptive would be clearer here.
Any feelings on generating this copy in one file to make reviewing and utilising copy on the console much easier?
There was a problem hiding this comment.
So few of our lines are reused, it would feel a bit silly. But yeah, otherwise it's very hard to see everything at once. That would be pretty big change. We'll have to do it eventually for internationalization, but that could be two years away. We might rewrite the whole console in Haskell by then.
There was a problem hiding this comment.
Would probably be good to chat with @askfongjojo about collectively developing some copy guidelines.
We added CPU and memory caps in oxidecomputer/omicron#3574. This follows up with input validation to enforce those same caps.