Note
For V4.2.0, this parameter is available starting with V4.2.0.
Description
observer_id specifies the unique identifier assigned by the root service to an OBServer node in the cluster.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
The
systenant and user tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0, which indicates an invalid observer_id |
| Value range | [1, 18446744073709551615] |
| Modifiable | No. This parameter is read-only. |
| Effective upon OBServer node restart | No. This parameter is read-only. |
Examples
Query the unique identifier assigned by the root service 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 |
+-------+----------+----------------+----------+-------------+-----------+-------+-----------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+------------+---------------+-----------+