Skip to content

Conversation

@eleonoradgr
Copy link
Contributor

What changed?
Move the logic for the migration mode to use dynamic config instead of static config. Next step is to clean up the static config once the behavior is tested with multiple configuration changes.

Why?
migration should be done incrementally and this is easier to control with config rollout and not code rollout.

How did you test it?
unit tests and local development.

Potential risks
shard-distributor-canary service cannot operate correctly if shard-distributor do not use the right configuration

Release notes

Documentation Changes

Comment on lines +74 to +75
- value: "onboarded"
- value: "local_pass"
Copy link
Member

Choose a reason for hiding this comment

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

is something missing here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is the default value, if you don't express contrains, anf then values with constrains for certain namespaces

// KeyName: shardDistributor.migrationMode
// Value type: String
// Default value: local_pass
// Default value: onboarded
Copy link
Member

Choose a reason for hiding this comment

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

maybe a comment on diifferent values could be helpful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is already there, need to expand up :)

@sankari165
Copy link
Member

nit: there is a typo in the PR title

@eleonoradgr eleonoradgr changed the title feat: [shard-sistributor] rely on dynamic config for migration mode feat: [shard-distributor] rely on dynamic config for migration mode Oct 30, 2025
@eleonoradgr eleonoradgr force-pushed the edigregorio/dynamic-config branch from faff0ba to f063a1e Compare November 10, 2025 12:48
Signed-off-by: edigregorio <edigregorio@uber.com>
Signed-off-by: edigregorio <edigregorio@uber.com>
This reverts commit f063a1e. Signed-off-by: edigregorio <edigregorio@uber.com>
@eleonoradgr eleonoradgr force-pushed the edigregorio/dynamic-config branch from 6bae84e to 6d938ed Compare November 10, 2025 18:45
@eleonoradgr eleonoradgr merged commit b9d79ed into cadence-workflow:master Nov 10, 2025
42 checks passed
Theis-Mathiassen pushed a commit to AndreasHolt/cadence that referenced this pull request Nov 11, 2025
…adence-workflow#7391) <!-- Describe what has changed in this PR --> **What changed?** Move the logic for the migration mode to use dynamic config instead of static config. Next step is to clean up the static config once the behavior is tested with multiple configuration changes. <!-- Tell your future self why have you made these changes --> **Why?** migration should be done incrementally and this is easier to control with config rollout and not code rollout. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** unit tests and local development. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** shard-distributor-canary service cannot operate correctly if shard-distributor do not use the right configuration <!-- Is it notable for release? e.g. schema updates, configuration or data migration required? If so, please mention it, and also update CHANGELOG.md --> **Release notes** <!-- Is there any documentation updates should be made for config, https://cadenceworkflow.io/docs/operation-guide/setup/ ? If so, please open an PR in https://github.com/cadence-workflow/cadence-docs --> **Documentation Changes** --------- Signed-off-by: edigregorio <edigregorio@uber.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants