首批通过分布式安全可靠测评,为关键业务系统打造
observer_id
更新时间:2026-04-30 18:46:42
说明
该配置项从 V4.2.0 版本开始引入。
功能描述
observer_id 用于集群中 RS 分配给 OBServer 节点的唯一标识。
权限要求
查询配置项
sys租户和所有用户租户均可以使用SHOW PARAMETERS语句或视图GV$OB_PARAMETERS查询该配置项。修改配置项
sys租户和用户租户均不能修改该配置项。
属性说明
| 属性 | 描述 |
|---|---|
| 参数类型 | Int |
| 默认值 | 0,表示无效的 observer_id |
| 取值范围 | [1, 18446744073709551615] |
| 是否可修改 | 否,仅支持只读。 |
| 是否重启 OBServer 节点生效 | 否,仅支持只读。 |
查询示例
查询集群中 RS 分配给 OBServer 节点的唯一标识。
obclient> SHOW PARAMETERS LIKE 'observer_id';
查询结果如下:
+-------+----------+----------------+----------+-------------+-----------+-------+-----------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+------------+---------------+-----------+
| 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 |
+-------+----------+----------------+----------+-------------+-----------+-------+-----------------------------------------------------------------------------------------------------------------------------------------+----------+---------+---------+------------+---------------+-----------+