All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::EHPC::Nodes

Last Updated:Oct 29, 2024

DATASOURCE::EHPC::Nodes is used to query nodes in an Elastic High Performance Computing (E-HPC) cluster.

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
RoleStringNoYesThe type of nodes that you want to query. Valid values:
  • Manager: management node
  • Login: logon node
  • Compute: compute node
HostNameSuffixStringNoYesThe suffix of the hostname. You can query nodes that have the specified suffix.
PrivateIpAddressStringNoYesThe private IP address. None.
ClusterIdStringYesYesThe ID of the cluster. You can call the ListClusters operation to query the cluster ID.
HostNamePrefixStringNoYesThe prefix of the hostname. None.
HostNameStringNoYesThe hostname of the node. Limits:
  • Fuzzy match is supported.
  • MySQL regular expressions are supported.

Return values (Fn::GetAtt)

  • NodeIds: the IDs of nodes.
  • NodeIds: the list of nodes.
PropertyTypeDescriptionConstraint
NodeIdsListThe IDs of nodes. None.
NodesListThe list of nodes. None.
NodeIdStringThe ID of the node. None.
ImageOwnerAliasStringThe type of the image. None.
StateInSchedStringThe status of the node. The status of the node varies based on the scheduler type.
ZoneIdStringThe ID of the zone. None.
VSwitchIdStringThe ID of the vSwitch. None.
ExpiredBooleanIndicates whether the subscription node has expired. Valid values:
  • true: The subscription node has expired.
  • false: The subscription node has not expired.
AddTimeStringThe time when the node was added to the cluster. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
PublicIpAddressStringThe public IP address. None.
IpAddressStringThe IP address of the node. None.
VpcIdStringThe ID of the virtual private cloud (VPC). None.
CreateModeStringThe mode in which the node was created. None.
VersionStringThe version of the client. None.
UsedResourcesMapThe total amount of resources that are used by the compute node. Sample code:
{
      "Gpu" : 0,
      "Cpu" : 0,
      "Memory" : 0
    }
TotalResourcesMapThe total amount of resources that are used by the node. Sample code:
{
      "Gpu" : 0,
      "Cpu" : 1,
      "Memory" : 1024
    
ImageIdStringThe ID of the image. None.
HtEnabledBooleanIndicates whether hyper-threading is enabled. Valid values:
  • true
  • false
RegionIdStringThe ID of the region. None.
LockReasonStringThe reason why the node is locked. Valid values:
  • financial: The node is locked due to overdue payments.
  • security: The node is locked due to security reasons.
  • recycling: The node is locked because the node is a preemptible node and waiting to be released.
  • dedicatedhostfinancial: The node is locked due to overdue payments of the dedicated host.
InstanceTypeStringThe instance type of the node. None.
HostNameStringThe name of the node. None.
SpotStrategyStringThe bidding policy for the compute node. None.
LocationStringThe location of the node. Valid values:
  • OnPremise: The node is deployed in your data center.
  • PublicCloud: The node is deployed in the Alibaba Cloud public cloud.
RolesListThe type of the node. Valid values:
  • Scheduler: primary scheduler
  • SchedulerBackup: secondary scheduler
  • Account: primary domain server
  • AccountBackup: secondary domain server
  • Login: logon node
  • Compute: compute node
Note Schedulers and domain servers are management nodes.

Examples

  • JSON format

    {
      "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"
            ]
          }
        }
      }
    }
  • YAML format

    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