Skip to content

Commit

Permalink
add e2-highmem instance
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-town committed May 22, 2024
1 parent 62bad5b commit 855ca8b
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dashboard/src/components/GCPProvisionerSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ const instanceTypes = [
{ value: "e2-standard-8", label: "e2-standard-8" },
{ value: "e2-standard-16", label: "e2-standard-16" },
{ value: "e2-standard-32", label: "e2-standard-32" },
{ value: "e2-highmem-2", label: "e2-highmem-2" },
{ value: "e2-highmem-4", label: "e2-highmem-4" },
{ value: "e2-highmem-8", label: "e2-highmem-8" },
{ value: "e2-highmem-16", label: "e2-highmem-16" },
{ value: "c3-standard-4", label: "c3-standard-4" },
{ value: "c3-standard-8", label: "c3-standard-8" },
{ value: "c3-standard-22", label: "c3-standard-22" },
Expand Down
32 changes: 32 additions & 0 deletions dashboard/src/lib/clusters/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,38 @@ const SUPPORTED_GCP_MACHINE_TYPES: ClientMachineType[] = [
cpuCores: 32,
ramMegabytes: 131072,
},
{
name: "e2-highmem-2",
displayName: "e2-highmem-2",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 2,
ramMegabytes: 16384,
},
{
name: "e2-highmem-4",
displayName: "e2-highmem-4",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 4,
ramMegabytes: 32768,
},
{
name: "e2-highmem-8",
displayName: "e2-highmem-8",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 8,
ramMegabytes: 65536,
},
{
name: "e2-highmem-16",
displayName: "e2-highmem-16",
supportedRegions: SUPPORTED_GCP_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 16,
ramMegabytes: 131072,
},
{
name: "c3-standard-4",
displayName: "c3-standard-4",
Expand Down
4 changes: 4 additions & 0 deletions dashboard/src/lib/clusters/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ const gcpMachineTypeValidator = z.enum([
"e2-standard-8",
"e2-standard-16",
"e2-standard-32",
"e2-highmem-2",
"e2-highmem-4",
"e2-highmem-8",
"e2-highmem-16",
"c3-standard-4",
"c3-standard-8",
"c3-standard-22",
Expand Down

0 comments on commit 855ca8b

Please sign in to comment.