Skip to content

Commit

Permalink
tests: AZs in test_sharding_split_smoke
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsp committed Dec 2, 2024
1 parent 576f188 commit 2882af6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_runner/regress/test_sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,13 @@ def test_sharding_split_smoke(
# We will have 2 shards per pageserver once done (including secondaries)
neon_env_builder.num_pageservers = split_shard_count

# Two AZs
def assign_az(ps_cfg):
az = f"az-{(ps_cfg['id'] - 1) % 2}"
ps_cfg["availability_zone"] = az

neon_env_builder.pageserver_config_override = assign_az

# 1MiB stripes: enable getting some meaningful data distribution without
# writing large quantities of data in this test. The stripe size is given
# in number of 8KiB pages.
Expand Down

0 comments on commit 2882af6

Please sign in to comment.