Skip to content

Commit

Permalink
Add missing i4g.4xlarge instnace type
Browse files Browse the repository at this point in the history
Adding pre-configure io_setup values
Also since `i4g` doesn't support enhanced networking adding it to use
ENA
  • Loading branch information
yaronkaikov committed Aug 30, 2023
1 parent a5c3707 commit fe27a5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions common/scylla_cloud_io_setup
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ class aws_io_setup(cloud_io_setup):
self.disk_properties["read_bandwidth"] = 1148509696
self.disk_properties["write_iops"] = 82746
self.disk_properties["write_bandwidth"] = 508828810
elif self.idata.instancetype == "i4g.4xlarge":
self.disk_properties["read_iops"] = 272704
self.disk_properties["read_bandwidth"] = 2297019392
self.disk_properties["write_iops"] = 165492
self.disk_properties["write_bandwidth"] = 1017657620
elif self.idata.instancetype == "i4g.8xlarge":
self.disk_properties["read_iops"] = 271495 * nr_disks
self.disk_properties["read_bandwidth"] = 2293024938 * nr_disks
Expand Down
2 changes: 1 addition & 1 deletion lib/scylla_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def get_en_interface_type(self):
instance_size = self.instance_size()
if instance_class in ['c3', 'c4', 'd2', 'i2', 'r3']:
return 'ixgbevf'
if instance_class in ['a1', 'c5', 'c5a', 'c5d', 'c5n', 'c6g', 'c6gd', 'f1', 'g3', 'g4', 'h1', 'i3', 'i3en', 'inf1', 'm5', 'm5a', 'm5ad', 'm5d', 'm5dn', 'm5n', 'm6g', 'm6gd', 'p2', 'p3', 'r4', 'r5', 'r5a', 'r5ad', 'r5b', 'r5d', 'r5dn', 'r5n', 't3', 't3a', 'u-6tb1', 'u-9tb1', 'u-12tb1', 'u-18tn1', 'u-24tb1', 'x1', 'x1e', 'z1d', 'c6g', 'c6gd', 'm6g', 'm6gd', 't4g', 'r6g', 'r6gd', 'x2gd', 'im4gn', 'is4gen', 'i4i']:
if instance_class in ['a1', 'c5', 'c5a', 'c5d', 'c5n', 'c6g', 'c6gd', 'f1', 'g3', 'g4', 'h1', 'i3', 'i3en', 'inf1', 'm5', 'm5a', 'm5ad', 'm5d', 'm5dn', 'm5n', 'm6g', 'm6gd', 'p2', 'p3', 'r4', 'r5', 'r5a', 'r5ad', 'r5b', 'r5d', 'r5dn', 'r5n', 't3', 't3a', 'u-6tb1', 'u-9tb1', 'u-12tb1', 'u-18tn1', 'u-24tb1', 'x1', 'x1e', 'z1d', 'c6g', 'c6gd', 'm6g', 'm6gd', 't4g', 'r6g', 'r6gd', 'x2gd', 'im4gn', 'is4gen', 'i4i', 'i4g']:
return 'ena'
if instance_class == 'm4':
if instance_size == '16xlarge':
Expand Down

0 comments on commit fe27a5b

Please sign in to comment.