-
Notifications
You must be signed in to change notification settings - Fork 35
/
sharding-instance.yml
156 lines (156 loc) · 3.6 KB
/
sharding-instance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建分布式MongoDB实例,支持配置Mongos、Shard节点及备份恢复,自定义网络、存储、安全设置。
en: Establish a distributed MongoDB instance with support for configuring Mongos,
Shard nodes, and backup restoration. Enable customization of network configurations,
storage setups, and security settings.
Parameters:
ZoneId:
Type: String
Description: On which zone to create the instance. If VpcId and VSwitchId is specified,
ZoneId is required and VSwitch should be in same zone.
Default: null
ProtocolType:
Type: String
Description: 协议类型
Default: mongodb
AllowedValues:
- mongodb
- dynamodb
EngineVersion:
Type: String
Description: 数据库版本
StorageEngine:
Type: String
Description: 存储引擎
Default: WiredTiger
AllowedValues:
- WiredTiger
- RocksDB
NetworkType:
Type: String
Description: 网络类型
AllowedValues:
- CLASSIC
- VPC
VpcId:
Type: String
Default: null
VSwitchId:
Type: String
Description: ''
Default: null
Mongos:
Type: Json
Description: Mongos节点
Default:
- Class: dds.mongos.mid
- Class: dds.mongos.mid
MinLength: 2
MaxLength: 32
ReplicaSet:
Type: Json
Description: Shard节点
Default:
- Storage: 10
Class: dds.shard.mid
- Storage: 10
Class: dds.shard.mid
MinLength: 2
MaxLength: 32
ConfigServer:
Type: Json
Description: ''
Default:
- Storage: 20
Class: dds.cs.mid
MinLength: 1
MaxLength: 1
AutoRenew:
Type: Boolean
Description: 'Indicates whether automatic renewal is enabled for the instance.
Valid values:true: Automatic renewal is enabled.false: Automatic renewal is
not enabled. You must renew the instance manually.Default value: false.'
Default: false
AllowedValues:
- true
- false
SecurityIPArray:
Type: String
Default: null
RestoreTime:
Type: String
Default: null
AccountPassword:
Type: String
Default: null
ChargeType:
Type: String
Default: null
AllowedValues:
- null
- PostPaid
- PrePaid
SrcDBInstanceId:
Type: String
Default: null
DBInstanceDescription:
Type: String
Default: null
Resources:
MongoDbShardingInstance:
Type: ALIYUN::MONGODB::ShardingInstance
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
EngineVersion:
Ref: EngineVersion
AutoRenew:
Ref: AutoRenew
SecurityIPArray:
Ref: SecurityIPArray
Mongos:
Ref: Mongos
StorageEngine:
Ref: StorageEngine
RestoreTime:
Ref: RestoreTime
AccountPassword:
Ref: AccountPassword
ProtocolType:
Ref: ProtocolType
ChargeType:
Ref: ChargeType
NetworkType:
Ref: NetworkType
ConfigServer:
Ref: ConfigServer
SrcDBInstanceId:
Ref: SrcDBInstanceId
ReplicaSet:
Ref: ReplicaSet
DBInstanceDescription:
Ref: DBInstanceDescription
Outputs:
DBInstanceStatus:
Description: Status of mongodb instance.
Value:
Fn::GetAtt:
- MongoDbShardingInstance
- DBInstanceStatus
DBInstanceId:
Description: The instance id of created mongodb instance.
Value:
Fn::GetAtt:
- MongoDbShardingInstance
- DBInstanceId
OrderId:
Description: Order Id of created instance.
Value:
Fn::GetAtt:
- MongoDbShardingInstance
- OrderId