forked from tarantool/tt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tt replicaset upgrade
: support remote replicaset
Part of tarantool#968 @TarantoolBot document Title: `tt replicaset upgrade` supports upgrade database schema on remote replica sets `tt replicaset upgrade` now allows upgrade database schema on remote replica sets within a Tarantool cluster. The feature enables to perform upgrades by targeting specific instances of each replica set. **Usage Example**: Cluster configuration: ``` • router-001 • router-001-a localhost:3305 rw • storage-001 • storage-001-a localhost:3301 rw • storage-001-b localhost:3302 read • storage-002 • storage-002-a localhost:3303 rw • storage-002-b localhost:3304 read ``` To update the schema across this cluster: 1. Update each replica set individually. 2. Select one instance from each replica set to run the command. **Commands**: ```bash $ tt replicaset upgrade tcp://client:secret@127.0.0.1:3301 • storage-001: ok $ tt replicaset upgrade tcp://client:secret@127.0.0.1:3304 • storage-002: ok $ tt replicaset upgrade tcp://client:secret@127.0.0.1:3305 • router-001: ok ```
- Loading branch information
Showing
6 changed files
with
141 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
credentials: | ||
users: | ||
client: | ||
password: 'secret' | ||
roles: [super] | ||
guest: | ||
roles: [super] | ||
|
||
groups: | ||
group-001: | ||
replicasets: | ||
replicaset-001: | ||
instances: | ||
storage-master: | ||
iproto: | ||
listen: | ||
- uri: '127.0.0.1:3301' | ||
database: | ||
mode: rw | ||
storage-replica: | ||
iproto: | ||
listen: | ||
- uri: '127.0.0.1:3302' | ||
database: | ||
mode: ro |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
storage-master: | ||
|
||
storage-replica: | ||
|
This file contains 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