Skip to content
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

config: failover mode and election mode consistency #3893

Closed
Tracked by #4294
TarantoolBot opened this issue Dec 6, 2023 · 0 comments · Fixed by #4461
Closed
Tracked by #4294

config: failover mode and election mode consistency #3893

TarantoolBot opened this issue Dec 6, 2023 · 0 comments · Fixed by #4461
Assignees

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Dec 6, 2023

Related dev. issue(s): tarantool/tarantool#9431
Related doc. issue(s): https://github.com/tarantool/enterprise_doc/issues/253

Product: Tarantool
Since: 3.0
Root document: https://www.tarantool.io/en/doc/latest/reference/configuration/configuration_reference/#configuration-reference-replication-election-mode
SME: @ Totktonada

Details

replication.failover: election enables RAFT based leader election
mechanism on a replicaset. The instances can be configured in the
following election modes: off, candidate, voter, manual. It is
controlled by the replication.election_mode parameter.

However, the election mode parameter has no sense and confusing for
other failover modes (off, manual, supervised). So, it is
forbidden to set the election modes other than off in failover
modes != election.

Summary:

  • replication.failover: off
    • replication.election_mode: off: OK
    • replication.election_mode: candidate: FAIL
    • replication.election_mode: voter: FAIL
    • replication.election_mode: manual: FAIL
  • replication.failover: manual
    • replication.election_mode: off: OK
    • replication.election_mode: candidate: FAIL
    • replication.election_mode: voter: FAIL
    • replication.election_mode: manual: FAIL
  • replication.failover: election
    • replication.election_mode: off: OK
    • replication.election_mode: candidate: OK
    • replication.election_mode: voter: OK
    • replication.election_mode: manual: OK
  • replication.failover: supervised
    • replication.election_mode: off: OK
    • replication.election_mode: candidate: FAIL
    • replication.election_mode: voter: FAIL
    • replication.election_mode: manual: FAIL
      Requested by @ Totktonada in tarantool/tarantool@a03064b.
@andreyaksenov andreyaksenov removed their assignment Dec 8, 2023
@andreyaksenov andreyaksenov self-assigned this Jun 5, 2024
@andreyaksenov andreyaksenov added 3.1 and removed 3.0 labels Jun 7, 2024
@andreyaksenov andreyaksenov linked a pull request Jun 10, 2024 that will close this issue
@andreyaksenov andreyaksenov removed a link to a pull request Jun 18, 2024
@andreyaksenov andreyaksenov removed their assignment Jun 18, 2024
@andreyaksenov andreyaksenov self-assigned this Aug 19, 2024
@andreyaksenov andreyaksenov added 3.0 and removed 3.1 labels Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants