@@ -28,9 +28,13 @@ variables.
28
28
* **pid ** is the process ID. This value is also shown by
29
29
:ref: `tarantool <tarantool-build >` module
30
30
and by the Linux command ``ps -A ``.
31
- * **ro ** is ``true `` if the instance is in " read-only" mode
31
+ * **ro ** is ``true `` if the instance is in read-only mode
32
32
(same as :ref: `read_only <cfg_basic-read_only >` in ``box.cfg{} ``),
33
33
or if status is 'orphan'.
34
+ * **ro_reason ** is ``nil `` if the instance is in writable mode.
35
+ When the field is not ``nil ``, it contains the reason why the instance is read-only.
36
+ Possible error reasons: ``election ``, ``synchro ``, ``config ``, and ``orphan ``
37
+ (see :ref: `box.info.ro_reason <box_info_ro-reason >` for details).
34
38
* **signature ** is the sum of all ``lsn `` values from each :ref: `vector clock <replication-vector >`
35
39
(**vclock **) for all instances in the replica set.
36
40
* **sql().cache.size ** is the number of bytes in the SQL prepared statement cache.
@@ -56,7 +60,7 @@ variables.
56
60
* **election ** shows the current state of a replica set node regarding leader
57
61
election (see :doc: `here </reference/reference_lua/box_info/election >`).
58
62
59
- Below is a list of all ``box.info `` functions.
63
+ Below is a list of all ``box.info `` functions and members .
60
64
61
65
.. container :: table
62
66
@@ -95,6 +99,8 @@ Below is a list of all ``box.info`` functions.
95
99
* - :doc: `./box_info/synchro `
96
100
- Show the current state of synchronous replication
97
101
102
+ * - :doc: `./box_info/ro_reason `
103
+ - Show the current mode of an instance (writable or read-only)
98
104
99
105
.. toctree ::
100
106
:hidden:
@@ -107,3 +113,4 @@ Below is a list of all ``box.info`` functions.
107
113
box_info/listen
108
114
box_info/election
109
115
box_info/synchro
116
+ box_info/ro_reason
0 commit comments