文档

ALIYUN::Lindorm::MultiZoneInstance

更新时间:

ALIYUN::Lindorm::MultiZoneInstance类型用于创建多可用区Lindorm实例。

语法

{
  "Type": "ALIYUN::Lindorm::MultiZoneInstance",
  "Properties": {
    "StandbyZoneId": String,
    "ResourceGroupId": String,
    "InstanceChargeType": String,
    "LogDiskCategory": String,
    "StandbyVSwitchId": String,
    "SolrNum": Integer,
    "SolrSpec": String,
    "CoreSpec": String,
    "FilestoreSpec": String,
    "TsdbNum": Integer,
    "ArbiterZoneId": String,
    "PrimaryZoneId": String,
    "MultiZoneCombination": String,
    "CoreSingleStorage": Integer,
    "ColdStorage": Integer,
    "DiskCategory": String,
    "LogSpec": String,
    "Period": Integer,
    "PrimaryVSwitchId": String,
    "ArbiterVSwitchId": String,
    "InstanceName": String,
    "FilestoreNum": Integer,
    "VpcId": String,
    "SecurityIpList": List,
    "LindormSpec": String,
    "TsdbSpec": String,
    "LogSingleStorage": Integer,
    "LindormNum": Integer,
    "LogNum": Integer,
    "PeriodUnit": String,
    "StreamSpec": String,
    "StreamNum": Integer
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

StandbyZoneId

String

多可用区实例,备可用区的可用区ID。

ResourceGroupId

String

资源组ID。

InstanceChargeType

String

实例的付费类型。

取值:

  • PREPAY:包年包月(预付费)。

  • POSTPAY:按量付费(后付费)。

LogDiskCategory

String

多可用区实例,log节点磁盘类型。

取值:

  • cloud_efficiency:标准云存储。

  • cloud_ssd:性能云存储。

StandbyVSwitchId

String

备可用区的虚拟交换机ID。

必须在StandbyZoneId对应的可用区下。

SolrNum

Integer

实例的搜索引擎节点数量。

取值范围:0~60。

SolrSpec

String

实例的搜索引擎节点规格。

取值:

  • lindorm.g.xlarge:表示4核16GB(独享规格)。

  • lindorm.g.2xlarge:表示8核32GB(独享规格)。

  • lindorm.g.4xlarge:表示16核64GB(独享规格)。

  • lindorm.g.8xlarge:表示32核128GB(独享规格)。

CoreSpec

String

实例的本地盘类型节点规格。

本地存储类型为local_ssd_pro时,本参数取值为:

  • lindorm.i2.xlarge:表示4核32GB(独享规格)。

  • lindorm.i2.2xlarge:表示8核64GB(独享规格)。

  • lindorm.i2.4xlarge:表示16核128GB(独享规格)。

  • lindorm.i2.8xlarge:表示32核256GB(独享规格)。

本地存储类型为local_hdd_pro时,本参数取值为:

  • lindorm.d2c.6xlarge:表示24核88GB(独享规格)。

  • lindorm.d2c.12xlarge:表示48核176GB(独享规格)。

  • lindorm.d2c.24xlarge:表示96核352GB(独享规格)。

  • lindorm.d2s.5xlarge:表示20核88GB(独享规格)。

  • lindorm.d2s.10xlarge:表示40核176GB(独享规格)。

  • lindorm.d1.2xlarge:表示8核32GB(独享规格)。

  • lindorm.d1.4xlarge:表示16核64GB(独享规格)。

  • lindorm.d1.6xlarge:表示24核96GB(独享规格)。

FilestoreSpec

String

实例的文件引擎节点规格。

取值:

lindorm.c.xlarge:表示4核8GB(标准规格)。

TsdbNum

Integer

实例的时序引擎节点数量。

取值:

  • 如果实例的付费类型为PREPAY,取值范围为:0~24。

  • 如果实例的付费类型为POSTPAY,取值范围为:0~32。

ArbiterZoneId

String

协调可用区的可用区ID。

PrimaryZoneId

String

主可用区的可用区ID。

MultiZoneCombination

String

多可用区组合。

取值:

  • ap-southeast-5abc-aliyun:印度尼西亚(雅加达)A+B+C。

  • cn-hangzhou-ehi-aliyun:华东1(杭州)E+H+I。

  • cn-beijing-acd-aliyun:华北2(北京)A+C+D。

  • ap-southeast-1-abc-aliyun:新加坡A+B+C。

  • cn-zhangjiakou-abc-aliyun:华北3(张家口)A+B+C。

  • cn-shanghai-efg-aliyun:华东2(上海)E+F+G。

  • cn-shanghai-abd-aliyun:华东2(上海)A+B+D。

  • cn-hangzhou-bef-aliyun:华东1(杭州)B+E+F。

  • cn-hangzhou-bce-aliyun:华东1(杭州)B+C+E。

  • cn-beijing-fgh-aliyun:华北2(北京)F+G+H。

  • cn-shenzhen-abc-aliyun:华南1(深圳)A+B+C。

CoreSingleStorage

Integer

core单节点容量。

取值范围:400~64000。

单位为GB。

ColdStorage

Integer

实例的冷存储容量。

单位为GB,不填默认不开通冷存储。

取值范围:800~1000000。

DiskCategory

String

实例的存储类型。

取值:

  • cloud_efficiency:标准型云存储。

  • cloud_ssd:性能型云存储。

  • capacity_cloud_storage:容量型云存储。

  • local_ssd_pro:本地SSD盘。

  • local_hdd_pro:本地HDD盘。

LogSpec

String

log节点规格。

取值:

  • lindorm.sn1.large:表示4核8GB(独享规格)。

  • lindorm.sn1.2xlarge:表示8核16GB(独享规格)。

Period

Integer

实例包年包月的时间。

取值:

  • PeriodUnit为Month,表示按月付费,取值范围为1~9。

  • PeriodUnit为Year,表示按年付费,取值范围为1~3。

说明

当InstanceChargeType取值为PREPAY时,本参数可用且必须传入。

PrimaryVSwitchId

String

主可用区的虚拟交换机ID。

必须在PrimaryZoneId对应的可用区下。

ArbiterVSwitchId

String

协调可用区虚拟交换机ID。

交换机需位于ArbiterZoneId对应的可用区下。

InstanceName

String

实例名称。

FilestoreNum

Integer

实例的文件引擎节点数量。

取值:

  • 如果实例的付费类型为PREPAY,取值范围:0~60。

  • 如果实例的付费类型为POSTPAY,取值范围:0~8。

VpcId

String

实例的专有网络ID。

SecurityIpList

List

需要设置的白名单IP地址。

说明

127.0.0.1表示禁止所有地址访问,例如192.168.0.0/24表示允许所有192.168.0.X的IP地址访问该Lindorm实例。多个白名单用半角逗号(,)分隔。

LindormSpec

String

实例的宽表引擎节点规格。

取值:

  • lindorm.g.xlarge:表示4核16GB(独享规格)。

  • lindorm.c.2xlarge:表示8核16GB(独享规格)。

  • lindorm.g.2xlarge:表示8核32GB(独享规格)。

  • lindorm.c.4xlarge:表示16核32GB(独享规格)。

  • lindorm.g.4xlarge:表示16核64GB(独享规格)。

  • lindorm.c.8xlarge:表示32核64GB(独享规格)。

  • lindorm.g.8xlarge:表示32核128GB(独享规格)。

TsdbSpec

String

实例的时序引擎节点规格。

取值:

  • lindorm.g.xlarge:表示4核16GB(独享规格)。

  • lindorm.g.2xlarge:表示8核32GB(独享规格)。

  • lindorm.g.4xlarge:表示16核64GB(独享规格)。

  • lindorm.g.8xlarge:表示32核128GB(独享规格)。

  • lindorm.r.8xlarge:表示32核256GB(独享规格)。

LogSingleStorage

Integer

log单节点磁盘容量。

取值范围:400~64000。

单位为GB。

LindormNum

Integer

实例的宽表引擎节点数量。

非本地盘存储类型的实例,取值范围:4~400。

本地盘存储类型的实例,取值范围:6~400。

LogNum

Integer

log节点数量。

取值范围:4~400。

PeriodUnit

String

实例购买的付费周期。

取值:

  • Month:单位为月。

  • Year:单位为年。

说明

当InstanceChargeType取值为PREPAY时,本参数可用且必须传入。

StreamSpec

String

实例的流引擎节点规格。

取值:

  • lindorm.g.xlarge:表示4核16GB(独享规格)。

  • lindorm.c.2xlarge:表示8核16GB(独享规格)。

  • lindorm.g.2xlarge:表示8核32GB(独享规格)。

  • lindorm.c.4xlarge:表示16核32GB(独享规格)。

  • lindorm.g.4xlarge:表示16核64GB(独享规格)。

  • lindorm.c.8xlarge:表示32核64GB(独享规格)。

  • lindorm.g.8xlarge:表示32核128GB(独享规格)。

StreamNum

Integer

实例的流引擎节点数量。

取值:0~60。

返回值

Fn::GetAtt

  • JdbcUrlList:数据库的JDBC连接信息列表。

  • InstanceId:实例ID。

  • AuthInfos:Lindorm实例授权信息列表。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  StandbyZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ZoneId
  ArbiterZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ZoneId
  PrimaryZoneId:
    Type: String
    AssociationProperty: ALIYUN::ECS::ZoneId
  StandbyVSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${StandbyZoneId}
      VpcId: ${VpcId}
  PrimaryVSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${PrimaryZoneId}
      VpcId: ${VpcId}
  ArbiterVSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${ArbiterZoneId}
      VpcId: ${VpcId}
Resources:
  MultiZoneInstance:
    Type: ALIYUN::Lindorm::MultiZoneInstance
    Properties:
      PrimaryVSwitchId:
        Ref: PrimaryVSwitchId
      ArbiterVSwitchId:
        Ref: ArbiterVSwitchId
      LogSpec: lindorm.sn1.large
      CoreSingleStorage: 400
      LogDiskCategory: cloud_efficiency
      ArbiterZoneId:
        Ref: ArbiterZoneId
      PrimaryZoneId:
        Ref: PrimaryZoneId
      InstanceStorage: 480
      StandbyZoneId:
        Ref: StandbyZoneId
      InstanceChargeType: POSTPAY
      StandbyVSwitchId:
        Ref: StandbyVSwitchId
      DiskCategory: cloud_efficiency
      InstanceName: TestLindormDB
      VpcId:
        Ref: VpcId
      LindormSpec: lindorm.c.xlarge
      TsdbSpec: lindorm.g.xlarge
      CoreSpec: lindorm.i2.xlarge
      LindormNum: 4
      LogNum: 4
      TsdbNum: 2
      LogSingleStorage: 400
      FilestoreSpec: lindorm.c.xlarge
Outputs:
  JdbcUrlList:
    Description: The list of the jdbc connection address.
    Value:
      Fn::GetAtt:
        - MultiZoneInstance
        - JdbcUrlList
  InstanceId:
    Description: The ID of the Lindorm instance that is created.
    Value:
      Fn::GetAtt:
        - MultiZoneInstance
        - InstanceId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "StandbyZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ZoneId"
    },
    "ArbiterZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ZoneId"
    },
    "PrimaryZoneId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::ZoneId"
    },
    "StandbyVSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${StandbyZoneId}",
        "VpcId": "${VpcId}"
      }
    },
    "PrimaryVSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${PrimaryZoneId}",
        "VpcId": "${VpcId}"
      }
    },
    "ArbiterVSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${ArbiterZoneId}",
        "VpcId": "${VpcId}"
      }
    }
  },
  "Resources": {
    "MultiZoneInstance": {
      "Type": "ALIYUN::Lindorm::MultiZoneInstance",
      "Properties": {
        "PrimaryVSwitchId": {
          "Ref": "PrimaryVSwitchId"
        },
        "ArbiterVSwitchId": {
          "Ref": "ArbiterVSwitchId"
        },
        "LogSpec": "lindorm.sn1.large",
        "CoreSingleStorage": 400,
        "LogDiskCategory": "cloud_efficiency",
        "ArbiterZoneId": {
          "Ref": "ArbiterZoneId"
        },
        "PrimaryZoneId": {
          "Ref": "PrimaryZoneId"
        },
        "InstanceStorage": 480,
        "StandbyZoneId": {
          "Ref": "StandbyZoneId"
        },
        "InstanceChargeType": "POSTPAY",
        "StandbyVSwitchId": {
          "Ref": "StandbyVSwitchId"
        },
        "DiskCategory": "cloud_efficiency",
        "InstanceName": "TestLindormDB",
        "VpcId": {
          "Ref": "VpcId"
        },
        "LindormSpec": "lindorm.c.xlarge",
        "TsdbSpec": "lindorm.g.xlarge",
        "CoreSpec": "lindorm.i2.xlarge",
        "LindormNum": 4,
        "LogNum": 4,
        "TsdbNum": 2,
        "LogSingleStorage": 400,
        "FilestoreSpec": "lindorm.c.xlarge"
      }
    }
  },
  "Outputs": {
    "JdbcUrlList": {
      "Description": "The list of the jdbc connection address.",
      "Value": {
        "Fn::GetAtt": [
          "MultiZoneInstance",
          "JdbcUrlList"
        ]
      }
    },
    "InstanceId": {
      "Description": "The ID of the Lindorm instance that is created.",
      "Value": {
        "Fn::GetAtt": [
          "MultiZoneInstance",
          "InstanceId"
        ]
      }
    }
  }
}
  • 本页导读 (1)
文档反馈