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,
"VSwitchId": String,
"DBClusterDescription": String,
"Period": String,
"EncryptionKey": String,
"DBClusterNetworkType": String,
"DBClusterType": String,
"VpcId": String,
"DBClusterVersion": String,
"DBNodeCount": Integer,
"UsedTime": Integer,
"PaymentType": String
}
}Properti
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
Category | String | Ya | Tidak | Edisi kluster. | Nilai yang valid:
|
DBClusterNetworkType | String | Ya | Tidak | Tipe jaringan. | Atur nilai ke VPC. Nilai ini menentukan virtual private cloud (VPC). |
DBClusterType | String | Ya | Ya | Spesifikasi kluster. |
|
DBClusterVersion | String | Ya | Tidak | Versi kluster. | Nilai yang valid:
|
DBNodeCount | Integer | Ya | Ya | Jumlah node. |
|
DBNodeStorage | Integer | Ya | Ya | Kapasitas penyimpanan node. | Nilai yang valid: 100 hingga 10000. Satuan: GB. Nilai harus dalam kelipatan 100 GB. |
DbNodeStorageType | String | Ya | Tidak | Tipe penyimpanan node. | Nilai yang valid:
|
PaymentType | String | Ya | Tidak | Metode penagihan. | Nilai yang valid:
|
DBClusterDescription | String | Tidak | Ya | Deskripsi kluster. | Tidak ada. |
EncryptionKey | String | Tidak | Tidak | ID kunci yang disediakan oleh Key Management Service (KMS). | Tidak ada. |
EncryptionType | String | Tidak | Tidak | Tipe enkripsi. | Atur nilai ke CloudDisk. Nilai CloudDisk menentukan bahwa enkripsi disk digunakan untuk kluster. |
Period | String | Tidak | Tidak | Unit durasi langganan kluster. | Nilai yang valid:
Catatan Anda harus menentukan properti ini ketika PaymentType diatur ke Prepaid. |
UsedTime | Integer | Tidak | Tidak | Durasi penggunaan kluster. |
|
VpcId | String | Tidak | Tidak | ID VPC. | Tidak ada. |
VSwitchId | String | Tidak | Tidak | ID vSwitch. | Tidak ada. |
ZoneId | String | Tidak | Tidak | ID zona. | Anda dapat memanggil operasi DescribeRegions untuk menanyakan zona yang didukung. |
Nilai Kembali
Fn::GetAtt
DBClusterId: ID kluster.
PublicPort: Port publik.
Bid: ID proses bisnis.
LockReason: Alasan mengapa kluster terkunci.
LockMode: Mode kunci.
DBClusterVersion: Versi kluster.
CommodityCode: Kode komoditas.
VpcId: ID VPC.
Engine: Mesin kluster.
Category: Edisi kluster.
DBClusterType: Spesifikasi kluster.
DBClusterNetworkType: Tipe jaringan.
EncryptionType: Tipe 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.
Period: Unit durasi langganan kluster.
StorageType: Tipe 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 KMS.
DbNodeStorageType: Tipe penyimpanan node.
DBNodeClass: Tipe node.
Contoh
YAML format
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: PrepaidJSON format
{
"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"
}
}
}
}