Skip to content

Commit ed139b1

Browse files
authored
Bump max cpus per VM to 254 (#2974)
* bump max cpus per VM to 254 * make that 128
1 parent 62e0e4d commit ed139b1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/api/util.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ import type {
2424
VpcFirewallRuleUpdate,
2525
} from './__generated__/Api'
2626

27-
// API limits encoded in https://github.com/oxidecomputer/omicron/blob/aec3cd8d/nexus/src/app/mod.rs
27+
// API limits encoded in https://github.com/oxidecomputer/omicron/blob/44e65c3/nexus/src/app/mod.rs#L130-L161
2828

2929
// These are not actually used in app code, just the mock server. In the app we
3030
// can rely on API errors to communicate these limits.
3131
export const MAX_NICS_PER_INSTANCE = 8
3232
export const MAX_DISKS_PER_INSTANCE = 12
3333

34-
export const INSTANCE_MAX_CPU = 64
34+
// Limit is 254 on the backend but we haven't shipped any hardware that supports
35+
// that, so let's do 128 for now
36+
export const INSTANCE_MAX_CPU = 128
37+
3538
export const INSTANCE_MIN_RAM_GiB = 1
3639
export const INSTANCE_MAX_RAM_GiB = 1536
3740

test/e2e/instance-create.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ test('Validate CPU and RAM', async ({ page }) => {
665665

666666
const submitButton = page.getByRole('button', { name: 'Create instance' })
667667

668-
const cpuMsg = page.getByText('Can be at most 64').first()
668+
const cpuMsg = page.getByText('Can be at most 128').first()
669669
const memMsg = page.getByText('Can be at most 1536 GiB').first()
670670

671671
await expect(cpuMsg).toBeHidden()

0 commit comments

Comments
 (0)