Skip to content
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

Add dynamic config for EnableReadVisibilityFromOS #6560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neil-xie
Copy link
Member

What changed?
Add dynamic config for EnableReadVisibilityFromOS to control reading from ES/OS during OS migration to better collect metrics
Fixed a minor bug that only checks ES when receive list request has large page size

Why?
OpenSearch migration

How did you test it?
Config change

Potential risks

Release notes

Documentation Changes

// Value type: Bool
// Default value: true
// Allowed filters: DomainName
EnableReadVisibilityFromOS
Copy link
Member

Choose a reason for hiding this comment

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

There are 3 bool flags which can be set independently. What if more than one is true or all is false? Behavior is not clear from config perspective. Ideally there should be one flag ReadVisibilityStoreName

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that can help preventing adding more flags here. When advanced visibility is enabled, it will first read from the advanced visibility store (ES or OS/Pinot), ES always has the most priority. If all of them are false, it will fall back to read from DB.
https://github.com/cadence-workflow/cadence/blob/master/common/persistence/visibility_dual_manager.go#L318

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Adding a new dynamicconfig to all the environments is also a lot of manual work. If it's feasible to switch to a single flag let's do that

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