ALIYUN::MSE::Cluster类型用于创建集群。

语法

{
  "Type": "ALIYUN::MSE::Cluster",
  "Properties": {
    "DiskType": String,
    "InstanceCount": Integer,
    "PrivateSlbSpecification": String,
    "VpcId": String,
    "ClusterVersion": String,
    "PubNetworkFlow": String,
    "ClusterSpecification": String,
    "VSwitchId": String,
    "PubSlbSpecification": String,
    "ClusterType": String,
    "NetType": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
DiskType String 磁盘类型 取值:alicloud-disk-ssd-multi-zone
InstanceCount Integer 实例数 取值范围:1~5
PrivateSlbSpecification String 私网SLB规格 取值:
  • slb.s1.small
  • slb.s3.medium
VpcId String 专有网络ID
ClusterVersion String 集群版本 取值:
  • ZooKeeper_3_4_14
  • NACOS_ANS_1_1_3
  • EUREKA_1_9_3
PubNetworkFlow String 公网带宽 取值范围:0~5000

单位:Mbps

说明 0表示不接入公网。
ClusterSpecification String 引擎规格 取值:
  • MSE_SC_1_2_200_c:1核2GB
  • MSE_SC_2_4_200_c:2核4GB
  • MSE_SC_4_8_200_c:4核8GB
  • MSE_SC_8_16_200_c:8核16GB
VSwitchId String 交换机ID
PubSlbSpecification String 公网SLB规格 取值:
  • slb.s1.small
  • slb.s3.medium
ClusterType String 集群类型 取值:
  • ZooKeeper
  • Nacos-Ans
  • Eureka
NetType String 网络类型 取值:
  • privatenet:专有网络
  • pubnet:公网

返回值

Fn::GetAtt

  • InternetAddress:公网地址。
  • IntranetAddress:私网地址。
  • AclEntryList:白名单列表。
  • Cpu:CPU数量。
  • InternetPort:公网接口。
  • IntranetPort:私网接口。
  • DiskType:磁盘类型。
  • AppVersion:App版本。
  • InitCostTime:创建耗时。
  • PayInfo:付费类型。
  • ClusterName:集群名称。
  • IntranetDomain:内网域名。
  • NetType:网络类型。
  • ClusterVersion:集群版本。
  • InstanceId:实例ID。
  • ClusterId:集群ID。
  • InternetDomain:公网域名。
  • AclId:访问控制列表ID。
  • VSwitchId:交换机ID。
  • ClusterSpecification:引擎规格。
  • CreateTime:创建时间。
  • HealthStatus:健康状态。
  • MemoryCapacity:内存容量。
  • ClusterType:集群类型。
  • OrderId:订单ID。
  • ClusterAliasName:集群别名。
  • InstanceCount:实例数量。
  • DiskCapacity:磁盘容量。
  • VpcId:专有网络ID。
  • PubNetworkFlow:公网带宽。
  • RegionId:地域ID。
  • InitStatus:集群创建状态。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DiskType": {
      "Type": "String",
      "Description": "disk type"
    },
    "PrivateSlbSpecification": {
      "Type": "String",
      "Description": ""
    },
    "InstanceCount": {
      "Type": "Number",
      "Description": "instance count"
    },
    "VpcId": {
      "Type": "String",
      "Description": "vpc id"
    },
    "ClusterVersion": {
      "Type": "String",
      "Description": "cluster version, Enum: ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3"
    },
    "PubNetworkFlow": {
      "Type": "String",
      "Description": "pub network flow"
    },
    "ClusterSpecification": {
      "Type": "String",
      "Description": "cluster specification, Enum: MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c"
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "switcher Id"
    },
    "PubSlbSpecification": {
      "Type": "String",
      "Description": ""
    },
    "ClusterType": {
      "Type": "String",
      "Description": "cluster type"
    },
    "NetType": {
      "Type": "String",
      "Description": "network type, Enum: privatenet,pubnet"
    }
  },
  "Resources": {
    "MSECluster": {
      "Type": "ALIYUN::MSE::Cluster",
      "Properties": {
        "DiskType": {
          "Ref": "DiskType"
        },
        "PrivateSlbSpecification": {
          "Ref": "PrivateSlbSpecification"
        },
        "InstanceCount": {
          "Ref": "InstanceCount"
        },
        "VpcId": {
          "Ref": "VpcId"
        },
        "ClusterVersion": {
          "Ref": "ClusterVersion"
        },
        "PubNetworkFlow": {
          "Ref": "PubNetworkFlow"
        },
        "ClusterSpecification": {
          "Ref": "ClusterSpecification"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "PubSlbSpecification": {
          "Ref": "PubSlbSpecification"
        },
        "ClusterType": {
          "Ref": "ClusterType"
        },
        "NetType": {
          "Ref": "NetType"
        }
      }
    }
  },
  "Outputs": {
    "InternetAddress": {
      "Description": "internet address",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InternetAddress"
        ]
      }
    },
    "AclEntryList": {
      "Description": "acl entry list",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "AclEntryList"
        ]
      }
    },
    "Cpu": {
      "Description": "cpu core size",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "Cpu"
        ]
      }
    },
    "InternetPort": {
      "Description": "internet port",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InternetPort"
        ]
      }
    },
    "IntranetPort": {
      "Description": "intranet port",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "IntranetPort"
        ]
      }
    },
    "DiskType": {
      "Description": "disk type",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "DiskType"
        ]
      }
    },
    "AppVersion": {
      "Description": "app version",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "AppVersion"
        ]
      }
    },
    "InitCostTime": {
      "Description": "init cost time",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InitCostTime"
        ]
      }
    },
    "PayInfo": {
      "Description": "pay info",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "PayInfo"
        ]
      }
    },
    "ClusterName": {
      "Description": "cluster name",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterName"
        ]
      }
    },
    "IntranetDomain": {
      "Description": "intranet domain",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "IntranetDomain"
        ]
      }
    },
    "NetType": {
      "Description": "network type, Enum: privatenet,pubnet",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "NetType"
        ]
      }
    },
    "ClusterVersion": {
      "Description": "cluster version, Enum: ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterVersion"
        ]
      }
    },
    "InstanceId": {
      "Description": "instance id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InstanceId"
        ]
      }
    },
    "ClusterId": {
      "Description": "cluster id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterId"
        ]
      }
    },
    "InternetDomain": {
      "Description": "internet domain",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InternetDomain"
        ]
      }
    },
    "AclId": {
      "Description": "acl id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "AclId"
        ]
      }
    },
    "VSwitchId": {
      "Description": "switcher Id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "VSwitchId"
        ]
      }
    },
    "ClusterSpecification": {
      "Description": "cluster specification, Enum: MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterSpecification"
        ]
      }
    },
    "CreateTime": {
      "Description": "create time",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "CreateTime"
        ]
      }
    },
    "HealthStatus": {
      "Description": "health status",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "HealthStatus"
        ]
      }
    },
    "MemoryCapacity": {
      "Description": "memory capacity",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "MemoryCapacity"
        ]
      }
    },
    "ClusterType": {
      "Description": "cluster type",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterType"
        ]
      }
    },
    "OrderId": {
      "Description": "order id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "OrderId"
        ]
      }
    },
    "ClusterAliasName": {
      "Description": "cluster alias name",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "ClusterAliasName"
        ]
      }
    },
    "InstanceCount": {
      "Description": "instance count",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InstanceCount"
        ]
      }
    },
    "IntranetAddress": {
      "Description": "intranet address",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "IntranetAddress"
        ]
      }
    },
    "DiskCapacity": {
      "Description": "disk capacity, unit: G",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "DiskCapacity"
        ]
      }
    },
    "VpcId": {
      "Description": "vpc id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "VpcId"
        ]
      }
    },
    "PubNetworkFlow": {
      "Description": "pub network flow",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "PubNetworkFlow"
        ]
      }
    },
    "RegionId": {
      "Description": "region id",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "RegionId"
        ]
      }
    },
    "InitStatus": {
      "Description": "init status, Enum: INIT_ING, INIT_FAILED, INIT_SUCCESS, INIT_TIME_OUT,DESTROY_ING, DESTROY_FAILED, DESTROY_SUCCESS, RESTART_ING, RESTART_SUCCESS, RESTART_FAILED, SCALE_ING, SCALE_SUCCESS, SCALE_FAILED",
      "Value": {
        "Fn::GetAtt": [
          "MSECluster",
          "InitStatus"
        ]
      }
    }
  }
}

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DiskType:
    Type: String
    Description: disk type
  PrivateSlbSpecification:
    Type: String
    Description: ''
  InstanceCount:
    Type: Number
    Description: instance count
  VpcId:
    Type: String
    Description: vpc id
  ClusterVersion:
    Type: String
    Description: >-
      cluster version, Enum:
      ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3
  PubNetworkFlow:
    Type: String
    Description: pub network flow
  ClusterSpecification:
    Type: String
    Description: >-
      cluster specification, Enum:
      MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c
  VSwitchId:
    Type: String
    Description: switcher Id
  PubSlbSpecification:
    Type: String
    Description: ''
  ClusterType:
    Type: String
    Description: cluster type
  NetType:
    Type: String
    Description: 'network type, Enum: privatenet,pubnet'
Resources:
  MSECluster:
    Type: 'ALIYUN::MSE::Cluster'
    Properties:
      DiskType:
        Ref: DiskType
      PrivateSlbSpecification:
        Ref: PrivateSlbSpecification
      InstanceCount:
        Ref: InstanceCount
      VpcId:
        Ref: VpcId
      ClusterVersion:
        Ref: ClusterVersion
      PubNetworkFlow:
        Ref: PubNetworkFlow
      ClusterSpecification:
        Ref: ClusterSpecification
      VSwitchId:
        Ref: VSwitchId
      PubSlbSpecification:
        Ref: PubSlbSpecification
      ClusterType:
        Ref: ClusterType
      NetType:
        Ref: NetType
Outputs:
  InternetAddress:
    Description: internet address
    Value:
      'Fn::GetAtt':
        - MSECluster
        - InternetAddress
  AclEntryList:
    Description: acl entry list
    Value:
      'Fn::GetAtt':
        - MSECluster
        - AclEntryList
  Cpu:
    Description: cpu core size
    Value:
      'Fn::GetAtt':
        - MSECluster
        - Cpu
  InternetPort:
    Description: internet port
    Value:
      'Fn::GetAtt':
        - MSECluster
        - InternetPort
  IntranetPort:
    Description: intranet port
    Value:
      'Fn::GetAtt':
        - MSECluster
        - IntranetPort
  DiskType:
    Description: disk type
    Value:
      'Fn::GetAtt':
        - MSECluster
        - DiskType
  AppVersion:
    Description: app version
    Value:
      'Fn::GetAtt':
        - MSECluster
        - AppVersion
  InitCostTime:
    Description: init cost time
    Value:
      'Fn::GetAtt':
        - MSECluster
        - InitCostTime
  PayInfo:
    Description: pay info
    Value:
      'Fn::GetAtt':
        - MSECluster
        - PayInfo
  ClusterName:
    Description: cluster name
    Value:
      'Fn::GetAtt':
        - MSECluster
        - ClusterName
  IntranetDomain:
    Description: intranet domain
    Value:
      'Fn::GetAtt':
        - MSECluster
        - IntranetDomain
  NetType:
    Description: 'network type, Enum: privatenet,pubnet'
    Value:
      'Fn::GetAtt':
        - MSECluster
        - NetType
  ClusterVersion:
    Description: >-
      cluster version, Enum:
      ZooKeeper_3_4_14,ZooKeeper_3_5_5,NACOS_ANS_1_1_3,EUREKA_1_9_3
    Value:
      'Fn::GetAtt':
        - MSECluster
        - ClusterVersion
  InstanceId:
    Description: instance id
    Value:
      'Fn::GetAtt':
        - MSECluster
        - InstanceId
  ClusterId:
    Description: cluster id
    Value:
      'Fn::GetAtt':
        - MSECluster
        - ClusterId
  InternetDomain:
    Description: internet domain
    Value:
      'Fn::GetAtt':
        - MSECluster
        - InternetDomain
  AclId:
    Description: acl id
    Value:
      'Fn::GetAtt':
        - MSECluster
        - AclId
  VSwitchId:
    Description: switcher Id
    Value:
      'Fn::GetAtt':
        - MSECluster
        - VSwitchId
  ClusterSpecification:
    Description: >-
      cluster specification, Enum:
      MSE_SC_1_2_200_c,MSE_SC_2_4_200_c,MSE_SC_4_8_200_c,MSE_SC_8_16_200_c
    Value:
      'Fn::GetAtt':
        - MSECluster
        - ClusterSpecification
  CreateTime:
    Description: create time
    Value:
      'Fn::GetAtt':
        - MSECluster
        - CreateTime
  HealthStatus:
    Description: health status
    Value:
      'Fn::GetAtt':
        - MSECluster
        - HealthStatus
  MemoryCapacity:
    Description: memory capacity
    Value:
      'Fn::GetAtt':
        - MSECluster
        - MemoryCapacity
  ClusterType:
    Description: cluster type
    Value:
      'Fn::GetAtt':
        - MSECluster
        - ClusterType
  OrderId:
    Description: order id
    Value:
      'Fn::GetAtt':
        - MSECluster
        - OrderId
  ClusterAliasName:
    Description: cluster alias name
    Value:
      'Fn::GetAtt':
        - MSECluster
        - ClusterAliasName
  InstanceCount:
    Description: instance count
    Value:
      'Fn::GetAtt':
        - MSECluster
        - InstanceCount
  IntranetAddress:
    Description: intranet address
    Value:
      'Fn::GetAtt':
        - MSECluster
        - IntranetAddress
  DiskCapacity:
    Description: 'disk capacity, unit: G'
    Value:
      'Fn::GetAtt':
        - MSECluster
        - DiskCapacity
  VpcId:
    Description: vpc id
    Value:
      'Fn::GetAtt':
        - MSECluster
        - VpcId
  PubNetworkFlow:
    Description: pub network flow
    Value:
      'Fn::GetAtt':
        - MSECluster
        - PubNetworkFlow
  RegionId:
    Description: region id
    Value:
      'Fn::GetAtt':
        - MSECluster
        - RegionId
  InitStatus:
    Description: >-
      init status, Enum: INIT_ING, INIT_FAILED, INIT_SUCCESS,
      INIT_TIME_OUT,DESTROY_ING, DESTROY_FAILED, DESTROY_SUCCESS, RESTART_ING,
      RESTART_SUCCESS, RESTART_FAILED, SCALE_ING, SCALE_SUCCESS, SCALE_FAILED
    Value:
      'Fn::GetAtt':
        - MSECluster
        - InitStatus