Skip to content
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

Adding more instance types #83

Merged
merged 4 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions service_capacity_modeling/capacity_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,25 @@ def _set_instance_objects(
):
if desires.current_clusters:
for zonal_cluster_capacity in desires.current_clusters.zonal:
zonal_cluster_capacity.cluster_instance = hardware.instances[
zonal_cluster_capacity.cluster_instance_name
]
if zonal_cluster_capacity.cluster_instance_name in hardware.instances:
zonal_cluster_capacity.cluster_instance = hardware.instances[
zonal_cluster_capacity.cluster_instance_name
]
else:
raise ValueError(
f"Model not trained to right size cass clusters that are of "
ramsrivatsa marked this conversation as resolved.
Show resolved Hide resolved
f"instance types {zonal_cluster_capacity.cluster_instance_name}"
)
for regional_cluster_capacity in desires.current_clusters.regional:
regional_cluster_capacity.cluster_instance = hardware.instances[
regional_cluster_capacity.cluster_instance_name
]
if regional_cluster_capacity.cluster_instance_name in hardware.instances:
regional_cluster_capacity.cluster_instance = hardware.instances[
regional_cluster_capacity.cluster_instance_name
]
else:
raise ValueError(
f"Model not trained to right size cass clusters that are of "
ramsrivatsa marked this conversation as resolved.
Show resolved Hide resolved
f"instance types {regional_cluster_capacity.cluster_instance_name}"
)


def _allow_instance(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"m5.2xlarge": {"annual_cost": 1264.6},
"m5.4xlarge": {"annual_cost": 2529.7},
"m5.8xlarge": {"annual_cost": 5059.33},
"m5.12xlarge": {"annual_cost": 7589.1},
"m6i.large": {"annual_cost": 332.0},
"m6i.xlarge": {"annual_cost": 664.0},
"m6i.2xlarge": {"annual_cost": 1328.00},
Expand All @@ -29,14 +30,17 @@
"i3.xlarge": {"annual_cost": 1155.9},
"i3.2xlarge": {"annual_cost": 2312},
"i3.4xlarge": {"annual_cost": 4624.3},
"i3en.large": {"annual_cost": 749.8},
"i3en.xlarge": {"annual_cost": 1499.6},
"i3en.2xlarge": {"annual_cost": 2999},
"i3en.3xlarge": {"annual_cost": 4498},
"i3en.6xlarge": {"annual_cost": 8996},
"i4i.large": {"annual_cost": 605.33},
"i4i.xlarge": {"annual_cost": 1210.66},
"i4i.2xlarge": {"annual_cost": 2421.00},
"i4i.4xlarge": {"annual_cost": 4841.67},
"i4i.8xlarge": {"annual_cost": 9683.66},
"i4i.16xlarge": {"annual_cost": 19366.68},
"m5d.large": {"annual_cost": 372.2},
"m5d.xlarge": {"annual_cost": 744.3},
"m5d.2xlarge": {"annual_cost": 1488.6},
Expand All @@ -56,6 +60,7 @@
"r5d.2xlarge": {"annual_cost": 1897},
"r5d.4xlarge": {"annual_cost": 3794},
"r5d.8xlarge": {"annual_cost": 7588},
"r5d.8xlarge": {"annual_cost": 15176},
"r5dn.large": {"annual_cost": 518.3},
"r5dn.xlarge": {"annual_cost": 1037},
"r5dn.2xlarge": {"annual_cost": 2073.6},
Expand Down
67 changes: 67 additions & 0 deletions service_capacity_modeling/hardware/profiles/shapes/aws.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
"net_mbps": 10000,
"drive": null
},
"m5.12xlarge": {
"name": "m5.12xlarge",
"cpu": 48,
"cpu_ghz": 3.1,
"ram_gib": 192,
"net_mbps": 10000,
"drive": null
},
"m6i.large": {
"name": "m6i.large",
"cpu": 2,
Expand Down Expand Up @@ -332,7 +340,41 @@
"block_size_kib": 4, "single_tenant": true
}
},
"i4i.16xlarge": {
"name": "i4i.16xlarge",
"cpu": 64,
"cpu_ghz": 3.5,
"ram_gib": 495.82,
"net_mbps": 35000,
"drive": {
"name": "ephem", "size_gib": 3492,
ramsrivatsa marked this conversation as resolved.
Show resolved Hide resolved
"read_io_latency_ms": {
"minimum_value":0.05,
"low":0.10, "mid":0.125, "high":0.17,
"maximum_value":2.05, "confidence":0.9
},
"read_io_per_s": 16000000, "write_io_per_s": 880000,
"block_size_kib": 4, "single_tenant": true
}
},

"i3en.large": {
"name": "i3en.large",
"cpu": 2,
"cpu_ghz": 3.1,
"ram_gib": 15.8,
"net_mbps": 4000,
"drive": {
"name": "ephem", "size_gib": 1150,
"read_io_latency_ms": {
"minimum_value":0.07,
"low":0.08, "mid":0.12, "high":0.20,
"maximum_value":2, "confidence":0.9
},
"read_io_per_s": 42500, "write_io_per_s": 32500,
"block_size_kib": 4, "single_tenant": false
}
},
"i3en.xlarge": {
"name": "i3en.xlarge",
"cpu": 4,
Expand Down Expand Up @@ -379,6 +421,18 @@
"block_size_kib": 4, "single_tenant": true
}
},
"i3en.6xlarge": {
"name": "i3en.6xlarge",
"cpu": 24,
"cpu_ghz": 3.1,
"ram_gib": 186.62,
"net_mbps": 12000,
ramsrivatsa marked this conversation as resolved.
Show resolved Hide resolved
"drive": {"name": "ephem", "size_gib": 14000,
"read_io_latency_ms": {"minimum_value":0.07, "low":0.08, "mid":0.12, "high":0.16, "maximum_value":2, "confidence":0.9},
"read_io_per_s": 500000, "write_io_per_s": 400000,
"block_size_kib": 4, "single_tenant": true
}
},
"m5d.large": {
"name": "m5d.large",
"cpu": 2,
Expand Down Expand Up @@ -650,6 +704,19 @@
"block_size_kib": 4, "single_tenant": true
}
},
"r5d.16xlarge": {
"name": "r5d.16xlarge",
"cpu": 64,
"cpu_ghz": 3.1,
"ram_gib": 512,
"net_mbps": 20000,
"drive": {
"name": "ephem", "size_gib": 2200,
"read_io_latency_ms": {"minimum_value":0.07, "low":0.08, "mid":0.12, "high":0.20, "maximum_value":2, "confidence":0.9},
"read_io_per_s": 933332, "write_io_per_s": 466666,
"block_size_kib": 4, "single_tenant": true
}
},
"r5dn.large": {
"name": "r5dn.large",
"cpu": 2,
Expand Down
Loading