For partial MoveTables, setup reverse shard routing rules on workflow creation#11415
Merged
mattlord merged 13 commits intovitessio:mainfrom Oct 5, 2022
Merged
Conversation
Signed-off-by: Matt Lord <mattalord@gmail.com>
…les. Enhance e2e test to test for this as well as switch the remaining shard so that all shards are switched Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Matt Lord <mattalord@gmail.com>
…utover_routing Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
And other minor changes after self review Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Collaborator
I think we should document it. @rohit-nayak-ps thoughts? |
Member
Yes, that is the plan. We will have a link from |
Member
Author
|
Please note that this will be merged (and backported to release-15.0) just after the v15 RC1 release so that:
|
…utover_routing Signed-off-by: Matt Lord <mattalord@gmail.com>
mattlord
added a commit
that referenced
this pull request
Oct 6, 2022
… creation (#11415) (#11447) * Testing.... Signed-off-by: Matt Lord <mattalord@gmail.com> * Setup reverse routing rules at the start of the first partial movetables. Enhance e2e test to test for this as well as switch the remaining shard so that all shards are switched Signed-off-by: Rohit Nayak <rohit@planetscale.com> * Update display representation of state for partially moved keyspaces Signed-off-by: Rohit Nayak <rohit@planetscale.com> * Test improvements Signed-off-by: Matt Lord <mattalord@gmail.com> * Cleanup shard routing rules on cancel/complete Signed-off-by: Matt Lord <mattalord@gmail.com> * Cleanup intermediate changes Signed-off-by: Matt Lord <mattalord@gmail.com> * Fix DryRun TrafficSwitcher and its tests Signed-off-by: Matt Lord <mattalord@gmail.com> * Support concurrent partial movetables for N keyspaces And other minor changes after self review Signed-off-by: Matt Lord <mattalord@gmail.com> * Avoid unnecessary save + rebuild steps Signed-off-by: Matt Lord <mattalord@gmail.com> * Add secondary ordering for shard routing rules on to_keyspace Signed-off-by: Matt Lord <mattalord@gmail.com> * Minor changes after self review Signed-off-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Rohit Nayak <rohit@planetscale.com> Co-authored-by: Rohit Nayak <rohit@planetscale.com> Signed-off-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Rohit Nayak <rohit@planetscale.com> Co-authored-by: Rohit Nayak <rohit@planetscale.com>
This was referenced Oct 25, 2022
This was referenced May 22, 2023
This was referenced Jun 20, 2023
This was referenced Feb 2, 2024
This was referenced Feb 11, 2024
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.
Description
For normal
MoveTablesoperations — where you're moving tables from one keyspace to another, i.e. the move is at the keyspace level — global routing rules are put in place when the workflow is created so that any attempted access of those tables on the target keyspace are routed to the source keyspace. (In this scenario shard targeting is how you would explicitly get around this routing.)For partial
MoveTablesoperations, you're moving the tables from one keyspace to another one shard at a time — so the move is per shard rather than per keyspace. In this scenario you want all traffic to go to one side or the other for a given shard, including shard targeted queries. This then offers the same kind of "global" (scoped to a shard) routing at the shard level that you would expect when doing keyspace levelMoveTables. This PR implements that functionality.Related Issue(s)
Checklist