Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/api/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ import type {
VpcFirewallRuleUpdate,
} from './__generated__/Api'

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

export const MAX_NICS_PER_INSTANCE = 8

export const INSTANCE_MAX_CPU = 64
// Limit is 254 on the backend but we haven't shipped any hardware that supports
// that, so let's do 128 for now
export const INSTANCE_MAX_CPU = 128

export const INSTANCE_MIN_RAM_GiB = 1
export const INSTANCE_MAX_RAM_GiB = 1536

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/instance-create.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ test('Validate CPU and RAM', async ({ page }) => {

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

const cpuMsg = page.getByText('Can be at most 64').first()
const cpuMsg = page.getByText('Can be at most 128').first()
const memMsg = page.getByText('Can be at most 1536 GiB').first()

await expect(cpuMsg).toBeHidden()
Expand Down
Loading