Update Zenith CLI config between runs

This commit is contained in:
Kirill Bulatov
2022-02-24 13:40:32 +03:00
committed by Kirill Bulatov
parent f49990ed43
commit 4d0f7fd1e4
40 changed files with 371 additions and 415 deletions

View File

@@ -30,18 +30,16 @@ def test_bulk_tenant_create(
for i in range(tenants_count):
start = timeit.default_timer()
(tenant, tenant_initial_timeline_id) = env.zenith_cli.create_tenant()
new_timeline_id = env.zenith_cli.branch_timeline(
tenant_id=tenant, ancestor_timeline_id=tenant_initial_timeline_id)
tenant = env.zenith_cli.create_tenant()
env.zenith_cli.create_branch(
f'test_bulk_tenant_create_{tenants_count}_{i}_{use_wal_acceptors}', tenant_id=tenant)
# FIXME: We used to start new safekeepers here. Did that make sense? Should we do it now?
#if use_wal_acceptors == 'with_wa':
# wa_factory.start_n_new(3)
pg_tenant = env.postgres.create_start(
f"test_bulk_tenant_create_{tenants_count}_{i}_{use_wal_acceptors}",
tenant,
timeline_id=new_timeline_id)
f'test_bulk_tenant_create_{tenants_count}_{i}_{use_wal_acceptors}', tenant)
end = timeit.default_timer()
time_slices.append(end - start)