Skip to content

Commit cb017c6

Browse files
committed
Add draft
1 parent ef75e7c commit cb017c6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

doc/reference/reference_lua/box_info.rst

+5
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ Below is a list of all ``box.info`` functions.
9292
- Show the current state of a replica set node
9393
in regards to leader election
9494

95+
* - :doc:`./box_info/synchro`
96+
- Show the current state of synchronous replication
97+
98+
9599
.. toctree::
96100
:hidden:
97101

@@ -102,3 +106,4 @@ Below is a list of all ``box.info`` functions.
102106
box_info/replication
103107
box_info/listen
104108
box_info/election
109+
box_info/synchro
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. _box_info_synchro:
2+
3+
================================================================================
4+
box.info.synchro
5+
================================================================================
6+
7+
.. module:: box.info
8+
9+
.. data:: synchro
10+
11+
Since version :doc:`2.8.1 </release/2.8.1>`.
12+
Show the current state of synchronous replication
13+
14+
The following information is provided:
15+
16+
* ``quorum`` -- election state (mode) of the node. Possible values are ``leader``, ``follower``, or ``candidate``.
17+
For more details, refer to description of the :ref:`leader election process <repl_leader_elect_process>`.
18+
When election is enabled, the node is writable only in the ``leader`` state.
19+
20+
**Example:**
21+
22+
.. code-block:: tarantoolsession
23+
24+
tarantool> box.info.synchro
25+
---
26+
- queue:
27+
len: 0
28+
quorum: 1
29+
...

0 commit comments

Comments
 (0)