文档

ALIYUN::Lindorm::Instance

更新时间:

ALIYUN::Lindorm::Instance类型用于创建Lindorm实例。

语法

{
  "Type": "ALIYUN::Lindorm::Instance",
  "Properties": {
    "InstanceStorage": Integer,
    "ResourceGroupId": String,
    "ZoneId": String,
    "InstanceChargeType": String,
    "VSwitchId": String,
    "ColdStorage": Integer,
    "Period": Integer,
    "DiskCategory": String,
    "InstanceName": String,
    "SolrNum": Integer,
    "SolrSpec": String,
    "VpcId": String,
    "FilestoreNum": Integer,
    "SecurityIpList": List,
    "LindormSpec": String,
    "TsdbSpec": String,
    "CoreSpec": String,
    "LindormNum": Integer,
    "TsdbNum": Integer,
    "FilestoreSpec": String,
    "PeriodUnit": String,
    "StreamSpec": String,
    "StreamNum": Integer
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

InstanceStorage

Integer

实例的存储容量。

单位为GB。

ResourceGroupId

String

资源组ID。

ZoneId

String

实例的可用区ID。

InstanceChargeType

String

实例的付费类型。

取值:

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

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

VSwitchId

String

虚拟交换机的ID。

ColdStorage

Integer

实例的冷存储容量。

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

取值范围:800~1000000。

Period

Integer

实例包年包月的时间。

取值:

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

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

说明

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

DiskCategory

String

实例的存储类型。

取值:

  • cloud_efficiency:标准型云存储。

  • cloud_ssd:性能型云存储。

  • capacity_cloud_storage:容量型云存储。

  • local_ssd_pro:本地SSD盘。

  • local_hdd_pro:本地HDD盘。

InstanceName

String

实例名称。

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(独享规格)。

VpcId

String

实例的专有网络ID。

FilestoreNum

Integer

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

取值:

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

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

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(独享规格)。

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(独享规格)。

LindormNum

Integer

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

如果需要创建单可用区实例,取值范围为:0~90。

TsdbNum

Integer

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

取值:

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

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

FilestoreSpec

String

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

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

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
      ZoneId:
        Type: String
        AssociationProperty: ALIYUN::ECS::ZoneId
      VSwitchId:
        Type: String
        AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
        AssociationPropertyMetadata:
          ZoneId: ${ZoneId}
          VpcId: ${VpcId}
    Resources:
      LindormInstance:
        Type: ALIYUN::Lindorm::Instance
        Properties:
          InstanceStorage: 480
          ZoneId:
            Ref: ZoneId
          InstanceChargeType: POSTPAY
          VSwitchId:
            Ref: VSwitchId
          DiskCategory: cloud_efficiency
          InstanceName: TestLindormDB
          VpcId:
            Ref: VpcId
          LindormSpec: lindorm.c.xlarge
          TsdbSpec: lindorm.g.xlarge
          CoreSpec: lindorm.i2.xlarge
          LindormNum: 2
          TsdbNum: 2
          FilestoreSpec: lindorm.c.xlarge
    Outputs:
      JdbcUrlList:
        Description: The list of the jdbc connection address.
        Value:
          Fn::GetAtt:
            - LindormInstance
            - JdbcUrlList
      InstanceId:
        Description: The ID of the Lindorm instance that is created.
        Value:
          Fn::GetAtt:
            - LindormInstance
            - InstanceId
  • JSON格式

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