ALIYUN::MSE::Cluster is used to create a cluster.

Syntax

{
  "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
  }
}

Properties

Property Type Required Editable Description Constraint
DiskType String No No The disk type. Set the value to alicloud-disk-ssd-multi-zone.
AcceptLanguage String No No The language in which you want the results to be displayed. None.
MseVersion String No No The version of the cluster. Valid values:
  • mse_dev: Developer Edition
  • mse_pro: Professional Edition
InstanceCount Integer Yes No The number of instances. Valid values: 1 to 9.
PrivateSlbSpecification String No No The specification of the internal-facing Server Load Balancer (SLB) instance. Valid values:
  • slb.s1.small
  • slb.s3.medium
VpcId String No No The ID of the virtual private cloud (VPC). None.
ClusterVersion String Yes No The version of the cluster. Valid values:
  • ZooKeeper_3_4_14
  • ZooKeeper_3_5_5
  • NACOS_ANS_1_2_1
  • NACOS_2_0_0
PubNetworkFlow String No No The public bandwidth. Valid values: 0 to 5000.

Unit: Mbit/s.

Note A value of 0 indicates that the cluster cannot be connected to the Internet.
ClusterSpecification String Yes No The specification of the engine. Valid values:
  • MSE_SC_1_2_200_c: 1 vCPU and 2 GB memory
  • MSE_SC_2_4_200_c: 2 vCPUs and 4 GB memory
  • MSE_SC_4_8_200_c: 4 vCPUs and 8 GB memory
  • MSE_SC_8_16_200_c: 8 vCPUs and 16 GB memory
VSwitchId String No No The ID of the vSwitch. None.
PubSlbSpecification String No No The specification of the Internet-facing SLB instance. Valid values:
  • slb.s1.small
  • slb.s3.medium
ClusterType String Yes No The type of the cluster. Valid values:
  • ZooKeeper
  • Nacos-Ans
  • Eureka
NetType String Yes No The network type of the cluster. Valid values:
  • privatenet: VPC
  • pubnet: Internet
ClusterAliasName String No Yes The alias of the cluster. Fuzzy match is supported.
ConnectionType String No No The network connection type of the cluster. None.
RequestPars String No No The extended properties that you want to specify in the request. The properties must be in the JSON format.
AclEntryList List No Yes The IP addresses in the whitelist. Separate multiple IP addresses with commas (,).

Return values

Fn::GetAtt

  • InternetAddress: the public IP address.
  • IntranetAddress: the internal IP address.
  • AclEntryList: the IP addresses in the whitelist.
  • Cpu: the number of vCPUs.
  • InternetPort: the public port.
  • IntranetPort: the internal port.
  • DiskType: the disk type.
  • AppVersion: the version of the application.
  • PayInfo: the payment type.
  • ClusterName: the name of the cluster.
  • IntranetDomain: the internal domain name.
  • NetType: the network type.
  • ClusterVersion: the version of the cluster.
  • InstanceId: the ID of the instance.
  • ClusterId: the ID of the cluster.
  • InternetDomain: the public domain name.
  • AclId: the ID of the access control list (ACL).
  • VSwitchId: the ID of the vSwitch.
  • ClusterSpecification: the specification of the engine.
  • HealthStatus: the health status.
  • MemoryCapacity: the memory capacity.
  • ClusterType: the type of the cluster.
  • ClusterAliasName: the alias of the cluster.
  • InstanceCount: the number of instances.
  • DiskCapacity: the capacity of the disk.
  • VpcId: the ID of the VPC.
  • PubNetworkFlow: the public bandwidth.
  • ConnectionType: the network connection type.
  • MseVersion: the version of the cluster.
  • ConfigSecretEnabled: indicates whether the password takes effect.
  • MCPEnabled: indicates whether the mesh configuration protocol (MCP) takes effect.
  • ConfigAuthEnabled: indicates whether cluster configuration is enabled.

