service-capacity-modeling 0.3.72__py3-none-any.whl → 0.3.73__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.

@@ -82,6 +82,11 @@ def _estimate_elasticsearch_requirement( # noqa: E501 pylint: disable=too-many-
82
82
  The input desires should be the **regional** desire, and this function will
83
83
  return the zonal capacity requirement
84
84
  """
85
+ # NOTE: ElasticSearch is only using buffers for disk but CPU and disk
86
+ # have hard coded values. In a follow-up change these values (1.5 and 2)
87
+ # should be converted to buffers as well to be idiomatic with the other
88
+ # stateful models (e.g. cassandra / EVCache, kafka)
89
+
85
90
  # Keep half of the cores free for background work (merging mostly)
86
91
  needed_cores = normalize_cores(
87
92
  core_count=math.ceil(sqrt_staffed_cores(desires) * 1.5),
@@ -191,9 +196,9 @@ class NflxElasticsearchDataCapacityModel(CapacityModel):
191
196
  def default_desires(
192
197
  user_desires, extra_model_arguments: Dict[str, Any]
193
198
  ) -> CapacityDesires:
194
- return CapacityDesires(
195
- buffers=NflxElasticsearchDataCapacityModel.default_buffers()
196
- )
199
+ desires = CapacityModel.default_desires(user_desires, extra_model_arguments)
200
+ desires.buffers = NflxElasticsearchDataCapacityModel.default_buffers()
201
+ return desires
197
202
 
198
203
  @staticmethod
199
204
  def capacity_plan(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: service-capacity-modeling
3
- Version: 0.3.72
3
+ Version: 0.3.73
4
4
  Summary: Contains utilities for modeling capacity for pluggable workloads
5
5
  Author: Joseph Lynch
6
6
  Author-email: josephl@netflix.com
@@ -54,7 +54,7 @@ service_capacity_modeling/models/org/netflix/cassandra.py,sha256=QdSurxiv9XiCK7z
54
54
  service_capacity_modeling/models/org/netflix/counter.py,sha256=hOVRRCgCPU-A5TdLKQXc_mWTQpkKOWRNjOeECdDP7kA,9205
55
55
  service_capacity_modeling/models/org/netflix/crdb.py,sha256=ELIbxwfNsJcEkNGW7qtz0SEzt3Vj6wj8QL5QQeebIlo,20635
56
56
  service_capacity_modeling/models/org/netflix/ddb.py,sha256=GDoXVIpDDY6xDB0dsiaz7RAPPj-qffTrM9N6w5-5ndg,26311
57
- service_capacity_modeling/models/org/netflix/elasticsearch.py,sha256=mYmr6DA3EyqXCsEhwJArK_VsUDLq5Pi3E8jUUEfhnRM,24729
57
+ service_capacity_modeling/models/org/netflix/elasticsearch.py,sha256=AfyqfC4Y_QDyvYLBbeq8_ReM9q54RUNrZkOsSBjBgIc,25085
58
58
  service_capacity_modeling/models/org/netflix/entity.py,sha256=M0vzwhf8UAbVxnXspAkN4GEbq3rix6yoky6W2oDG6a0,8648
59
59
  service_capacity_modeling/models/org/netflix/evcache.py,sha256=70lgaRgNwJH84o6JVoUDplkCi4v-WzEX3nxVagoJjDc,25775
60
60
  service_capacity_modeling/models/org/netflix/graphkv.py,sha256=iS5QDDv9_hNY6nIgdL-umB439qP7-jN-n6_Tl6d-ZSo,8557
@@ -73,9 +73,9 @@ service_capacity_modeling/tools/auto_shape.py,sha256=Pe9a7vbFxqIy8eL8ssENTu9FNnF
73
73
  service_capacity_modeling/tools/fetch_pricing.py,sha256=JkgJPTE0SVj8sdGQvo0HN-Hdv3nfA2tu7C_Arad5aX8,3762
74
74
  service_capacity_modeling/tools/generate_missing.py,sha256=XqUs54CPfli4XtK0rEiFKqDvpwCiMAD8wrl7fAxpYHs,3062
75
75
  service_capacity_modeling/tools/instance_families.py,sha256=n16oo_2dqKzZhmbubezOuAp0sVnS1H3OSeYOa8uQDJs,8980
76
- service_capacity_modeling-0.3.72.dist-info/licenses/LICENSE,sha256=nl_Lt5v9VvJ-5lWJDT4ddKAG-VZ-2IaLmbzpgYDz2hU,11343
77
- service_capacity_modeling-0.3.72.dist-info/METADATA,sha256=Vv2NMoxfvLsCjbPJz5DMB5awr7HkeKYQs9EWdJM1TLQ,10214
78
- service_capacity_modeling-0.3.72.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
- service_capacity_modeling-0.3.72.dist-info/entry_points.txt,sha256=ZsjzpG5SomWpT1zCE19n1uSXKH2gTI_yc33sdl0vmJg,146
80
- service_capacity_modeling-0.3.72.dist-info/top_level.txt,sha256=H8XjTCLgR3enHq5t3bIbxt9SeUkUT8HT_SDv2dgIT_A,26
81
- service_capacity_modeling-0.3.72.dist-info/RECORD,,
76
+ service_capacity_modeling-0.3.73.dist-info/licenses/LICENSE,sha256=nl_Lt5v9VvJ-5lWJDT4ddKAG-VZ-2IaLmbzpgYDz2hU,11343
77
+ service_capacity_modeling-0.3.73.dist-info/METADATA,sha256=A_NfDo4li4leU9Y_zkKSW9tpS5WOW25NB1s444l5bD0,10214
78
+ service_capacity_modeling-0.3.73.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
+ service_capacity_modeling-0.3.73.dist-info/entry_points.txt,sha256=ZsjzpG5SomWpT1zCE19n1uSXKH2gTI_yc33sdl0vmJg,146
80
+ service_capacity_modeling-0.3.73.dist-info/top_level.txt,sha256=H8XjTCLgR3enHq5t3bIbxt9SeUkUT8HT_SDv2dgIT_A,26
81
+ service_capacity_modeling-0.3.73.dist-info/RECORD,,