Skip to content

new command: tt replicaset expel #4142

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

Closed
Tracked by #4223
TarantoolBot opened this issue Apr 10, 2024 · 0 comments · Fixed by #4330
Closed
Tracked by #4223

new command: tt replicaset expel #4142

TarantoolBot opened this issue Apr 10, 2024 · 0 comments · Fixed by #4330
Assignees
Labels

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Apr 10, 2024

Product: tt CLI
Since: 2.2+ (not released yet)
Root document:

SME: @ oleg-jukovec @ psergee

Details

To do together with other tt replicaset documentation tasks, see #3850.

The patch introduces a new command for the tt replicaset module:

  • tt replicaset expel APP_NAME:INSTANCE_NAME - to expel an instance
    from a cluster.

The command automatically determines a replicaset orchestrator.
Currently, it supports:

  • cartridge - the Cartridge orchestrator for Tarantool <= 2.
  • config - the centralized config orchestrator for Tarantool >= 3.

Usage:

tt replicaset expel [--cartridge|--config|--custom] <APP_NAME:INSTANCE_NAME>

The example of execution:

$ tt replicaset expel myapp:instance-003
   • Discovery application...

Orchestrator:      centralized config
Replicasets state: bootstrapped

• replicaset-001
  Failover: off
  Master:   single
    • instance-001 unix/:./instance-001.iproto rw
    • instance-002 unix/:./instance-002.iproto read
    • instance-003 unix/:./instance-003.iproto read
• replicaset-002
  Failover: off
  Master:   multi
    • instance-004 unix/:./instance-004.iproto rw
    • instance-005 unix/:./instance-005.iproto rw

   • Expel instance: instance-003
   • Done.
$ tt replicaset status myapp
Orchestrator:      centralized config
Replicasets state: bootstrapped

• replicaset-001
  Failover: off
  Master:   single
    • instance-001 unix/:./instance-001.iproto rw
    • instance-002 unix/:./instance-002.iproto read
• replicaset-002
  Failover: off
  Master:   multi
    • instance-004 unix/:./instance-004.iproto rw
    • instance-005 unix/:./instance-005.iproto rw

Closes #318
Requested by @oleg-jukovec in tarantool/tt@61adda9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants