-
Notifications
You must be signed in to change notification settings - Fork 566
Add a metastore read replica role for read-only routing #6548
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
Open
shuheiktgw
wants to merge
45
commits into
quickwit-oss:main
Choose a base branch
from
shuheiktgw:metastore-read-replica-role
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
cd6b3d3
Add metastore read replica role and config
shuheiktgw 41beabb
Support resolving a read-only PostgreSQL metastore
shuheiktgw 91eeb40
Serve a read-only metastore for the read replica role
shuheiktgw f644a32
Route search-path metastore reads to the read replica
shuheiktgw 8f60c0e
Document the metastore read replica and test read-only resolution
shuheiktgw 91d17f0
Use a read-only MetastoreReadService trait for read routing
shuheiktgw e50cd29
Avoid primary fallback for read replica routing
shuheiktgw f405a5f
Fix clippy warning in read replica config validation
shuheiktgw 902134b
Add searcher metastore read replica setting
shuheiktgw 2b0308b
Remove config URI validation for read replica
shuheiktgw 4832972
Fix metastore gRPC mount comment
shuheiktgw ae8f916
Update metastore readiness checks
shuheiktgw 1828871
Require metastore read replica standalone role
shuheiktgw 150174e
Remove unnecessary unit tests
shuheiktgw 2002587
Refine metastore read replica wiring
shuheiktgw 09c32ad
Fix default service startup in tests
shuheiktgw 6c0c2d6
Simplify metastore read replica validation
shuheiktgw 651617f
Trim metastore read replica config tests
shuheiktgw a513bbb
Classify read-only Postgres errors
shuheiktgw c86f3d8
Merge origin/main into metastore-read-replica-role
shuheiktgw 5d8b9e3
Fix search test clippy warnings
shuheiktgw 2d7e71e
Simplify readiness test mock setup
shuheiktgw 3e6e756
Remove metastore read service
shuheiktgw 43f6074
Merge origin/main into metastore-read-replica-role
shuheiktgw d1b69dd
Merge origin/main into metastore-read-replica-role
shuheiktgw 72f623b
Default metastore read replica routing to false
shuheiktgw 1b98c50
Update Quickwit env var index test
shuheiktgw 66a0652
Exclude read replica role from TLS test nodes
shuheiktgw d895d39
Use ensure for metastore checks
shuheiktgw 2f7bc69
Simplify read replica URI assertion
shuheiktgw 305759a
Test read-only Postgres writes
shuheiktgw 56dcfaa
Use service name in metastore connection log
shuheiktgw ab0720f
Use read replica metastore directly
shuheiktgw 74c9efe
Fix read replica metastore readiness
shuheiktgw 1ebe477
Refactor local metastore server handling
shuheiktgw e8d51a9
Validate metastore read replica searcher config
shuheiktgw ae87129
improve errors
PSeitz-dd 3bec3bd
make test deterministic
PSeitz 2592a63
move metastore to own file
PSeitz cea586a
Merge remote-tracking branch 'upstream/main' into metastore-read-repl…
PSeitz 1d278c2
Cache PostgreSQL metastore environment flags
PSeitz 74b33d2
Make read replica readiness selection explicit
PSeitz cd43f36
Format PostgreSQL metastore options
PSeitz c0bba12
Fix read-only resolver error assertion
PSeitz 1d2ae17
add more logging
PSeitz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The reason we need this flag in addition to
metastore_read_replica_uriis that users can setmetastore_read_replica_urivia theQW_METASTORE_READ_REPLICA_URIenvironment variable. Without this flag, searchers would need access to that same environment variable even though they don’t need the secret itself.