box.info.ro_reason | Tarantool

box.info.ro_reason

box.info.ro_reason

Since 2.10.0. Show the current mode of an instance (writable or read-only). Contains nil if the instance is in writable mode. When the field is not nil, reports the reason why the instance is read-only.

Possible error reasons:

  • election – the instance is not the leader. That is, box.cfg.election_mode is not off. See box.info.election for details.
  • synchro – the instance is not the owner of the synchronous transaction queue. For details, see box.info.synchro.
  • config – the server instance is in read-only mode. That is, box.cfg.read_only is true.
  • orphan – the instance is in orphan state. For details, see the orphan status page.
Rtype:string

Example:

tarantool> box.info.ro_reason
---
- null
...
Found what you were looking for?
Feedback