Examples

  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Description": "Test MSE Cluster",
      "Parameters": {
        "InstanceCount": {
          "Type": "Number",
          "Default": 3,
          "MinValue": 3,
          "MaxValue": 5
        },
        "ClusterVersion": {
          "Type": "String",
          "Default": "NACOS_2_0_0",
          "AllowedValues": [
            "ZooKeeper_3_5_5",
            "ZooKeeper_3_4_14",
            "NACOS_2_0_0",
            "NACOS_ANS_1_2_1"
          ]
        },
        "ClusterType": {
          "Type": "String",
          "Default": "Nacos-Ans",
          "AllowedValues": [
            "ZooKeeper",
            "Nacos-Ans",
            "Eureka"
          ]
        },
        "ClusterSpecification": {
          "Type": "String",
          "Default": "MSE_SC_2_4_200_c",
          "AllowedValues": [
            "MSE_SC_1_2_200_c",
            "MSE_SC_2_4_200_c",
            "MSE_SC_4_8_200_c",
            "MSE_SC_8_16_200"
          ]
        },
        "NetType": {
          "Type": "String",
          "Default": "pubnet",
          "AllowedValues": [
            "pubnet",
            "privatenet"
          ]
        },
        "VpcId": {
          "Type": "String"
        },
        "VSwitchId": {
          "Type": "String"
        },
        "PubSlbSpecification": {
          "Type": "String",
          "AllowedValues": [
            "slb.s1.small",
            "slb.s3.medium"
          ],
          "Default": "slb.s1.small"
        }
      },
      "Resources": {
        "MseCluster": {
          "Type": "ALIYUN::MSE::Cluster",
          "Properties": {
            "MseVersion": "mse_pro",
            "InstanceCount": {
              "Ref": "InstanceCount"
            },
            "ClusterVersion": {
              "Ref": "ClusterVersion"
            },
            "PubNetworkFlow": 1,
            "ClusterType": {
              "Ref": "ClusterType"
            },
            "ClusterSpecification": {
              "Ref": "ClusterSpecification"
            },
            "NetType": {
              "Ref": "NetType"
            },
            "DiskType": "alicloud-disk-ssd-multi-zone",
            "VpcId": {
              "Ref": "VpcId"
            },
            "VSwitchId": {
              "Ref": "VSwitchId"
            },
            "PubSlbSpecification": {
              "Ref": "PubSlbSpecification"
            }
          }
        }
      },
      "Outputs": {
        "InstanceId": {
          "Value": {
            "Fn::GetAtt": [
              "MseCluster",
              "InstanceId"
            ]
          }
        },
        "ClusterId": {
          "Value": {
            "Fn::GetAtt": [
              "MseCluster",
              "ClusterId"
            ]
          }
        }
      }
    }
  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Description: Test MSE Cluster
    Parameters:
      InstanceCount:
        Type: Number
        Default: 3
        MinValue: 3
        MaxValue: 5
      ClusterVersion:
        Type: String
        Default: NACOS_2_0_0
        AllowedValues:
          - ZooKeeper_3_5_5
          - ZooKeeper_3_4_14
          - NACOS_2_0_0
          - NACOS_ANS_1_2_1
      ClusterType:
        Type: String
        Default: Nacos-Ans
        AllowedValues:
          - ZooKeeper
          - Nacos-Ans
          - Eureka
      ClusterSpecification:
        Type: String
        Default: MSE_SC_2_4_200_c
        AllowedValues:
          - MSE_SC_1_2_200_c
          - MSE_SC_2_4_200_c
          - MSE_SC_4_8_200_c
          - MSE_SC_8_16_200
      NetType:
        Type: String
        Default: pubnet
        AllowedValues:
          - pubnet
          - privatenet
      VpcId:
        Type: String
      VSwitchId:
        Type: String
      PubSlbSpecification:
        Type: String
        AllowedValues:
          - slb.s1.small
          - slb.s3.medium
        Default: slb.s1.small
    Resources:
      MseCluster:
        Type: ALIYUN::MSE::Cluster
        Properties:
          MseVersion: mse_pro
          InstanceCount:
            Ref: InstanceCount
          ClusterVersion:
            Ref: ClusterVersion
          PubNetworkFlow: 1
          ClusterType:
            Ref: ClusterType
          ClusterSpecification:
            Ref: ClusterSpecification
          NetType:
            Ref: NetType
          DiskType: alicloud-disk-ssd-multi-zone
          VpcId:
            Ref: VpcId
          VSwitchId:
            Ref: VSwitchId
          PubSlbSpecification:
            Ref: PubSlbSpecification
    Outputs:
      InstanceId:
        Value:
          Fn::GetAtt:
            - MseCluster
            - InstanceId
      ClusterId:
        Value:
          Fn::GetAtt:
            - MseCluster
            - ClusterId
                        

For more examples, visit Cluster.json and Cluster.yml.