Skip to content

tt replicaset promote for cartridge #4109

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 #3850
TarantoolBot opened this issue Mar 26, 2024 · 0 comments
Closed
Tracked by #3850

tt replicaset promote for cartridge #4109

TarantoolBot opened this issue Mar 26, 2024 · 0 comments
Labels

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Mar 26, 2024

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

SME: @ askalt @ psergee

Details

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

This patch adds an ability to promote an instance
in the cartridge replicaset with tt replicaset promote.

tt replicaset promote [flags] (<APP_NAME:INSTANCE_NAME> | <URI>)

It operates according to the [1]:

  • In the case of "disabled" / "eventual" failover changes the failover priority.
    Please note, in this case, consistency is not guaranteed and replication conflicts may occur.

  • In the case of "stateful" / "raft" it calls 'cartridge.failover_promote()' and waits
    with a timeout (can be specified) until the instance transitions to the rw state.
    If -f is specified, it passes "force_inconsistency" as true.

  1. https://www.tarantool.io/en/doc/2.11/book/cartridge/cartridge_dev/#manual-leader-promotion

Part of #315
Requested by @askalt in tarantool/tt@e787612.

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

No branches or pull requests

3 participants