All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ClickHouse::DBCluster

Last Updated:Mar 28, 2026

ALIYUN::ClickHouse::DBCluster digunakan untuk membuat kluster ApsaraDB for ClickHouse.

Sintaksis

{
  "Type": "ALIYUN::ClickHouse::DBCluster",
  "Properties": {
    "DbNodeStorageType": String,
    "DBNodeStorage": Integer,
    "EncryptionType": String,
    "Category": String,
    "ZoneId": String,
    "ZoneIdBak": String,
    "ZoneIdBak2": String,
    "VSwitchId": String,
    "VSwitchBak": String,
    "VSwitchBak2": String,
    "DBClusterDescription": String,
    "Period": String,
    "EncryptionKey": String,
    "DBClusterNetworkType": String,
    "DBClusterType": String,
    "VpcId": String,
    "DBClusterVersion": String,
    "DBNodeCount": Integer,
    "UsedTime": Integer,
    "PaymentType": String
  }
}

Properti

Property

Type

Required

Editable

Description

Constraint

Category

String

Yes

No

Edisi kluster.

Nilai yang valid:

  • Basic: Edisi Single-replica

  • HighAvailability: Edisi Double-replica

DBClusterNetworkType

String

Yes

No

Jenis jaringan.

Tetapkan nilai ke VPC. Nilai ini menentukan virtual private cloud (VPC).

DBClusterType

String

Yes

Yes

Spesifikasi kluster.

  • Nilai yang valid saat kluster menggunakan Edisi Double-replica:

    • LC20: tipe large-storage, 20 core, dan memori 88 GB

    • LC40: tipe large-storage, 40 core, dan memori 176 GB

    • LC80: tipe large-storage, 80 core, dan memori 352 GB

    • C8: tipe standar, 8 core, dan memori 32 GB

    • C16: tipe standar, 16 core, dan memori 64 GB

    • C32: tipe standar, 32 core, dan memori 128 GB

    • C64: tipe standar, 64 core, dan memori 256 GB

    • C80: tipe standar, 80 core, dan memori 384 GB

    • C104: tipe standar, 104 core, dan memori 384 GB

  • Nilai yang valid saat kluster menggunakan Edisi Single-replica:

    • LS20: tipe large-storage, 20 core, dan memori 88 GB

    • LS40: tipe large-storage, 40 core, dan memori 176 GB

    • LS80: tipe large-storage, 80 core, dan memori 352 GB

    • S8: tipe standar, 8 core, dan memori 32 GB

    • S16: tipe standar, 16 core, dan memori 64 GB

    • S32: tipe standar, 32 core, dan memori 128 GB

    • S64: tipe standar, 64 core, dan memori 256 GB

    • S80: tipe standar, 80 core, dan memori 384 GB

    • S104: tipe standar, 104 core, dan memori 384 GB

DBClusterVersion

String

Yes

No

Versi kluster.

Nilai yang valid:

  • 21.8.10.19

  • 22.8.5.29

DBNodeCount

Integer

Yes

Yes

Jumlah node.

  • Nilai yang valid untuk seri S: 1 hingga 48.

  • Nilai yang valid untuk seri C: 1 hingga 24.

DBNodeStorage

Integer

Yes

Yes

Kapasitas penyimpanan node.

Nilai yang valid: 100 hingga 10000.

Unit: GB.

Nilai harus dalam kelipatan 100 GB.

DbNodeStorageType

String

Yes

No

Jenis penyimpanan node.

Nilai yang valid:

  • cloud_essd: Enterprise SSD (ESSD)

  • cloud_efficiency: ultra disk

PaymentType

String

Yes

No

Metode penagihan.

Nilai yang valid:

  • Postpaid: pay-as-you-go

  • Prepaid: subscription

DBClusterDescription

String

No

Yes

Deskripsi kluster.

None.

EncryptionKey

String

No

No

ID kunci yang disediakan oleh Key Management Service (KMS).

None.

EncryptionType

String

No

No

Jenis enkripsi.

Tetapkan nilai ke CloudDisk. Nilai CloudDisk menunjukkan bahwa enkripsi disk digunakan untuk kluster.

Period

String

No

No

Unit durasi langganan kluster.

Nilai yang valid:

  • Year

  • Month

Catatan

Anda harus menentukan properti ini ketika PaymentType diatur ke Prepaid.

UsedTime

Integer

