ALIYUN::CDDC::DedicatedHostGroup類型用於建立專屬叢集。
關於專屬叢集的更多資訊,請參見什麼是雲資料庫專屬叢集MyBase。
文法
{
"Type": "ALIYUN::CDDC::DedicatedHostGroup",
"Properties": {
"DiskAllocationRatio": Integer,
"AllocationPolicy": String,
"VpcId": String,
"MemAllocationRatio": Integer,
"HostReplacePolicy": String,
"CpuAllocationRatio": Integer,
"Engine": String,
"DedicatedHostGroupDesc": String,
"OpenPermission": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
Engine | String | 是 | 否 | 資料庫引擎類型。 | 取值:
|
VpcId | String | 是 | 否 | 專屬叢集歸屬的專用網路ID。 | 無 |
AllocationPolicy | String | 否 | 是 | 專屬叢集資源調度的分配策略。 | 取值:
|
CpuAllocationRatio | Integer | 否 | 是 | 專屬叢集的CPU超配比。 | 取值範圍:100%~300%。 預設值:200%,表示所有執行個體的CPU資源之和可以是實際CPU資源的2倍,充分利用資源。 |
DedicatedHostGroupDesc | String | 否 | 是 | 專屬叢集的名稱。 | 長度為1~64個字元,以英文字母或漢字開頭,可包含英文字母、漢字、數字、底線(_)和短劃線(-)。 |
DiskAllocationRatio | Integer | 否 | 是 | 專屬叢集的空間超配比。 | 取值範圍:100%~300%。 預設值:200%,表示所有執行個體的空間資源之和可以是實際空間資源的2倍,充分利用資源。 |
HostReplacePolicy | String | 否 | 是 | 主機故障時系統的處理策略。 | 取值:
說明 僅建立資料庫引擎為MySQL的專屬叢集時,可以根據實際需求選擇主機故障處理策略。其餘引擎均使用預設值Auto。 |
MemAllocationRatio | Integer | 否 | 是 | 專屬叢集中每台主機的記憶體最大使用率。 | 取值範圍:0%~100%。 預設值:100%。 |
OpenPermission | String | 否 | 是 | 是否開放專屬叢集內的主機的作業系統許可權。 | 取值:
|
傳回值
Fn::GetAtt
DeployType:執行個體部署方式。
DiskAllocationRatio:主機空間超配比。
DiskUsedAmount:磁碟使用量。
InstanceNumber:主機的執行個體數量。
AllocationPolicy:主機資源分派策略。
HostReplacePolicy:主機故障處理策略。
DedicatedHostGroupId:專屬叢集ID。
BastionInstanceId:主機的主執行個體D。
MemAllocatedAmount:記憶體配置量。
OpenPermission:主機的作業系統許可權。
MemAllocateRation:分配的記憶體比例。
DiskAllocatedAmount:磁碟分配容量。
Engine:主機的資料庫引擎類型。
MemUtility:記憶體利用率。
MemAllocationRatio:主機的記憶體超配比。
CpuAllocateRation:CPU申請比例。
Text:主機的描述。
MemUsedAmount:記憶體使用量量。
DedicatedHostGroupDesc:主機所屬的專屬叢集名稱。
VpcId:主機所屬專屬叢集的專用網路ID。
DiskUtility:磁碟利用率。
CpuAllocationRatio:主機CPU超配比。
DiskAllocateRation:磁碟分配率。
HostNumber:主機的數量。
CpuAllocatedAmount:CPU申請量。
樣本
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
Description: VPC ID
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Engine:
Type: String
Description: Database Engine Type
Default: MySQL
Resources:
CDDCDedicatedHostGroup:
Type: ALIYUN::CDDC::DedicatedHostGroup
Properties:
VpcId:
Ref: VpcId
Engine:
Ref: Engine
Outputs:
DeployType:
Description: DeployType
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DeployType
DiskAllocationRatio:
Description: Disk Allocation Ratio
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DiskAllocationRatio
DiskUsedAmount:
Description: DiskUsedAmount
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DiskUsedAmount
InstanceNumber:
Description: Total Instance Number
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- InstanceNumber
AllocationPolicy:
Description: Allocation Policy
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- AllocationPolicy
HostReplacePolicy:
Description: Host Replace Policy
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- HostReplacePolicy
DedicatedHostGroupId:
Description: Dedicated Host Group ID
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DedicatedHostGroupId
BastionInstanceId:
Description: BastionInstanceId
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- BastionInstanceId
MemAllocatedAmount:
Description: MemAllocatedAmount
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- MemAllocatedAmount
OpenPermission:
Description: Whether Open OS Permission
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- OpenPermission
MemAllocateRation:
Description: MemAllocateRation
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- MemAllocateRation
DiskAllocatedAmount:
Description: DiskAllocatedAmount
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DiskAllocatedAmount
Engine:
Description: Database Engine Type
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- Engine
MemUtility:
Description: MemUtility
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- MemUtility
MemAllocationRatio:
Description: Memory Allocation Ratio
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- MemAllocationRatio
CpuAllocateRation:
Description: CpuAllocateRation
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- CpuAllocateRation
Text:
Description: Text
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- Text
MemUsedAmount:
Description: MemUsedAmount
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- MemUsedAmount
DedicatedHostGroupDesc:
Description: Dedicated Host Group Description
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DedicatedHostGroupDesc
VpcId:
Description: VPC ID
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- VpcId
DiskUtility:
Description: DiskUtility
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DiskUtility
CpuAllocationRatio:
Description: Cpu Allocation Ratio
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- CpuAllocationRatio
DiskAllocateRation:
Description: DiskAllocateRation
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- DiskAllocateRation
HostNumber:
Description: Total Host Number
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- HostNumber
CpuAllocatedAmount:
Description: CpuAllocatedAmount
Value:
Fn::GetAtt:
- CDDCDedicatedHostGroup
- CpuAllocatedAmount
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"Description": "VPC ID",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"Engine": {
"Type": "String",
"Description": "Database Engine Type",
"Default": "MySQL"
}
},
"Resources": {
"CDDCDedicatedHostGroup": {
"Type": "ALIYUN::CDDC::DedicatedHostGroup",
"Properties": {
"VpcId": {
"Ref": "VpcId"
},
"Engine": {
"Ref": "Engine"
}
}
}
},
"Outputs": {
"DeployType": {
"Description": "DeployType",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DeployType"
]
}
},
"DiskAllocationRatio": {
"Description": "Disk Allocation Ratio",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DiskAllocationRatio"
]
}
},
"DiskUsedAmount": {
"Description": "DiskUsedAmount",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DiskUsedAmount"
]
}
},
"InstanceNumber": {
"Description": "Total Instance Number",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"InstanceNumber"
]
}
},
"AllocationPolicy": {
"Description": "Allocation Policy",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"AllocationPolicy"
]
}
},
"HostReplacePolicy": {
"Description": "Host Replace Policy",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"HostReplacePolicy"
]
}
},
"DedicatedHostGroupId": {
"Description": "Dedicated Host Group ID",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DedicatedHostGroupId"
]
}
},
"BastionInstanceId": {
"Description": "BastionInstanceId",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"BastionInstanceId"
]
}
},
"MemAllocatedAmount": {
"Description": "MemAllocatedAmount",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"MemAllocatedAmount"
]
}
},
"OpenPermission": {
"Description": "Whether Open OS Permission",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"OpenPermission"
]
}
},
"MemAllocateRation": {
"Description": "MemAllocateRation",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"MemAllocateRation"
]
}
},
"DiskAllocatedAmount": {
"Description": "DiskAllocatedAmount",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DiskAllocatedAmount"
]
}
},
"Engine": {
"Description": "Database Engine Type",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"Engine"
]
}
},
"MemUtility": {
"Description": "MemUtility",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"MemUtility"
]
}
},
"MemAllocationRatio": {
"Description": "Memory Allocation Ratio",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"MemAllocationRatio"
]
}
},
"CpuAllocateRation": {
"Description": "CpuAllocateRation",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"CpuAllocateRation"
]
}
},
"Text": {
"Description": "Text",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"Text"
]
}
},
"MemUsedAmount": {
"Description": "MemUsedAmount",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"MemUsedAmount"
]
}
},
"DedicatedHostGroupDesc": {
"Description": "Dedicated Host Group Description",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DedicatedHostGroupDesc"
]
}
},
"VpcId": {
"Description": "VPC ID",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"VpcId"
]
}
},
"DiskUtility": {
"Description": "DiskUtility",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DiskUtility"
]
}
},
"CpuAllocationRatio": {
"Description": "Cpu Allocation Ratio",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"CpuAllocationRatio"
]
}
},
"DiskAllocateRation": {
"Description": "DiskAllocateRation",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"DiskAllocateRation"
]
}
},
"HostNumber": {
"Description": "Total Host Number",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"HostNumber"
]
}
},
"CpuAllocatedAmount": {
"Description": "CpuAllocatedAmount",
"Value": {
"Fn::GetAtt": [
"CDDCDedicatedHostGroup",
"CpuAllocatedAmount"
]
}
}
}
}