Skip to content

Document box.info.election #3680

@TarantoolBot

Description

@TarantoolBot

Related dev. issue(s): tarantool/tarantool#8931

Product: Tarantool
Since: 3.0
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/election/
SME: @ Astronomax

Details

box.info.election now contains one more field: leader_name: string.
There are several possible values ​​for this field:

  • nil, if there is no leader in a cluster.

  • box.NULL, if there is a leader, but he does not have a name.

  • some string, if there is a leader and he has a name.

Example:

tarantool> box.info.election
---
- leader_idle: 0
  leader_name: node1
  state: leader
  vote: 1
  term: 3
  leader: 1
...

[box-info-election] https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/election/
Requested by @ Astronomax in tarantool/tarantool@307f3c5.

Metadata

Metadata

Assignees

Labels

3.0featureA new functionalityreplication[area] Related to Replication

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions