Skip to content

feat(shard-distributor): running algorithm in shadow-mode#7544

Merged
eleonoradgr merged 5 commits intocadence-workflow:masterfrom
eleonoradgr:shadow-algorithm
Jan 5, 2026
Merged

feat(shard-distributor): running algorithm in shadow-mode#7544
eleonoradgr merged 5 commits intocadence-workflow:masterfrom
eleonoradgr:shadow-algorithm

Conversation

@eleonoradgr
Copy link
Contributor

@eleonoradgr eleonoradgr commented Dec 17, 2025

What changed?

  • running the rebalancing loop even if the namespace is not onboarded to use the SD.
  • not applying the new shard assignment to the store, if the namespace is not onboarded.
  • log the old and the new shard assignments if the namespace is not onboarded.

Why?
Even if a namespace is not onboarded, we want to be able to compare how the rebalancing would look like when onboarded. This allow us to detect if the algorithms we are using for rebalancing are improving before introducing the change.

How did you test it?
tested locally and with unit tests

Potential risks
increase of resources consumption for SD, right now all the namespaces not onboarded are noop, with this change we will run the rebalancing loop for these domanis as well.

Release notes

Documentation Changes

Signed-off-by: edigregorio <edigregorio@uber.com>
Signed-off-by: edigregorio <edigregorio@uber.com>
Signed-off-by: edigregorio <edigregorio@uber.com>
Signed-off-by: edigregorio <edigregorio@uber.com>
Signed-off-by: edigregorio <edigregorio@uber.com>
@eleonoradgr eleonoradgr merged commit c7dcced into cadence-workflow:master Jan 5, 2026
57 of 58 checks passed
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.

3 participants