Tarantool CE/EE Documentation portal logo
Support
Updated at July 17, 2026   02:08 PM

box.info()

box.info()

Get all keys and values provided by the box.info submodule. Since box.info contents are dynamic, it's not possible to iterate over keys with the Lua pairs() function. For this purpose, box.info() builds and returns a Lua table with all keys and values provided in the submodule.

Returns

keys and values in the submodule

Return type

table

Since version 3.3.0 returns the hierarchy table, showing names of the group, replicaset, and the instance itself. These names are taken directly from the --name CLI option (or the TT_INSTANCE_NAME environment variable) and the cluster configuration. This means they are always present if the YAML configuration flow is in use, disregarding the database status (whether upgraded, writable or not).

Example

This example is for a master-replica set that contains one master instance and one replica instance. The request was issued at the replica instance.

sharded_cluster_crud:storage-a-002> box.info()---- version: 3.2.0-entrypoint-218-gf8d77dbec  id: 2  ro: true  uuid: 5a879b0e-9b53-4053-980a-be1a39ad1166  pid: 12059  replicaset:    uuid: 90dc4d6c-3f7d-45e5-aa5a-55903b0a79c9    name: storage-a  schema_version: 87  listen: 127.0.0.1:3303  replication_anon:    count: 0  replication:    1:      id: 1      uuid: ffb1b8bb-d59f-4eee-ad3e-91058e6f5486      lsn: 1092      upstream:        status: follow        idle: 0.99728900000082        peer: replicator@127.0.0.1:3302        lag: 0.00025296211242676      name: storage-a-001      downstream:        status: follow        idle: 0.18575600000077        vclock: {1: 1092}        lag: 0    2:      id: 2      uuid: 5a879b0e-9b53-4053-980a-be1a39ad1166      lsn: 0      name: storage-a-002  package: Tarantool  hostname: demo.example.com  election:    state: follower    vote: 0    leader: 0    term: 1  signature: 1092  synchro:    queue:      owner: 0      confirm_lag: 0      term: 0      age: 0      len: 0      busy: false    quorum: 2  status: running  sql: []  vclock: {1: 1092}  uptime: 229  lsn: 0  vinyl: []  ro_reason: config  memory: []  gc: []  cluster:    name: null  name: storage-a-002  config:    status: ready    meta:      last: &0 []      active: *0    alerts: []    hierarchy:      group: storages      replicaset: storage-a      instance: storage-a-002...