Skip to content

Commit

Permalink
Add r5dn instance family
Browse files Browse the repository at this point in the history
  • Loading branch information
Claes Mogren authored and mogren committed Oct 14, 2019
1 parent 5f99c76 commit 91e7a04
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions pkg/awsutils/vpc_ip_resource_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,14 @@ var InstanceENIsAvailable = map[string]int{
"r5d.16xlarge": 15,
"r5d.24xlarge": 15,
"r5d.metal": 15,
"r5dn.large": 3,
"r5dn.xlarge": 4,
"r5dn.2xlarge": 4,
"r5dn.4xlarge": 8,
"r5dn.8xlarge": 8,
"r5dn.12xlarge": 8,
"r5dn.16xlarge": 15,
"r5dn.24xlarge": 15,
"t1.micro": 2,
"t2.nano": 2,
"t2.micro": 2,
Expand Down Expand Up @@ -425,6 +433,14 @@ var InstanceIPsAvailable = map[string]int{
"r5d.16xlarge": 50,
"r5d.24xlarge": 50,
"r5d.metal": 50,
"r5dn.large": 10,
"r5dn.xlarge": 15,
"r5dn.2xlarge": 15,
"r5dn.4xlarge": 30,
"r5dn.8xlarge": 30,
"r5dn.12xlarge": 30,
"r5dn.16xlarge": 50,
"r5dn.24xlarge": 50,
"t1.micro": 2,
"t2.nano": 2,
"t2.micro": 2,
Expand Down
4 changes: 2 additions & 2 deletions pkg/networkutils/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ func GetEthernetMTU() int {
if envMTUValue := os.Getenv(envMTU); envMTUValue != "" {
mtu, err := strconv.Atoi(envMTUValue)
if err != nil {
log.Errorf("Failed to parse %s will use %d: %v", envMTU, maximumMTU, err.Error())
log.Errorf("Failed to parse %s will use %d: %v", envMTU, maximumMTU, err.Error())
return maximumMTU
}
// Restrict range between jumbo frame and the maximum required size to assemble.
Expand All @@ -951,7 +951,7 @@ func GetEthernetMTU() int {
log.Errorf("%s is too low: %d. Will use %d", envMTU, mtu, minimumMTU)
return minimumMTU
}
if mtu > maximumMTU {
if mtu > maximumMTU {
log.Errorf("%s is too high: %d. Will use %d", envMTU, mtu, maximumMTU)
return maximumMTU
}
Expand Down

0 comments on commit 91e7a04

Please sign in to comment.