-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support Custom SidecarDB Names on VTTablets #12240
Conversation
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
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>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
5b61336
to
787af20
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
787af20
to
dc1977b
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
dd1e53c
to
a9689e1
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
a9689e1
to
0ea1f8d
Compare
5b0abb5
to
aa0cba6
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
751f0fa
to
8d17eb4
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
8d17eb4
to
c4d6759
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
45d4475
to
fe7e759
Compare
Signed-off-by: Matt Lord <mattalord@gmail.com>
fe7e759
to
61f7e61
Compare
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.
some nits, mostly looks good to me.
Signed-off-by: Matt Lord <mattalord@gmail.com>
Thanks for the helpful comments @harshit-gangal ! I believe that I've addressed all of them here: da4ee79 And in a follow-up: 2c11e74 |
Signed-off-by: Matt Lord <mattalord@gmail.com>
This documents the work done in: vitessio/vitess#12240 Signed-off-by: Matt Lord <mattalord@gmail.com>
This documents the work done in: vitessio/vitess#12240 Signed-off-by: Matt Lord <mattalord@gmail.com>
This documents the work done in: vitessio/vitess#12240 Signed-off-by: Matt Lord <mattalord@gmail.com>
This documents the work done in: vitessio/vitess#12240 Signed-off-by: Matt Lord <mattalord@gmail.com>
Description
This PR adds a new experimental feature: keyspace level sidecar database names. For the why, please see the feature request.
In this PR the sidecar db name can only be set when the keyspace is first created via the
CreateKeyspace
vtctl client command using the new--sidecar-db-name
command flag. From that point forward it is immutable (w/o modifying the topo directly outside of Vitess). If no value is specified for the keyspace then it will be set to the default of_vt
when the keyspace is created, and as a fallback the default will also be set when the first tablet is started within the keyspace if for any reason it's not already set in the topo keyspace record.The management of the sidecar database resides entirely within a
vttablet
. This allows eachvttablet
in a keyspace to manage its own sidecar database independently of all other keyspaces and processes in the cluster. This allows e.g. for most tablets within a Vitess cluster to use the default sidecar name of_vt
while some can use a non-standard name of e.g._vt_import
or__virtual_vitess_cluster
for whatever purposes as needed (in various cases the tablet'smysqld
instance may be participating in two distinct vitess clusters or two distinct keyspaces). From outside of thevttablet
, Vitess is able to assume that the standard name of_vt
is being used (including external/3rd party tooling that e.g. may be doing things likevtctlclient ExecuteFetchAsDba
) unless talking directly to a tablet's mysqld instance.Related Issue(s)
Checklist