Skip to content

Add VM limits - #1656

Merged
just-be-dev merged 10 commits into
mainfrom
vm-limmits
Jul 14, 2023
Merged

just-be-dev merged 10 commits into
mainfrom
vm-limmits

Conversation

@just-be-dev

@just-be-dev just-be-dev commented Jul 13, 2023 •

Copy link
Copy Markdown
Contributor

We added CPU and memory caps in oxidecomputer/omicron#3574. This follows up with input validation to enforce those same caps.

image

@vercel

vercel Bot commented Jul 13, 2023 •

Copy link
Copy Markdown

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Jul 14, 2023 4:40pm

Comment thread app/forms/instance-create.tsx Resolved
Comment thread app/forms/instance-create.tsx Resolved
Comment thread app/forms/instance-create.tsx Outdated
return `Must be at least 1 vCPU`
}
if (cpus > INSTANCE_MAX_CPU) {
return `CPUs capped to 32`

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.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

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.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Would probably be good to chat with @askfongjojo about collectively developing some copy guidelines.

Comment thread app/forms/instance-create.tsx Resolved
Comment thread libs/api/util.ts Resolved

This branch was successfully deployed

1 active deployment
Preview — a60a49f7 Deployed Jul 14, 2023 by vercel[bot]
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.

3 participants