No

No

Durasi penggunaan kluster.

  • Nilai yang valid saat Period diatur ke Month: 1 hingga 9.

  • Nilai yang valid saat Period diatur ke Year: 1 hingga 3.

VpcId

String

No

No

ID VPC.

None.

VSwitchId

String

No

No

ID vSwitch.

None.

VSwitchBak

String

No

No

ID vSwitch cadangan.

None

VSwitchBak2

String

No

No

ID vSwitch cadangan kedua.

None

ZoneId

String

No

No

ID zona.

Anda dapat memanggil operasi DescribeRegions untuk mengkueri zona yang didukung.

ZoneIdBak

String

No

No

ID zona cadangan.

None

ZoneIdBak2

String

No

No

ID zona cadangan kedua.

None

Nilai kembalian

Fn::GetAtt

  • DBClusterId: ID kluster.

  • PublicPort: port publik.

  • Bid: ID proses bisnis.

  • LockReason: alasan penguncian kluster.

  • LockMode: mode kunci.

  • DBClusterVersion: versi kluster.

  • CommodityCode: Kode komoditas.

  • VpcId: ID VPC.

  • Engine: mesin kluster.

  • Category: edisi kluster.

  • DBClusterType: spesifikasi kluster.

  • DBClusterNetworkType: jenis jaringan.

  • EncryptionType: jenis enkripsi.

  • VpcCloudInstanceId: ID kluster tipe VPC.

  • Port: nomor port yang digunakan untuk menghubungkan ke kluster.

  • PaymentType: metode penagihan.

  • DBNodeStorage: kapasitas penyimpanan node.

  • PublicConnectionString: Titik akhir publik.

  • EngineVersion: versi mesin.

  • IsExpired: menunjukkan apakah kluster telah kedaluwarsa.

  • VSwitchId: ID vSwitch.

  • Periode: unit durasi langganan klaster.

  • StorageType: jenis penyimpanan.

  • DBNodeCount: jumlah node.

  • AliUid: ID Akun Alibaba Cloud.

  • DBClusterDescription: deskripsi kluster.

  • ConnectionString: Titik akhir kluster.

  • ZoneId: ID zona.

  • EncryptionKey: ID kunci yang disediakan oleh Key Management Service (KMS).

  • DbNodeStorageType: jenis penyimpanan node.

  • DBNodeClass: tipe node.

Contoh

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VPC::VPCId
  ZoneId:
    Type: String
    AssociationProperty: ZoneId
  VSwitchId:
    Type: String
    AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
    AssociationPropertyMetadata:
      ZoneId: ${ZoneId}
      VpcId: ${VpcId}
  PaymentType:
    Type: String
    Description: PayType
    Default: Month
Resources:
  ClickHouseDBCluster:
    Type: ALIYUN::ClickHouse::DBCluster
    Properties:
      DbNodeStorageType: cloud_essd
      DBNodeStorage: 100 
      Category: Basic
      ZoneId:
        Ref: ZoneId
      VSwitchId:
        Ref: VSwitchId
      Period: Month
      DBClusterNetworkType: VPC
      DBClusterType: S8
      VpcId:
        Ref: VpcId
      DBClusterVersion: 21.8.10.19
      DBNodeCount: 3
      UsedTime: 1
      PaymentType: Prepaid
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
    },
    "ZoneId": {
      "Type": "String",
      "AssociationProperty": "ZoneId"
    },
    "VSwitchId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
      "AssociationPropertyMetadata": {
        "ZoneId": "${ZoneId}",
        "VpcId": "${VpcId}"
      }
    },
    "PaymentType": {
      "Type": "String",
      "Description": "PayType",
      "Default": "Month"
    }
  },
  "Resources": {
    "ClickHouseDBCluster": {
      "Type": "ALIYUN::ClickHouse::DBCluster",
      "Properties": {
        "DbNodeStorageType": "cloud_essd",
        "DBNodeStorage": 100,
        "Category": "Basic",
        "ZoneId": {
          "Ref": "ZoneId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "Period": "Month",
        "DBClusterNetworkType": "VPC",
        "DBClusterType": "S8",
        "VpcId": {
          "Ref": "VpcId"
        },
        "DBClusterVersion": "21.8.10.19",
        "DBNodeCount": 3,
        "UsedTime": 1,
        "PaymentType": "Prepaid"
      }
    }
  }
}