You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add description for the age and confirm_lag fields in box.info.synchro.queue (#4559)
* Add description for the `age` and `confirm_lag` fields
* Add code snippet
Fixes#4284Fixes#4400
---------
Co-authored-by: Elena Shebunyaeva <[email protected]>
A sample application demonstrating how to work with [box.info.synchro](https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_info/synchro/).
4
+
5
+
## Running
6
+
7
+
To start all instances, execute the following command in the [replication](../../../replication) directory:
Since version :doc:`2.5.3 </release/2.5.3>`, the option can be set as a dynamic formula.
49
58
In this case, the value of the ``quorum`` member depends on the current number of replicas.
50
59
51
60
**Example 1:**
52
61
53
-
In this example, the ``quorum`` field is equal to ``1``.
62
+
In this example, the ``quorum`` field is equal to `1`.
54
63
That is, synchronous transactions work like asynchronous ones.
55
64
`1` means that a successful WAL writing to the master is enough to commit.
56
65
57
66
.. code-block:: tarantoolsession
58
67
59
-
tarantool> box.info.synchro
68
+
box_info_synchro:instance001> box.info.synchro
60
69
---
61
70
- queue:
62
71
owner: 1
72
+
confirm_lag: 0
63
73
term: 2
74
+
age: 0
64
75
len: 0
65
76
busy: false
66
77
quorum: 1
67
78
...
68
79
69
80
**Example 2:**
70
81
71
-
First, set a quorum number and a timeout for synchronous replication using the following command:
82
+
Example on GitHub: `box_info_synchro <https://github.com/tarantool/doc/tree/latest/doc/code_snippets/snippets/replication/instances.enabled/box_info_synchro>`_
0 commit comments