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

Tolerate slightly stale results in authorized entry crawl #1385

Merged
merged 3 commits into from
Feb 12, 2020

Conversation

kirutthika
Copy link
Contributor

@kirutthika kirutthika commented Feb 10, 2020

Enabling reads across GetNodeSelectors and ListRegistrationEntries operations if read DB Connections are provided.
The tolerateStale is enabled by default for these operations in node handlers. If the server is not configured with readOnly DB connections, the reads are defaulted to primary readWrite DB instances.

Signed-off-by: Kirutthika Raja kirutthika.raja@uber.com

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality
Enabling read operations across read replicas by turning on the tolerateStale flag.

Description of change
Enabling reads across GetNodeSelectors and ListRegistrationEntries operations if read DB Connections are provided.
The tolerateStale is enabled by default for these operations in node handlers. If the server is not configured with readOnly DB connections, the reads are defaulted to primary readWrite DB instances.

Which issue this PR fixes
#1239

…erations if read DB Connections are provided.

The tolerateStale is enabled by default for these operations in node handlers. If the server is not configured with readOnly DB connections, the reads are defaulted to primary readWrite DB instances.

Signed-off-by: Kirutthika Raja <kirutthika.raja@uber.com>
Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

Thanks @kirutthika! Just one small comment...

pkg/server/util/regentryutil/fetch.go Outdated Show resolved Hide resolved
@azdagron azdagron changed the title Enabling reads across GetNodeSelectors and ListRegistrationEntries operations if read DB Connections are provided. The tolerateStale is enabled by default for these operations in node handlers. If the server is not configured with readOnly DB connections, the reads are defaulted to primary readWrite DB instances. Tolerate slightly stale results in authorized entry crawl Feb 11, 2020
…down from FetchRegistrationEntries.

Signed-off-by: Kirutthika Raja <kirutthika.raja@uber.com>
@kirutthika
Copy link
Contributor Author

Thanks @kirutthika! Just one small comment...

Thanks @azdagron, addressed the comments with the latest diff.

Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

Thanks, @kirutthika!

@azdagron azdagron merged commit 72471ec into spiffe:master Feb 12, 2020
@kirutthika kirutthika deleted the kr/test-enable-ro branch February 12, 2020 01:05
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