From 8fcdb64801dc9cc8c72298776a26b58e2f467350 Mon Sep 17 00:00:00 2001 From: David Buckley Date: Thu, 29 Aug 2024 15:48:57 +0100 Subject: [PATCH] fix benchmark --- lib/carbon/tests/benchmark_cache.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/carbon/tests/benchmark_cache.py b/lib/carbon/tests/benchmark_cache.py index 1c2b13791..aa7948f54 100644 --- a/lib/carbon/tests/benchmark_cache.py +++ b/lib/carbon/tests/benchmark_cache.py @@ -4,6 +4,10 @@ NaiveStrategy, MaxStrategy, RandomStrategy, SortedStrategy, \ TimeSortedStrategy, BucketMaxStrategy +from carbon.conf import settings + +settings.CACHE_SIZE_LOW_WATERMARK = settings.MAX_CACHE_SIZE * 0.95 +settings.CACHE_SIZE_HARD_MAX = settings.MAX_CACHE_SIZE * 1.05 metric_cache = _MetricCache(DrainStrategy) count = 0