ltcluster node status

ltcluster node status — show overview of a node's basic information and replication status

Description

Displays an overview of a node's basic information and replication status. This command must be run on the local node.

Example

        $ ltcluster -f /etc/ltcluster.conf node status
        Node "node1":
            LightDB version: 10beta1
            Total data size: 30 MB
            Conninfo: host=node1 dbname=ltcluster user=ltcluster connect_timeout=2
            Role: primary
            WAL archiving: off
            Archive command: (none)
            Replication connections: 2 (of maximal 10)
            Replication slots: 0 (of maximal 10)
            Replication lag: n/a

Output format

  • --csv: generate output in CSV format

Exit codes

One of the following exit codes will be emitted by ltcluster node status:

SUCCESS (0)

No issues were detected.

ERR_NODE_STATUS (25)

One or more issues were detected.

See also

See ltcluster node check to diagnose issues and ltcluster cluster show for an overview of all nodes in the cluster.