Skip to content

[3pt] Provide box.info.synchro interface #2044

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
1 task
Tracked by #2802 ...
TarantoolBot opened this issue Apr 12, 2021 · 0 comments · Fixed by #3140
Closed
1 task
Tracked by #2802 ...

[3pt] Provide box.info.synchro interface #2044

TarantoolBot opened this issue Apr 12, 2021 · 0 comments · Fixed by #3140
Assignees
Labels
feature A new functionality reference [location] Tarantool manual, Reference part replication [area] Related to Replication server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Apr 12, 2021

root document: https://www.tarantool.io/ru/doc/latest/reference/reference_lua/box_info/
since: 2.8.1

Details:
The box.info.synchro leaf provides information about details of
synchronous replication.

In particular quorum represent the current value of synchronous
replication quorum defined by replication_synchro_quorum
configuration parameter because it can be set as dynamic formula
such as N/2+1 and the value depends on current number of replicas.

Since synchronous replication does not commit data immediately
but waits for its propagation to replicas the data sits in a queue
gathering commit responses from remote nodes. Current number of
entries waiting in the queue is shown via queue.len member.

A typical output is the following

tarantool> box.info.synchro
---
- queue:
    len: 0
  quorum: 1
...

The len member shows current number of entries in the queue.
And the quorum member shows an evaluated value of
replication_synchro_quorum parameter.
Requested by @cyrillos in tarantool/tarantool@bce3b58.

  • add examples of non-empty state (len > 0, etc.)

Follow-up issue: #2601

@Onvember Onvember added the feature A new functionality label Apr 12, 2021
@NickVolynkin NickVolynkin added reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality labels Apr 14, 2021
@NickVolynkin NickVolynkin changed the title Provide box.info.synchro interface [3pt] Provide box.info.synchro interface Apr 14, 2021
@veod32 veod32 added the replication [area] Related to Replication label Feb 3, 2022
@patiencedaur patiencedaur added the dev To be updated by the developers. Includes developer guidelines and many API elements. label Jul 13, 2022
@patiencedaur patiencedaur removed the dev To be updated by the developers. Includes developer guidelines and many API elements. label Aug 31, 2022
@xuniq xuniq assigned xuniq and unassigned veod32 Sep 9, 2022
@patiencedaur patiencedaur added 2sp and removed 3sp labels Sep 14, 2022
xuniq added a commit that referenced this issue Sep 23, 2022
* Add box.info.synchro interface.

* Add owner, busy, and term fields.

* Add examples

Fixes #2044
Fixes #2741
Fixes #2277
Fixes #2831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality reference [location] Tarantool manual, Reference part replication [area] Related to Replication server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants