service-capacity-modeling 0.3.67__tar.gz → 0.3.68__tar.gz
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.
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/PKG-INFO +1 -1
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/interface.py +16 -1
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/common.py +1 -1
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/cassandra.py +0 -1
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling.egg-info/PKG-INFO +1 -1
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/LICENSE +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/README.md +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/__init__.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/capacity_planner.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/__init__.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/__init__.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/pricing/aws/3yr-reserved_ec2.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/pricing/aws/3yr-reserved_zz-overrides.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/profiles.txt +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c5.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c5a.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c5d.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c5n.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c6a.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c6i.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c6id.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c7a.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_c7i.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m4.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m5.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m5n.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m6a.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m6i.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m6id.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m6idn.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m6in.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m7a.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_m7i.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r4.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r5.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r5n.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r6a.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r6i.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r6id.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r6idn.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r6in.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r7a.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/auto_r7i.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/manual_drives.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/manual_instances.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/hardware/profiles/shapes/aws/manual_services.json +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/__init__.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/headroom_strategy.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/__init__.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/__init__.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/aurora.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/counter.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/crdb.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/ddb.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/elasticsearch.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/entity.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/evcache.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/graphkv.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/iso_date_math.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/kafka.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/key_value.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/postgres.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/rds.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/stateless_java.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/time_series.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/time_series_config.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/wal.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/org/netflix/zookeeper.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/models/utils.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/stats.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/tools/__init__.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/tools/auto_shape.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/tools/fetch_pricing.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/tools/generate_missing.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling/tools/instance_families.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling.egg-info/SOURCES.txt +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling.egg-info/dependency_links.txt +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling.egg-info/entry_points.txt +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling.egg-info/requires.txt +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/service_capacity_modeling.egg-info/top_level.txt +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/setup.cfg +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/setup.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_arguments.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_buffers.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_common.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_desire_merge.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_generate_scenarios.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_hardware.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_hardware_shapes.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_headroom_strategy.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_io2.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_model_dump.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_reproducible.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_simulation.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_utils.py +0 -0
- {service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_working_set.py +0 -0
|
@@ -876,7 +876,22 @@ class CapacityDesires(ExcludeUnsetModel):
|
|
|
876
876
|
|
|
877
877
|
@property
|
|
878
878
|
def reference_shape(self) -> Instance:
|
|
879
|
-
|
|
879
|
+
if not self.current_clusters:
|
|
880
|
+
return default_reference_shape
|
|
881
|
+
|
|
882
|
+
zonal, regional = (self.current_clusters.zonal, self.current_clusters.regional)
|
|
883
|
+
if zonal and regional:
|
|
884
|
+
raise ValueError(
|
|
885
|
+
"The current cluster should not have both "
|
|
886
|
+
"zonal and regional instances. They're mutually exclusive."
|
|
887
|
+
)
|
|
888
|
+
|
|
889
|
+
if zonal and zonal[0].cluster_instance:
|
|
890
|
+
return zonal[0].cluster_instance
|
|
891
|
+
|
|
892
|
+
if regional and regional[0].cluster_instance:
|
|
893
|
+
return regional[0].cluster_instance
|
|
894
|
+
|
|
880
895
|
return default_reference_shape
|
|
881
896
|
|
|
882
897
|
def merge_with(self, defaults: "CapacityDesires") -> "CapacityDesires":
|
|
@@ -900,7 +900,7 @@ def zonal_requirements_from_current(
|
|
|
900
900
|
mem_gib=certain_float(needed_memory_gib),
|
|
901
901
|
disk_gib=certain_float(needed_disk_gib),
|
|
902
902
|
network_mbps=certain_float(needed_network_mbps),
|
|
903
|
-
reference_shape=
|
|
903
|
+
reference_shape=reference_shape,
|
|
904
904
|
)
|
|
905
905
|
else:
|
|
906
906
|
raise ValueError("Please check if current_cluster is populated correctly.")
|
|
@@ -164,7 +164,6 @@ def _estimate_cassandra_requirement( # pylint: disable=too-many-positional-argu
|
|
|
164
164
|
capacity_requirement = zonal_requirements_from_current(
|
|
165
165
|
desires.current_clusters, desires.buffers, instance, reference_shape
|
|
166
166
|
)
|
|
167
|
-
reference_shape = capacity_requirement.reference_shape
|
|
168
167
|
disk_scale, _ = derived_buffer_for_component(
|
|
169
168
|
desires.buffers.derived, ["storage", "disk"]
|
|
170
169
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_arguments.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_desire_merge.py
RENAMED
|
File without changes
|
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_hardware.py
RENAMED
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_hardware_shapes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_model_dump.py
RENAMED
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_reproducible.py
RENAMED
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_simulation.py
RENAMED
|
File without changes
|
|
File without changes
|
{service_capacity_modeling-0.3.67 → service_capacity_modeling-0.3.68}/tests/test_working_set.py
RENAMED
|
File without changes
|