You can view the status of an OBServer node by running a command or in the OceanBase Cloud Platform (OCP) console.
View OBServer node status by running a command
You can view OBServer node status in the __all_server table.
Log on to the
systenant as therootuser.Access the database named
oceanbase.obclient> USE oceanbaseExecute the following statement to view OBServer node status.
The
__all_servertable identifies OBServer node status by using thestop_timeandstatusfields.When the value of
stop_timeis0, the OBServer node is in thestartedstate. When the value ofstop_timeis not0, the OBServer node is in thestoppedstate. In this case, the value ofstop_timeis the timestamp when the OBServer node was stopped.Valid values of
status:active: indicates that the OBServer node is operating properly.inactive: indicates that the OBServer node is offline.deleting: indicates that the OBServer node is being deleted.
Here is an example:
obclient> SELECT stop_time,status FROM __all_server; +-----------+--------+ | stop_time | status | +-----------+--------+ | 0 | active | +-----------+--------+ 1 row in set
View OBServer node status in the OCP console
Log on to the OCP console.
The Clusters page automatically appears.
In the Clusters list, find the target cluster and click its name.
In the OBServers area on the Overview page, view the status of the OBServer node in the cluster.