云数据库 GaussDB-查询实例的组件列表:响应消息

时间:2023-11-01 16:19:35

响应消息

  • 正常响应要素说明
    表2 要素说明

    名称

    参数类型

    说明

    nodes

    Array of objects

    组件详情。

    详情请参见表3

    total_count

    integer

    总记录数。

    表3 nodes说明

    名称

    参数类型

    说明

    id

    string

    节点id。

    components

    Array of objects

    该实例节点下的组件信息列表,详情请参见查询实例的组件列表

    表4 components说明

    名称

    参数类型

    说明

    id

    string

    组件id。

    GTM:Global Transaction Manager,全局事务管理器。用于管理事务状态的部件。

    CMS:Cluster Management Server,集群管理组件。是用于管理集群状态的部件。

    DN:Data Node,和CN对应的概念。负责实际执行表数据的存储、查询操作。

    CN:Coordinator Node,负责数据库系统元数据存储、查询任务的分解和部分执行,以及将DN中查询结果汇聚在一起。

    ETCD:Editable Text Configuration Daemon,分布式键值存储系统,用于共享配置和服务发现(服务注册和查找)。

    role

    string

    节点角色。

    master:组件所在节点为主节点。

    slave:组件所在节点为备节点。

    status

    string

    组件状态。

    Primary:该组件为主。

    Normal:该组件状态正常。

    Down:该组件处于宕机状态。

    Standby:该组件为备。

    StateFollower:该ETCD为备。

    StateLeader:该ETCD为主。

    StateCandidate:该ETCD为仲裁。

  • 正常响应样例
    {    "nodes": [        {            "components": [                {                    "id": "cm_1",                    "role": "master",                    "status": "Primary"                },                {                    "id": "etcd_7001",                    "role": "master",                    "status": "StateLeader"                },                {                    "id": "dn_6001",                    "role": "master",                    "status": "Primary"                }            ],            "id": "e45f54a68f924fb7b43e4c9a569d37e0no14"        },        {            "components": [                {                    "id": "cm_3",                    "role": "slave",                    "status": "Standby"                },                {                    "id": "etcd_7003",                    "role": "slave",                    "status": "StateFollower"                },                {                    "id": "dn_6003",                    "role": "slave",                    "status": "Standby"                }            ],            "id": "4faf806170f046108d43e1357260962fno14"        },        {            "components": [                {                    "id": "cm_2",                    "role": "slave",                    "status": "Standby"                },                {                    "id": "etcd_7002",                    "role": "slave",                    "status": "StateFollower"                },                {                    "id": "dn_6002",                    "role": "slave",                    "status": "Standby"                }            ],            "id": "b7621cb2ac3c4994a4beb1bead701feeno14"        }    ],    "total_count": 3}
support.huaweicloud.com/api-opengauss/opengauss_newapi_0030.html