service-capacity-modeling 0.3.65__py3-none-any.whl → 0.3.67__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of service-capacity-modeling might be problematic. Click here for more details.

@@ -115,7 +115,12 @@ def calculate_vitals_for_capacity_planner(
115
115
  needed_memory_gib = get_memory_from_current_capacity(
116
116
  current_capacity, desires.buffers
117
117
  )
118
- needed_disk_gib = get_disk_from_current_capacity(current_capacity, desires.buffers)
118
+ if current_capacity.cluster_drive is None:
119
+ needed_disk_gib = 0.0
120
+ else:
121
+ needed_disk_gib = get_disk_from_current_capacity(
122
+ current_capacity, desires.buffers
123
+ )
119
124
  return needed_cores, needed_network_mbps, needed_memory_gib, needed_disk_gib
120
125
 
121
126
 
@@ -250,6 +255,10 @@ def _estimate_evcache_cluster_zonal( # noqa: C901,E501 pylint: disable=too-many
250
255
  copies_per_region=copies_per_region,
251
256
  )
252
257
 
258
+ # reject instances without ephemeral drives is the requirements need disk
259
+ if requirement.disk_gib.mid > 0.0 and instance.drive is None:
260
+ return None
261
+
253
262
  # Account for sidecars and base system memory
254
263
  base_mem = (
255
264
  desires.data_shape.reserved_instance_app_mem_gib
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: service-capacity-modeling
3
- Version: 0.3.65
3
+ Version: 0.3.67
4
4
  Summary: Contains utilities for modeling capacity for pluggable workloads
5
5
  Author: Joseph Lynch
6
6
  Author-email: josephl@netflix.com
@@ -52,7 +52,7 @@ service_capacity_modeling/models/org/netflix/crdb.py,sha256=AlHdGFpR1RmwQSZsiuiH
52
52
  service_capacity_modeling/models/org/netflix/ddb.py,sha256=GDoXVIpDDY6xDB0dsiaz7RAPPj-qffTrM9N6w5-5ndg,26311
53
53
  service_capacity_modeling/models/org/netflix/elasticsearch.py,sha256=746WYY_WSeMgY-Go7wvWGYOxfFV8ryupNThvDZHPbGo,23685
54
54
  service_capacity_modeling/models/org/netflix/entity.py,sha256=M0vzwhf8UAbVxnXspAkN4GEbq3rix6yoky6W2oDG6a0,8648
55
- service_capacity_modeling/models/org/netflix/evcache.py,sha256=i2SWTUTIMVqNMJpJ_xQQT7NsWqHubZJEwoGz5vq-3gk,24968
55
+ service_capacity_modeling/models/org/netflix/evcache.py,sha256=isONE5UF-b8gCgdGB1iMYOrwgKAHghYJiyoBfcYJ1ac,25246
56
56
  service_capacity_modeling/models/org/netflix/graphkv.py,sha256=iS5QDDv9_hNY6nIgdL-umB439qP7-jN-n6_Tl6d-ZSo,8557
57
57
  service_capacity_modeling/models/org/netflix/iso_date_math.py,sha256=CPGHLmbGeNqkcYcmCkLKhPZcAU-yTJ2HjvuXdnNyCYc,996
58
58
  service_capacity_modeling/models/org/netflix/kafka.py,sha256=FiuBml8uWOVfPFZ37NvZW13nMVtFE4VDf_SZIFdw4sA,25515
@@ -69,9 +69,9 @@ service_capacity_modeling/tools/auto_shape.py,sha256=41pfR40BN-xJS8js4BWSoqT67Jh
69
69
  service_capacity_modeling/tools/fetch_pricing.py,sha256=JkgJPTE0SVj8sdGQvo0HN-Hdv3nfA2tu7C_Arad5aX8,3762
70
70
  service_capacity_modeling/tools/generate_missing.py,sha256=uvr9fQanx3bm4KTneH-x7EOQvO7cVV0i9gdQvArPCuY,2947
71
71
  service_capacity_modeling/tools/instance_families.py,sha256=e9JWSIdljSmHI8Nb2MI5Ld9JqQ7WdOtPtV7g3oR7ZiU,7764
72
- service_capacity_modeling-0.3.65.dist-info/licenses/LICENSE,sha256=nl_Lt5v9VvJ-5lWJDT4ddKAG-VZ-2IaLmbzpgYDz2hU,11343
73
- service_capacity_modeling-0.3.65.dist-info/METADATA,sha256=f-Ew79dkSLB26PjRYYqoZVFjjY_SaF3b3V5JjI5AB4U,10214
74
- service_capacity_modeling-0.3.65.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
75
- service_capacity_modeling-0.3.65.dist-info/entry_points.txt,sha256=ZsjzpG5SomWpT1zCE19n1uSXKH2gTI_yc33sdl0vmJg,146
76
- service_capacity_modeling-0.3.65.dist-info/top_level.txt,sha256=H8XjTCLgR3enHq5t3bIbxt9SeUkUT8HT_SDv2dgIT_A,26
77
- service_capacity_modeling-0.3.65.dist-info/RECORD,,
72
+ service_capacity_modeling-0.3.67.dist-info/licenses/LICENSE,sha256=nl_Lt5v9VvJ-5lWJDT4ddKAG-VZ-2IaLmbzpgYDz2hU,11343
73
+ service_capacity_modeling-0.3.67.dist-info/METADATA,sha256=MCm5WB9zHK6G3f4II4EjCaCZK8L_miMqsNRaFe8QOpM,10214
74
+ service_capacity_modeling-0.3.67.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
75
+ service_capacity_modeling-0.3.67.dist-info/entry_points.txt,sha256=ZsjzpG5SomWpT1zCE19n1uSXKH2gTI_yc33sdl0vmJg,146
76
+ service_capacity_modeling-0.3.67.dist-info/top_level.txt,sha256=H8XjTCLgR3enHq5t3bIbxt9SeUkUT8HT_SDv2dgIT_A,26
77
+ service_capacity_modeling-0.3.67.dist-info/RECORD,,