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

Multi-cell tablet picker #6442

Merged
merged 9 commits into from
Jul 17, 2020

Conversation

deepthi
Copy link
Member

@deepthi deepthi commented Jul 14, 2020

Currently vreplication uses a healthcheck-based tablet picker that is limited to one cell. This PR changes that to a simpler topology-based tablet_picker that can work cross-cell or via cell aliases.
The list of cells / aliases is provided to tablet picker when it is created.

Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi deepthi marked this pull request as ready for review July 16, 2020 01:04
@deepthi deepthi requested a review from sougou as a code owner July 16, 2020 01:04
Signed-off-by: deepthi <deepthi@planetscale.com>
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

LGTM

go/vt/discovery/tablet_picker.go Outdated Show resolved Hide resolved
@deepthi deepthi requested a review from zmagg July 16, 2020 19:30
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

You can merge after fix suggested by @rohit-nayak-ps

Signed-off-by: deepthi <deepthi@planetscale.com>
@deepthi deepthi merged commit f3066ec into vitessio:master Jul 17, 2020
@deepthi
Copy link
Member Author

deepthi commented Jul 17, 2020

All feedback was addressed before merging.

@deepthi deepthi deleted the ds-tablet-picker-multicell branch July 17, 2020 18:27
@deepthi deepthi added this to the v7.0 milestone Jul 17, 2020
@deepthi
Copy link
Member Author

deepthi commented Jul 21, 2020

Should fix #6366, requires re-testing.

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.

None yet

3 participants