Merged
Conversation
added 12 commits
August 16, 2018 13:58
… shards Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
…ocess Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
* This change allows us to sort workflows in a deterministic way. Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
jvaidya
reviewed
Aug 26, 2018
Contributor
There was a problem hiding this comment.
This looks good to me on the whole and I think this will be a big improvement for resharding workflow when you are resharding a large number of shards. One question: I do not see you validating the sourceShards and targetShards input parameters. In the case where a human is putting together a SplitDiff or a SplitClone commandline, it would be good to validate these.
Member
Author
|
@jvaidya oh good catch. Will add that validation. |
added 6 commits
August 27, 2018 10:27
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
* Parallel runner should be a generic component of workflows. They don't need to be part of resharding. This way other workflows can benefit from it. * Add tests for horizontal resharding workflow creator. Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
jvaidya
approved these changes
Aug 28, 2018
Contributor
jvaidya
left a comment
There was a problem hiding this comment.
LGTM. Thanks for tackling this.
added 3 commits
August 27, 2018 19:41
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Member
Author
|
I tested this in our dev environment. Created a keyspace with 8 shards and split to 16. The process was super smooth. |
3 tasks
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.
Desc
The following PR handles all the issues described in: #4117
I think I still need to update some tests, but wanted to open it so we can start taking a look at the overall changes.
It looks big but it's mostly cosmetic changes. Notable changes are:
Example
The following is an excerpt of an horizontal resharding from 2 to 4 shards. Only the migrate serving types require approval and the generated workflows are started automatically.
It's a bit hard to see the details, but you can see that now it creates two workflows, one for each shard that is being split spilt.