Skip to content

Commit fc87592

Browse files
committed
Add attach limits for C3 Baremetal and A4X + A4X-Max machine types
1 parent 6f42a4e commit fc87592

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkg/common/constants.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,9 @@ var C4AMachineHyperdiskAttachLimitMap = []MachineHyperdiskLimit{
104104
{max: 48, value: 31},
105105
{max: 72, value: 63},
106106
}
107+
108+
// A4X Machine Types - Hyperdisk Balanced Limits. The max here is actually the GPU count (not CPU, like the others).
109+
var A4XMachineHyperdiskAttachLimitMap = []MachineHyperdiskLimit{
110+
{max: 1, value: 63},
111+
{max: 2, value: 127},
112+
}

pkg/common/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,8 @@ func GetHyperdiskAttachLimit(machineTypePrefix string, vCPUs int64) int64 {
775775
limitMap = N4MachineHyperdiskAttachLimitMap
776776
case "c4a":
777777
limitMap = C4AMachineHyperdiskAttachLimitMap
778+
case "a4x":
779+
limitMap = A4XMachineHyperdiskAttachLimitMap
778780
default:
779781
// Fallback to the most conservative Gen4 map for unknown types
780782
return MapNumber(vCPUs, C4DMachineHyperdiskAttachLimitMap)

0 commit comments

Comments
 (0)