DATASOURCE::EHPC::Nodes

更新时间:2024-10-29 03:24:04

DATASOURCE::EHPC::Nodes类型用于获取弹性高性能计算集群节点的列表。

语法

{
  "Type": "DATASOURCE::EHPC::Nodes",
  "Properties": {
    "Role": String,
    "HostNameSuffix": String,
    "PrivateIpAddress": String,
    "ClusterId": String,
    "HostNamePrefix": String,
    "HostName": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

Role

String

节点类型。

取值:

  • Manager:管控节点。

  • Login:登录节点。

  • Compute:计算节点。

HostNameSuffix

String

主机名后缀。

查询具有指定后缀的节点。

PrivateIpAddress

String

私网IP地址。

ClusterId

String

待查询的集群ID。

您可以通过调用ListClusters接口获取集群ID。

HostNamePrefix

String

主机名前缀。

HostName

String

节点名称。

限制:

  • 支持模糊查询。

  • 支持MySQL的正则表达式。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回数据(Fn::GetAtt)

  • NodeIds:节点ID列表信息。

  • Nodes:节点列表信息。

属性名称

类型

描述

约束

属性名称

类型

描述

约束

NodeIds

List

节点ID列表信息。

Nodes

List

节点列表信息。

NodeId

String

节点ID。

ImageOwnerAlias

String

镜像类型。

StateInSched

String

节点状态。

不同调度器状态不同。

ZoneId

String

可用区ID。

VSwitchId

String

交换机ID。

Expired

Boolean

包年包月付费节点是否到期。

取值:

  • true:已到期。

  • false:未到期。

AddTime

String

加入集群的时间。

按照ISO8601标准表示,并需要使用UTC时间,格式为yyyy-MM-ddTHH:mm:ssZ。

PublicIpAddress

String

公网IP地址。

IpAddress

String

节点IP地址。

VpcId

String

专有网络ID。

CreateMode

String

节点创建方式。

Version

String

集群客户端版本。

UsedResources

Map

计算节点资源使用量。

例如:

{
      "Gpu" : 0,
      "Cpu" : 0,
      "Memory" : 0
    }

TotalResources

Map

该节点使用的资源总量。

例如:

{
      "Gpu" : 0,
      "Cpu" : 1,
      "Memory" : 1024
    

ImageId

String

镜像ID。

HtEnabled

Boolean

是否开启超线程。

取值:

  • true:开启。

  • false:不开启。

RegionId

String

地域ID。

LockReason

String

节点被锁定类型。

取值:

  • financial:因欠费被锁定。

  • security:因安全原因被锁定。

  • recycling:抢占式实例的待释放锁定状态。

  • dedicatedhostfinancial:因为专有宿主机欠费导致ECS实例被锁定。

InstanceType

String

节点实例规格。

HostName

String

节点名称。

SpotStrategy

String

计算节点竞价策略。

Location

String

节点所在位置。

取值:

  • OnPremise:本地节点。

  • PublicCloud:公共云节点。

Roles

List

节点类别。

取值:

  • Scheduler:主调度器。

  • SchedulerBackup:备用调度器。

  • Account:主域服务器。

  • AccountBackup:备用域服务器。

  • Login:登录节点。

  • Compute:计算节点。

说明

调度器和域服务器都属于管控节点。

示例

YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ClusterId:
    Type: String
    Description: The ID of the cluster.
Resources:
  Nodes:
    Type: DATASOURCE::EHPC::Nodes
    Properties:
      ClusterId:
        Ref: ClusterId
Outputs:
  NodeIds:
    Description: The list of node IDs.
    Value:
      Fn::GetAtt:
        - Nodes
        - NodeIds
  Nodes:
    Description: The list of nodes.
    Value:
      Fn::GetAtt:
        - Nodes
        - Nodes
                    
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ClusterId": {
      "Type": "String",
      "Description": "The ID of the cluster."
    }
  },
  "Resources": {
    "Nodes": {
      "Type": "DATASOURCE::EHPC::Nodes",
      "Properties": {
        "ClusterId": {
          "Ref": "ClusterId"
        }
      }
    }
  },
  "Outputs": {
    "NodeIds": {
      "Description": "The list of node IDs.",
      "Value": {
        "Fn::GetAtt": [
          "Nodes",
          "NodeIds"
        ]
      }
    },
    "Nodes": {
      "Description": "The list of nodes.",
      "Value": {
        "Fn::GetAtt": [
          "Nodes",
          "Nodes"
        ]
      }
    }
  }
}
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回数据(Fn::GetAtt)
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等