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

PropertyTypeRequiredEditableDescriptionConstraint
DiskTypeStringNoNoThe disk type. Set the value to alicloud-disk-ssd-multi-zone.
AcceptLanguageStringNoNoThe language in which you want the results to be displayed. None.
MseVersionStringNoNoThe version of the cluster. Valid values:
  • mse_dev: Developer Edition
  • mse_pro: Professional Edition
InstanceCountIntegerYesNoThe number of instances. Valid values: 1 to 9.
PrivateSlbSpecificationStringNoNoThe specification of the internal-facing Server Load Balancer (SLB) instance. Valid values:
  • slb.s1.small
  • slb.s3.medium
VpcIdStringNoNoThe ID of the virtual private cloud (VPC). None.
ClusterVersionStringYesNoThe version of the cluster. Valid values:
  • ZooKeeper_3_4_14
  • ZooKeeper_3_5_5
  • NACOS_ANS_1_2_1
  • NACOS_2_0_0
PubNetworkFlowStringNoNoThe 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.
ClusterSpecificationStringYesNoThe 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
VSwitchIdStringNoNoThe ID of the vSwitch. None.
PubSlbSpecificationStringNoNoThe specification of the Internet-facing SLB instance. Valid values:
  • slb.s1.small
  • slb.s3.medium
ClusterTypeStringYesNoThe type of the cluster. Valid values:
  • ZooKeeper
  • Nacos-Ans
  • Eureka
NetTypeStringYesNoThe network type of the cluster. Valid values:
  • privatenet: VPC
  • pubnet: Internet
ClusterAliasNameStringNoYesThe alias of the cluster. Fuzzy match is supported.
ConnectionTypeStringNoNoThe network connection type of the cluster. None.
RequestParsStringNoNoThe extended properties that you want to specify in the request. The properties must be in the JSON format.
AclEntryListListNoYesThe 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

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

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