-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replicaset: add command 'roles remove'
@TarantoolBot document Title: `tt replicaset roles remove` removes roles in the tarantool replicaset with cluster config (3.0) or cartridge orchestrator. This patch introduces new command for the replicaset module. ``` $ tt rs roles remove [--cartridge|--config|--custom] [-f] [--timeout secs] <APP_NAME:INSTANCE_NAME> <ROLE_NAME> [flags] ``` It is possible to provide `cartridge`, `config` or `custom` flag to explicitly state which orchestrator to use. ROLE_NAME is a role to remove from local cluster config in case of `cluster config` orchestrator and directly from all instances of replicaset in case of `cartridge` orchestrator. Command supports `cartridge` and `cluster config` orchestrators only for the entire application. INSTANCE_NAME works only for `cluster config` to provide instance name to remove role from. There are flags supported by this command: - `--global (-G)` for a global scope to add a role (only for `cluster config` orchestrator); - `--instance (-i) string` for an application name target to specify an instance to add a role; - `--replicaset (-r) string` for an application name target to specify a replicaset to add a role; - `--group (-g) string` for an application name target to specify a group to specify a group to add a role (only for `cluster config`); - `--force (-f)` skips instances not found locally in `cluster config` orchestrator. Closes #916
- Loading branch information
1 parent
a2174c3
commit 75d732b
Showing
21 changed files
with
784 additions
and
119 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
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
Oops, something went wrong.