Skip to content

Start shards in parallel#3448

Merged
ndr-ds merged 1 commit intomainfrom
02-28-start_shards_in_parallel
Feb 28, 2025
Merged

Start shards in parallel#3448
ndr-ds merged 1 commit intomainfrom
02-28-start_shards_in_parallel

Conversation

@ndr-ds
Copy link
Contributor

@ndr-ds ndr-ds commented Feb 28, 2025

Motivation

Right now we start all shards one by one. That doesn't seem necessary, and when starting a large number of shards (like 100 or more), it can take a long time.

Proposal

Change the pod management policy to start all shards at once, in parallel

Test Plan

Deployed a local kind network with 80 shards, saw all of them getting initialized in parallel, much faster

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Copy link
Contributor Author

ndr-ds commented Feb 28, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

@christos-h christos-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea!

Copy link
Contributor Author

ndr-ds commented Feb 28, 2025

Just pasting here from our offline discussion: This affects just the initial deployment, it doesn't affect rolling updates. That's controlled by a different setting, which has rolling updates as the default https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies

@ndr-ds ndr-ds changed the base branch from 02-28-add_option_to_leak_chains_on_benchmark to graphite-base/3448 February 28, 2025 16:34
@ndr-ds ndr-ds force-pushed the 02-28-start_shards_in_parallel branch from 2c2d470 to 3fd187d Compare February 28, 2025 16:34
@ndr-ds ndr-ds force-pushed the graphite-base/3448 branch from e3d282b to da4d752 Compare February 28, 2025 16:34
@ndr-ds ndr-ds changed the base branch from graphite-base/3448 to main February 28, 2025 16:34
Copy link
Contributor Author

ndr-ds commented Feb 28, 2025

Merge activity

  • Feb 28, 11:35 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 28, 11:35 AM EST: A user merged this pull request with Graphite.

@ndr-ds ndr-ds merged commit 3624f1f into main Feb 28, 2025
1 check passed
@ndr-ds ndr-ds deleted the 02-28-start_shards_in_parallel branch February 28, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants