-
Notifications
You must be signed in to change notification settings - Fork 12
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
tt replicaset upgrade
: support remote replica set
#1030
base: master
Are you sure you want to change the base?
tt replicaset upgrade
: support remote replica set
#1030
Conversation
tt/cli/replicaset/cmd/upgrade.go Lines 152 to 165 in a1c2065
This point was already discussed (in the previous patch), but I found that the Discovery mechanism cannot determine the mode of all instances in a replica set (although it should) using the uri. For example, I try to run $ tt replicaset status tcp://client:[email protected]:3301
Orchestrator: centralized config
Replicasets state: bootstrapped
• storage-001
Failover: manual
• storage-001-a localhost:3301 rw
• storage-001-b localhost:3302 unknown But it knows the correct address $ tt replicaset status new-app:storage-001-a
Orchestrator: centralized config
Replicasets state: bootstrapped
• router-001
Failover: off
Master: single
• router-001-a localhost:3305 rw
• storage-001
Failover: manual
Master: single
• storage-001-a localhost:3301 rw
• storage-001-b localhost:3302 read
• storage-002
Failover: manual
Master: single
• storage-002-a localhost:3303 rw
• storage-002-b localhost:3304 read |
a1c2065
to
692d786
Compare
0a0b288
to
d6d911d
Compare
This patch adds the ability to update the schema on a remote replicaset. Part of tarantool#968
d6d911d
to
68a273e
Compare
Please rebase on the master branch. |
closeConnectors(master, replicas) | ||
return nil, nil, fmt.Errorf( | ||
"can't determine RO/RW mode on instance: %s", fullInstanceName) | ||
// Discovery cannot determine all instance modes of the remote replica set. |
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.
In such cases, we need to update the discovery code rather than create workrounds and spread it across the code.
This patch adds the ability to update the schema on a remote replica set.
Example
Start vshard app.
config.yaml
To update the schema of this cluster, you need to update each replica set individually. Simply select one instance of each replica set and run:
Closes #968