-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
3.0featureA new functionalityA new functionalityreplication[area] Related to Replication[area] Related to Replication
Description
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 functionalityA new functionalityreplication[area] Related to Replication[area] Related to Replication