Skip to content

[2sp] elections: new box.info field and binary protocol changes #2837

Closed
@TarantoolBot

Description

@TarantoolBot

Product: Tarantool
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/election/
https://www.tarantool.io/en/doc/latest/dev_guide/internals/box_protocol/
SME: @ sergepetrenko

Details

  • box.info.election got a new field: leader_idle.
    When elections are enabled, it shows time in seconds since the last
    interaction with the known leader.

  • IPROTO_RAFT request got 2 new fields:
    IPROTO_RAFT_LEADER_ID = 0x04 - uint - the id of the current leader
    (as seen by the node which issued the request).
    IPROTO_RAFT_IS_LEADER_SEEN = 0x05 - bool - whether the node has a
    direct connection to the leader.

Requested by @sergepetrenko in tarantool/tarantool@421a096.

Metadata

Metadata

Assignees

Labels

featureA new functionalityiprotoRelated to the iproto protocolraft[area] Related to RAFTreference[location] Tarantool manual, Reference partserver[area] Task relates to Tarantool's server (core) functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions