ALIYUN::MSE::Cluster

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,
    "ClusterAliasName": String,
    "AcceptLanguage": String,
    "MseVersion": String,
    "ConnectionType": String,
    "RequestPars": String,
    "AclEntryList": List,
    "Tags": List,
    "ResourceGroupId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ClusterVersion

String

集群版本。

取值:

  • ZooKeeper_3_4_14

  • ZooKeeper_3_5_5

  • NACOS_ANS_1_2_1

  • NACOS_2_0_0

ClusterSpecification

String

引擎规格。

取值:

  • MSE_GTW_2_4_200_c:24 GB。

  • MSE_GTW_4_8_200_c:48 GB。

  • MSE_GTW_8_16_200_c:816 GB。

  • MSE_GTW_16_32_200_c:1632 GB。

ClusterType

String

集群类型。

取值:

  • ZooKeeper

  • Nacos-Ans

  • Eureka

InstanceCount

Integer

实例数。

取值范围:1~9。

NetType

String

网络类型。

取值:

  • privatenet:专有网络。

  • pubnet:公网。

DiskType

String

磁盘类型。

取值:alicloud-disk-ssd-multi-zone。

AcceptLanguage

String

返回结果显示的语言。

MseVersion

String

集群版本。

取值:

  • mse_dev:开发版。

  • mse_pro:专业版。

PrivateSlbSpecification

String

私网SLB规格。

取值:

  • slb.s1.small

  • slb.s3.medium

VpcId

String

专有网络ID。

PubNetworkFlow

String

公网带宽。

取值范围:0~5000。

单位:Mbps。

说明

0表示不接入公网。

VSwitchId

String

交换机ID。

PubSlbSpecification

String

公网SLB规格。

取值:

  • slb.s1.small

  • slb.s3.medium

ClusterAliasName

String

集群别名。

支持模糊匹配。

ConnectionType

String

网络连接类型。

RequestPars

String

扩展请求参数。

参数为JSON格式。

AclEntryList

List

白名单列表。

多个IP地址用半角逗号(,)分隔。

Tags

List

用户自定义标签。

更多信息,请参考Tags属性

ResourceGroupId

String

资源组ID。

Tags语法

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Key

String

标签键。

长度为1~128个字符,不能以aliyunacs:开头,不能包含http://https://

Value

String

标签值。

长度为0~128个字符,不能以aliyunacs:开头,不能包含http://https://

返回值

Fn::GetAtt

  • InternetAddress:公网地址。

  • IntranetAddress:私网地址。

  • AclEntryList:白名单列表。

  • Cpu:CPU数量。

  • InternetPort:公网接口。

  • IntranetPort:私网接口。

  • DiskType:磁盘类型。

  • AppVersion:App版本。

  • PayInfo:付费类型。

  • ClusterName:集群名称。

  • IntranetDomain:内网域名。

  • NetType:网络类型。

  • ClusterVersion:集群版本。

  • InstanceId:实例ID。

  • ClusterId:集群ID。

  • InternetDomain:公网域名。

  • AclId:访问控制列表ID。

  • VSwitchId:交换机ID。

  • ClusterSpecification:引擎规格。

  • HealthStatus:健康状态。

  • MemoryCapacity:内存容量。

  • ClusterType:集群类型。

  • ClusterAliasName:集群别名。

  • InstanceCount:实例数量。

  • DiskCapacity:磁盘容量。

  • VpcId:专有网络ID。

  • PubNetworkFlow:公网带宽。

  • ConnectionType:网络连接类型。

  • MseVersion:集群版本。

  • ConfigSecretEnabled:配置密码是否生效。

  • MCPEnabled:MCP是否生效。

  • ConfigAuthEnabled:是否启用集群配置。

示例

ROSTemplateFormatVersion: '2015-09-01'
Description: Test MSE Cluster
Parameters:
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  VSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      VpcId: ${VpcId}
Resources:
  MseCluster:
    Type: ALIYUN::MSE::Cluster
    Properties:
      MseVersion: mse_pro
      InstanceCount: 3
      ClusterVersion: NACOS_2_0_0
      PubNetworkFlow: 1
      ClusterType: Nacos-Ans
      ClusterSpecification: MSE_SC_2_4_200_c
      NetType: pubnet
      DiskType: alicloud-disk-ssd-multi-zone
      VpcId:
        Ref: VpcId
      VSwitchId:
        Ref: VSwitchId
      PubSlbSpecification: slb.s1.small
Outputs:
  InstanceId:
    Value:
      Fn::GetAtt:
        - MseCluster
        - InstanceId
  ClusterId:
    Value:
      Fn::GetAtt:
        - MseCluster
        - ClusterId                    
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test MSE Cluster",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "VSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "VpcId": "${VpcId}"
      }
    }
  },
  "Resources": {
    "MseCluster": {
      "Type": "ALIYUN::MSE::Cluster",
      "Properties": {
        "MseVersion": "mse_pro",
        "InstanceCount": 3,
        "ClusterVersion": "NACOS_2_0_0",
        "PubNetworkFlow": 1,
        "ClusterType": "Nacos-Ans",
        "ClusterSpecification": "MSE_SC_2_4_200_c",
        "NetType": "pubnet",
        "DiskType": "alicloud-disk-ssd-multi-zone",
        "VpcId": {
          "Ref": "VpcId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "PubSlbSpecification": "slb.s1.small"
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Value": {
        "Fn::GetAtt": [
          "MseCluster",
          "InstanceId"
        ]
      }
    },
    "ClusterId": {
      "Value": {
        "Fn::GetAtt": [
          "MseCluster",
          "ClusterId"
        ]
      }
    }
  }
}

更多示例,请参见:JSON示例YAML示例