Skip to content

Commit

Permalink
add c7gn (#4654)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-g-town authored May 17, 2024
1 parent e2fe66d commit 32af545
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dashboard/src/components/ProvisionerSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ const machineTypeOptions = [
{ value: "c7g.8xlarge", label: "c7g.8xlarge" },
{ value: "c7g.12xlarge", label: "c7g.12xlarge" },
{ value: "c7g.16xlarge", label: "c7g.16xlarge" },
{ value: "c7gn.large", label: "c7gn.large" },
{ value: "c7gn.xlarge", label: "c7gn.xlarge" },
{ value: "c7gn.2xlarge", label: "c7gn.2xlarge" },
{ value: "c7gn.4xlarge", label: "c7gn.4xlarge" },
{ value: "c7gn.8xlarge", label: "c7gn.8xlarge" },
{ value: "c7gn.12xlarge", label: "c7gn.12xlarge" },
{ value: "c7gn.16xlarge", label: "c7gn.16xlarge" },
];

const defaultCidrVpc = "10.78.0.0/16";
Expand Down
64 changes: 64 additions & 0 deletions dashboard/src/lib/clusters/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,70 @@ const SUPPORTED_AWS_MACHINE_TYPES: ClientMachineType[] = [
cpuCores: 64,
ramMegabytes: 131072,
},
{
name: "c7gn.medium",
displayName: "c7gn.medium",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 1,
ramMegabytes: 2048,
},
{
name: "c7gn.large",
displayName: "c7gn.large",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 2,
ramMegabytes: 4096,
},
{
name: "c7gn.xlarge",
displayName: "c7gn.xlarge",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 4,
ramMegabytes: 8192,
},
{
name: "c7gn.2xlarge",
displayName: "c7gn.2xlarge",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 8,
ramMegabytes: 16384,
},
{
name: "c7gn.4xlarge",
displayName: "c7gn.4xlarge",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 16,
ramMegabytes: 32768,
},
{
name: "c7gn.8xlarge",
displayName: "c7gn.8xlarge",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 32,
ramMegabytes: 65536,
},
{
name: "c7gn.12xlarge",
displayName: "c7gn.12xlarge",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 48,
ramMegabytes: 98304,
},
{
name: "c7gn.16xlarge",
displayName: "c7gn.16xlarge",
supportedRegions: SUPPORTED_AWS_REGIONS.map((r) => r.name),
isGPU: false,
cpuCores: 64,
ramMegabytes: 131072,
},
{
name: "g4dn.xlarge",
displayName: "g4dn.xlarge",
Expand Down
8 changes: 8 additions & 0 deletions dashboard/src/lib/clusters/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ const awsMachineTypeValidator = z.enum([
"c7g.8xlarge",
"c7g.12xlarge",
"c7g.16xlarge",
"c7gn.medium",
"c7gn.large",
"c7gn.xlarge",
"c7gn.2xlarge",
"c7gn.4xlarge",
"c7gn.8xlarge",
"c7gn.12xlarge",
"c7gn.16xlarge",
// gpu types
"g4dn.xlarge",
"g4dn.2xlarge",
Expand Down

0 comments on commit 32af545

Please sign in to comment.