ALIYUN::DashVector::Cluster は、DashVector クラスターを作成するために使用されます。
構文
{
"Type": "ALIYUN::DashVector::Cluster",
"Properties": {
"ClusterName": String,
"ClusterType": String,
"ReplicaCount": Integer,
"IgnoreExisting": Boolean
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ClusterName | String | はい | いいえ | クラスター名。 | 名前は 3 ~ 32 文字で、文字、数字、アンダースコア(_)、ハイフン(-)のみを含めることができます。アカウント内で一意である必要があります。 |
ClusterType | String | はい | いいえ | クラスターの仕様。 | クラスターの仕様は、クラスターのタイプによって異なります。 |
ReplicaCount | Integer | はい | いいえ | レプリカ数。 | 有効な値:1 ~ 5。すべてのレプリカのデータは同じです。 サポートされる QPS は、レプリカの数に基づいて線形的に増加します。 レプリカの数が多いほど、サービスの可用性が高くなります。 本番環境で高いサービス可用性が必要な場合は、少なくとも 2 つのレプリカを使用することをお勧めします。 |
IgnoreExisting | Boolean | いいえ | いいえ | 既存のクラスターを無視するかどうかを指定します。 | 有効な値:
|
戻り値
Fn::GetAtt
Endpoint:クラスターのエンドポイント。
InstanceId:クラスター ID。
ClusterName:クラスター名。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ReplicaCount:
Type: Number
Description:
ja: レプリカ数。
Required: true
MinValue: 1
MaxValue: 5
Default: 1
ClusterName:
Type: String
Description:
ja: クラスターの名前。
AllowedPattern: '[-a-z0-9_]{3,32}'
Required: true
Default: test
ClusterType:
Type: String
Description:
ja: クラスターのタイプ。
AllowedValues:
- Serverless
- S.small
- S.large
- S.xlarge
- S.2xlarge
- S.4xlarge
- S.8xlarge
- S.16xlarge
- P.small
- P.large
- P.xlarge
- P.2xlarge
- P.4xlarge
- P.8xlarge
- P.16xlarge
Required: true
Default: S.large
Resources:
Cluster:
Type: ALIYUN::DashVector::Cluster
Properties:
ReplicaCount:
Ref: ReplicaCount
ClusterName:
Ref: ClusterName
ClusterType:
Ref: ClusterType
Outputs:
Endpoint:
Description: クラスターのエンドポイント。
Value:
Fn::GetAtt:
- Cluster
- Endpoint
InstanceId:
Description: クラスターの ID。
Value:
Fn::GetAtt:
- Cluster
- InstanceId
ClusterName:
Description: クラスターの名前。
Value:
Fn::GetAtt:
- Cluster
- ClusterName
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ReplicaCount": {
"Type": "Number",
"Description": {
"ja": "レプリカ数。"
},
"Required": true,
"MinValue": 1,
"MaxValue": 5,
"Default": 1
},
"ClusterName": {
"Type": "String",
"Description": {
"ja": "クラスターの名前。"
},
"AllowedPattern": "[-a-z0-9_]{3,32}",
"Required": true,
"Default": "test"
},
"ClusterType": {
"Type": "String",
"Description": {
"ja": "クラスターのタイプ。"
},
"AllowedValues": [
"Serverless",
"S.small",
"S.large",
"S.xlarge",
"S.2xlarge",
"S.4xlarge",
"S.8xlarge",
"S.16xlarge",
"P.small",
"P.large",
"P.xlarge",
"P.2xlarge",
"P.4xlarge",
"P.8xlarge",
"P.16xlarge"
],
"Required": true,
"Default": "S.large"
}
},
"Resources": {
"Cluster": {
"Type": "ALIYUN::DashVector::Cluster",
"Properties": {
"ReplicaCount": {
"Ref": "ReplicaCount"
},
"ClusterName": {
"Ref": "ClusterName"
},
"ClusterType": {
"Ref": "ClusterType"
}
}
}
},
"Outputs": {
"Endpoint": {
"Description": "クラスターのエンドポイント。",
"Value": {
"Fn::GetAtt": [
"Cluster",
"Endpoint"
]
}
},
"InstanceId": {
"Description": "クラスターの ID。",
"Value": {
"Fn::GetAtt": [
"Cluster",
"InstanceId"
]
}
},
"ClusterName": {
"Description": "クラスターの名前。",
"Value": {
"Fn::GetAtt": [
"Cluster",
"ClusterName"
]
}
}
}
}