Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This comment has been minimized.
This comment has been minimized.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Orchestrate all the pieces for online resharding with a few admin commands, including moving application traffic from old to new sharded cluster. Includes support for rollbacks with reverse logical replication.
Individual changes
PostCutoverstep (internal) to schema sync to make the old shards suitable for reverse logical replication (e.g., removeWITH GENERATED ALWAYS identityconstraint)SCHEMA_SYNC [pre|post] <source> <destination> <publication>COPY_DATA <source> <destination> <publication> [<replication slot>]REPLICATE <source> <destination> <publication> [<replication slot>]: only setup replication, nothing else. Data isn't synchronized, this is mostly for testing but can be used to create logical replicas that don't need synchronization or which don't currently accept writesSHOW REPLICATION_SLOTS: show replication slots managed by usSHOW SCHEMA_SYNC: track long runningCREATE INDEX-style queriesSHOW TABLE_COPIES: track long-running initial table data sync, with progress details, e.g., rows, bytes written, etc.SHOW TASKS: admin mostly, shows which one of any of the above are running in the backgroundSTOP TASK <id>: cancel any of the background tasksCUTOVER: perform online traffic cutover between old and new shardsRESHARD: do the resharding in one swoop. Equivalent of runningSCHEMA_SYNC PRE,COPY_DATA,SCHEMA_SYNC POST, andCUTOVERmanually.CUTOVERagain. There is no data loss, since reverse replication is setup while traffic is paused.