mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-28 02:20:42 +00:00
storcon: change default stripe size to 16 MB (#11168)
## Problem The current stripe size of 256 MB is a bit large, and can cause load imbalances across shards. A stripe size of 16 MB appears more reasonable to avoid hotspots, although we don't see evidence of this in benchmarks. Resolves https://github.com/neondatabase/cloud/issues/25634. Touches https://github.com/neondatabase/cloud/issues/21870. ## Summary of changes * Change the default stripe size to 16 MB. * Remove `ShardParameters::DEFAULT_STRIPE_SIZE`, and only use `pageserver_api::shard::DEFAULT_STRIPE_SIZE`. * Update a bunch of tests that assumed a certain stripe size.
This commit is contained in:
@@ -677,7 +677,7 @@ def test_storage_controller_compute_hook(
|
||||
env.storage_controller.tenant_shard_split(env.initial_tenant, shard_count=2)
|
||||
expect = {
|
||||
"tenant_id": str(env.initial_tenant),
|
||||
"stripe_size": 32768,
|
||||
"stripe_size": 2048,
|
||||
"shards": [
|
||||
{"node_id": int(env.pageservers[1].id), "shard_number": 0},
|
||||
{"node_id": int(env.pageservers[1].id), "shard_number": 1},
|
||||
|
||||
Reference in New Issue
Block a user