-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CA: Update AWS instance type list #2550
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ limitations under the License. | |
|
||
package aws | ||
|
||
// InstanceType is sepc of EC2 instance | ||
// InstanceType is spec of EC2 instance | ||
type InstanceType struct { | ||
InstanceType string | ||
VCPU int64 | ||
|
@@ -223,7 +223,7 @@ var InstanceTypes = map[string]*InstanceType{ | |
"c5d.12xlarge": { | ||
InstanceType: "c5d.12xlarge", | ||
VCPU: 48, | ||
MemoryMb: 131072, | ||
MemoryMb: 98304, | ||
GPU: 0, | ||
}, | ||
"c5d.18xlarge": { | ||
|
@@ -235,7 +235,7 @@ var InstanceTypes = map[string]*InstanceType{ | |
"c5d.24xlarge": { | ||
InstanceType: "c5d.24xlarge", | ||
VCPU: 96, | ||
MemoryMb: 262144, | ||
MemoryMb: 196608, | ||
GPU: 0, | ||
}, | ||
"c5d.2xlarge": { | ||
|
@@ -265,7 +265,7 @@ var InstanceTypes = map[string]*InstanceType{ | |
"c5d.metal": { | ||
InstanceType: "c5d.metal", | ||
VCPU: 96, | ||
MemoryMb: 262144, | ||
MemoryMb: 196608, | ||
GPU: 0, | ||
}, | ||
"c5d.xlarge": { | ||
|
@@ -436,6 +436,12 @@ var InstanceTypes = map[string]*InstanceType{ | |
MemoryMb: 31232, | ||
GPU: 1, | ||
}, | ||
"g4dn": { | ||
InstanceType: "g4dn", | ||
VCPU: 96, | ||
MemoryMb: 393216, | ||
GPU: 8, | ||
}, | ||
"g4dn.12xlarge": { | ||
InstanceType: "g4dn.12xlarge", | ||
VCPU: 48, | ||
|
@@ -466,6 +472,12 @@ var InstanceTypes = map[string]*InstanceType{ | |
MemoryMb: 131072, | ||
GPU: 1, | ||
}, | ||
"g4dn.metal": { | ||
InstanceType: "g4dn.metal", | ||
VCPU: 96, | ||
MemoryMb: 393216, | ||
GPU: 8, | ||
}, | ||
"g4dn.xlarge": { | ||
InstanceType: "g4dn.xlarge", | ||
VCPU: 4, | ||
|
@@ -1702,6 +1714,30 @@ var InstanceTypes = map[string]*InstanceType{ | |
MemoryMb: 12582912, | ||
GPU: 0, | ||
}, | ||
"u-18tb1": { | ||
InstanceType: "u-18tb1", | ||
VCPU: 448, | ||
MemoryMb: 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason it get 0 MemoryMb? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I failed to notice that! I think I'll need to dig into this and figure out why that's happening. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Finally got around to spending more time on digging into this, and it looks like the Pricing API we're currently using can't be fully trusted. For one thing the correct API designation of these instances is I'm going to raise a separate issue to discuss whether/how we move away from the Pricing API as it seems it can't be fully trusted to build a proper picture of these nodes, in the meantime any problem with merging this as is? (I've updated it with a couple more changes generated when running today and double checked them against the info returned by instance descriptions using a boto3 client.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Em.. |
||
GPU: 0, | ||
}, | ||
"u-18tb1.metal": { | ||
InstanceType: "u-18tb1.metal", | ||
VCPU: 448, | ||
MemoryMb: 18874368, | ||
GPU: 0, | ||
}, | ||
"u-24tb1": { | ||
InstanceType: "u-24tb1", | ||
VCPU: 448, | ||
MemoryMb: 0, | ||
GPU: 0, | ||
}, | ||
"u-24tb1.metal": { | ||
InstanceType: "u-24tb1.metal", | ||
VCPU: 448, | ||
MemoryMb: 25165824, | ||
GPU: 0, | ||
}, | ||
"u-6tb1": { | ||
InstanceType: "u-6tb1", | ||
VCPU: 448, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Em..Interesting. I do use the generator to populate the specs. Do you change manually or use the
gen.go
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was confused as well when I noticed it, even weirder I changed it by running
make generate
again, so I can only assume the API was returning different results when you last generated it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. The new values you give match with values in aws docs. Great!