Note
For V4.2.0, this parameter is available starting with V4.2.0.
Description
observer_id specifies the unique identifier assigned by the resource scheduler (RS) to an OBServer node in the cluster.
Privilege requirements
Query the parameter
You can use the
SHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter for thesystenant and all user tenants.Modify the parameter
The
systenant and user tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 0, indicating 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 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 |
+-------+----------+----------------+----------+-------------+-----------+-------+-----------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+------------+---------------+-----------+