Overview
observer_id is the unique identifier assigned by the cluster's RS to an OBServer node.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Neither the
systenant nor user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 0, indicating invalid.observer_id |
| Value range | [1, 18446744073709551615] |
| Modifiable | No, read-only is the only supported mode. |
| Whether to restart the OBServer node for the change to take effect | No, read-only is the only supported mode. |
Sample query
Query the unique identifier assigned by RS to an OBServer node in the cluster.
obclient> SHOW PARAMETERS LIKE 'observer_id';
The query result is as follows:
+-------+----------+----------------+----------+-------------+-----------+-------+-----------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+------------+---------------+-----------+
| zone | svr_type | svr_ip | svr_port | name | data_type | value | info | section | scope | source | edit_level | default_value | isdefault |
+-------+----------+----------------+----------+-------------+-----------+-------+-----------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+------------+---------------+-----------+
| zone1 | observer | xx.xx.xx.xx | 2882 | observer_id | INT | 1 | the unique id that been assigned by rootservice for each observer in cluster, default: 0 (invalid id), Range: [1, 18446744073709551615] | OBSERVER | CLUSTER | DEFAULT | READONLY | 0 | 0 |
+-------+----------+----------------+----------+-------------+-----------+-------+-----------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+------------+---------------+-----------+