-
Notifications
You must be signed in to change notification settings - Fork 869
feat: [shard-distributor] rely on dynamic config for migration mode #7391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [shard-distributor] rely on dynamic config for migration mode #7391
Conversation
| - value: "onboarded" | ||
| - value: "local_pass" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is something missing here?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
|
nit: there is a typo in the PR title |
faff0ba to
f063a1e
Compare
Signed-off-by: edigregorio <[email protected]>
Signed-off-by: edigregorio <[email protected]>
This reverts commit f063a1e. Signed-off-by: edigregorio <[email protected]>
6bae84e to
6d938ed
Compare
…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 <[email protected]>
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