From 66f80e77ba418c6ecab1016b6b8f13beff9f3ce3 Mon Sep 17 00:00:00 2001 From: Vlad Lazar Date: Wed, 9 Apr 2025 17:32:19 +0100 Subject: [PATCH] tests/performance: reconcile until idle before benchmark (#11435) We'd like to run benchmarks starting from a steady state. To this end, do a reconciliation round before proceeding with the benchmark. This is useful for benchmarks that use tenant dir snapshots since a non-standard tenant configuration is used to generate the snapshot. The storage controller is not aware of the non default tenant configuration and will reconcile while the bench is running. --- test_runner/performance/pageserver/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_runner/performance/pageserver/util.py b/test_runner/performance/pageserver/util.py index 7a6d88f79c..b50659defc 100644 --- a/test_runner/performance/pageserver/util.py +++ b/test_runner/performance/pageserver/util.py @@ -40,6 +40,8 @@ def ensure_pageserver_ready_for_benchmarking(env: NeonEnv, n_tenants: int): for layer in info.historic_layers: assert not layer.remote + env.storage_controller.reconcile_until_idle(timeout_secs=60) + log.info("ready")