diff --git a/exptr.py b/exptr.py deleted file mode 100644 index 2046681..0000000 --- a/exptr.py +++ /dev/null @@ -1,44 +0,0 @@ -from service_capacity_modeling.capacity_planner import planner -from service_capacity_modeling.interface import AccessPattern, certain_float -from service_capacity_modeling.interface import CapacityDesires -from service_capacity_modeling.interface import DataShape -from service_capacity_modeling.interface import Interval -from service_capacity_modeling.interface import QueryPattern - - -def test_evcache_cpu_bound(): - high_qps = CapacityDesires( - service_tier=0, - query_pattern=QueryPattern( - estimated_read_per_second=Interval( - low=5950000, mid=34800000, high=34800000 * 1.2, confidence=1.0 - ), - estimated_write_per_second=Interval( - low=50000, mid=476000, high=476000 * 1.2, confidence=1.0 - ), - estimated_write_size_bytes=Interval( - low=3778, mid=3778, high=3778 * 1.2, confidence=1.0 - ), - estimated_mean_read_size_bytes=Interval( - low=35, mid=35, high=35 * 1.2, confidence=1.0 - ) - ), - data_shape=DataShape( - estimated_state_size_gib=Interval( - low=36, mid=36, high=36, confidence=1.0 - ), - estimated_state_item_count=Interval( - low=416000000, mid=804000000, high=804000000 * 1.2, confidence=1.0 - ), - ), - ) - - plan = planner.plan_certain( - model_name="org.netflix.evcache", - region="us-east-1", - desires=high_qps, - ) - - print (plan) - -test_evcache_cpu_bound() \ No newline at end of file diff --git a/tests/netflix/test_evcache.py b/tests/netflix/test_evcache.py index 0f4c0fe..966328d 100644 --- a/tests/netflix/test_evcache.py +++ b/tests/netflix/test_evcache.py @@ -116,16 +116,16 @@ def test_evcache_inmemory_high_latency_reads_cpu(): low=19000, mid=35000, high=35000 * 1.2, confidence=1.0 ), estimated_mean_write_size_bytes=Interval( - low=1450, mid=1450, high=1450 * 1.2, confidence=1.0 + low=7250, mid=7250, high=7250 * 1.2, confidence=1.0 ), estimated_mean_read_size_bytes=Interval( - low=1031, mid=1031, high=1031 * 1.2, confidence=1.0 + low=5100, mid=5100, high=5100 * 1.2, confidence=1.0 ), ), data_shape=DataShape( - estimated_state_size_gib=Interval(low=466, mid=466, high=466, confidence=1.0), + estimated_state_size_gib=Interval(low=1662, mid=1662, high=1662, confidence=1.0), estimated_state_item_count=Interval( - low=340000000, mid=526000000, high=526000000 * 1.2, confidence=1.0 + low=750000000, mid=750000000, high=750000000 * 1.2, confidence=1.0 ), ), )