File tree 2 files changed +34
-0
lines changed
doc/reference/reference_lua
2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ Below is a list of all ``box.info`` functions.
92
92
- Show the current state of a replica set node
93
93
in regards to leader election
94
94
95
+ * - :doc: `./box_info/synchro `
96
+ - Show the current state of synchronous replication
97
+
98
+
95
99
.. toctree ::
96
100
:hidden:
97
101
@@ -102,3 +106,4 @@ Below is a list of all ``box.info`` functions.
102
106
box_info/replication
103
107
box_info/listen
104
108
box_info/election
109
+ box_info/synchro
Original file line number Diff line number Diff line change
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
+ ...
You can’t perform that action at this time.
0 commit comments