forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fpga-cloud-servers.yml
374 lines (374 loc) · 13.4 KB
/
fpga-cloud-servers.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 部署实时转码方案,优化图片与视频转码效率,降低带宽与存储成本,含VPC、安全组、FPGA实例群与OSS存储。
en: Deploy a real-time transcoding solution to optimize the efficiency of image
and video transcoding, thereby reducing bandwidth and storage costs. This includes
implementation of Virtual Private Cloud (VPC), Security Groups, clusters of Field-Programmable
Gate Array (FPGA) instances, and integration with Object Storage Service (OSS).
Parameters:
ZoneId:
Type: String
Label:
en: Availability Zone
zh-cn: 可用区
Description:
en: Availability Zone ID.<br><b>note:<font color='blue'>before selecting, please
confirm that the Availability Zone supports the specification of creating
ECS resources</font></b>
zh-cn: 可用区ID。<br><b>注: <font color='blue'>选择前请确认该可用区是否支持创建ECS资源的规格</font></b>
AssociationProperty: ALIYUN::ECS::Instance:ZoneId
VpcCidrBlock:
Type: String
Label:
en: VPC CIDR Block
zh-cn: 专有网络网段
Description:
en: 'The IP address range of the VPC in the CIDR Block form; <br>you can use
the following IP address ranges: <br><font color=''green''>[10.0.0.0/8]</font><br><font
color=''green''>[172.16.0.0/12]</font><br><font color=''green''>[192.168.0.0/16]</font>'
zh-cn: 专有网络IP地址段范围,<br>您可以使用以下的IP地址段:<br><font color='green'>[10.0.0.0/8]</font><br><font
color='green'>[172.16.0.0/12]</font><br><font color='green'>[192.168.0.0/16]</font>
Default: 192.168.0.0/16
AllowedValues:
- 192.168.0.0/16
- 172.16.0.0/12
- 10.0.0.0/8
VSwitchCidrBlock:
Type: String
Label:
en: VSwitch CIDR Block
zh-cn: 交换机网段
Description:
en: Must be a sub-network segment of the proprietary network and is not occupied
by other VSwitches.
zh-cn: 必须是所属专有网络的子网段,并且没有被其他交换机占用。
Default: 192.168.1.0/24
ImageId:
Type: String
Label:
en: Image
zh-cn: 镜像
Description:
en: This step requires the user of this practice to contact the aliyun engineer
to obtain the corresponding image.<br>[1:<font color='green'>By submitting
the work order, ali cloud after-sales service engineer shall contact the best
practice Owner</font>]<br>[2:<font color='green'>If the enterprise or organization
of the user has a CBM/SA follow-up project of aliyun, it can also contact
the best practice Owner through CBM/SA of aliyun to obtain the image</font>]
zh-cn: 此步骤需要本实践使用者联系阿里云工程师获取对应镜像。<br>[方式1:<font color='green'>通过提交工单的方式,由阿里云售后服务工程师联系最佳实践Owner</font>]<br>[方式2:<font
color='green'>如果使用者所在企业或组织有阿里云CBM/SA跟进项目,也可以通过阿里云CBM/SA联系最佳实践Owner获取镜像</font>]
InstanceType:
Type: String
Label:
en: Specifications
zh-cn: 规格
Description:
en: 'Fill in the specifications that can be used under the VSwitch availability
zone;</b></font><br>recommended specifications:<font color=''red''><b>ecs.f3-c16f1.4xlarge</b></font><br>note:
a few zones do not support the specifications, please select other compute-optimized
instance<br>see detail: <a href=''https://www.alibabacloud.com/help/en/doc-detail/25378.html''
target=''_blank''><b><font color=''blue''>Instance Specification Family</font></a></b>'
zh-cn: 填写VSwitch可用区下可使用的规格;<br>推荐规格:<font color='red'><b>ecs.f3-c16f1.4xlarge</b></font><br>注:可用区可能不支持该规格,可使用其它计算型规格替代<br>规格详见:<a
href='https://help.aliyun.com/document_detail/25378.html' target='_blank'><b><font
color='blue'>实例规格族</font></a></b>
AssociationProperty: ALIYUN::ECS::Instance::InstanceType
AssociationPropertyMetadata:
ZoneId: ZoneId
InstanceGroupMaxAmount:
Type: Number
Label:
en: Max Amount
zh-cn: 最大个数
Description:
en: 'The maximum number of ECS instances created at one time,value range: [1,
100].'
zh-cn: '一次性创建ECS实例的最大个数,取值范围: [1, 100]。'
Default: 1
MinValue: 1
MaxValue: 100
SystemDiskCategory:
Type: String
Label:
en: Disk Type
zh-cn: 磁盘类型
Description:
en: '<font color=''blue''><b>Optional values:</b></font><br>[cloud_efficiency:
<font color=''green''>Efficient Cloud Disk</font>]<br>[cloud_ssd: <font color=''green''>SSD
Cloud Disk</font>]<br>[cloud_essd: <font color=''green''>ESSD Cloud Disk</font>]<br>[cloud:
<font color=''green''>Cloud Disk</font>]<br>[ephemeral_ssd: <font color=''green''>Local
SSD Cloud Disk</font>]'
zh-cn: '<font color=''blue''><b>可选值:</b></font><br>[cloud_efficiency: <font
color=''green''>高效云盘</font>]<br>[cloud_ssd: <font color=''green''>SSD云盘</font>]<br>[cloud_essd:
<font color=''green''>ESSD云盘</font>]<br>[cloud: <font color=''green''>普通云盘</font>]<br>[ephemeral_ssd:
<font color=''green''>本地SSD盘</font>]'
Default: cloud_ssd
AllowedValues:
- cloud_efficiency
- cloud_ssd
- cloud
- cloud_essd
- ephemeral_ssd
SystemDiskSize:
Type: Number
Label:
en: System Disk Space
zh-cn: 系统盘空间
Description:
en: 'System disk size, range of values: 40-500, units: GB.'
zh-cn: 系统盘大小, 取值范围:[40, 500], 单位:GB。
Default: 40
MinValue: 40
MaxValue: 500
Password:
Type: String
Label:
en: Login Password
zh-cn: 登录密码
Description:
en: Server login password, Length 8-30, must contain three(Capital letters,
lowercase letters, numbers, ()`~!@#$%^&*_-+=| {}[]:;' <>,.? / Special symbol
in).
zh-cn: 服务器登录密码,长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)。
ConstraintDescription:
en: Length 8-30, must contain three(Capital letters, lowercase letters, numbers,
()`~!@#$%^&*_-+=| {}[]:;' <>,.? / Special symbol in).
zh-cn: 长度8-30,必须包含三项(大写字母、小写字母、数字、 ()`~!@#$%^&*_-+=|{}[]:;'<>,.?/ 中的特殊符号)。
AllowedPattern: '[0-9A-Za-z\_\-\&:;''<>,=%`~!@#\(\)\$\^\*\+\|\{\}\[\]\.\?\/]+$'
MinLength: 8
MaxLength: 30
NoEcho: true
BucketName:
Type: String
Label:
en: Bucket Name
zh-cn: 存储空间名称
Description:
en: The name must be 3 to 63 bytes in length, The name must start and end with
a lowercase letter or digit.The name can contain only lowercase letters, digits,
and hyphens (-);<br><b>note:<font color='blue'>the bucket name must be globally
unique within OSS. Bucket names cannot be changed after the bucket is created</b></font>
zh-cn: 长度为3~63个字符,必须以小写字母或数字开头和结尾,可以包含小写字母、数字和连字符(-);<br><b>注:<font color='blue'>需要全网唯一性,已经存在的不能在创建</b></font>
Default: test-bucket
BucketAccessControl:
Type: String
Label:
en: Access Control
zh-cn: 读写权限
Description:
en: '<font color=''blue''><b>Optional values: </b></font><br>[private:<font
color=''green''>All access to the file requires authentication</font>]<br>[public-read:<font
color=''green''>File writes need to be authenticated;Files can be read anonymously</font>]<br>[public-read-write:<font
color=''green''>Anyone (including anonymous visitors) can perform read and
write operators on the files in the bucket</font>]'
zh-cn: '<font color=''blue''><b>可选值: </b></font><br>[private:<font color=''green''>对文件的所有访问操作需要进行身份验证</font>]<br>[public-read:<font
color=''green''>对文件写操作需要进行身份验证;可以对文件进行匿名读</font>]<br>[public-read-write:<font
color=''green''>所有人都可以对文件进行读写操作</font>]'
Default: public-read
AllowedValues:
- private
- public-read
- public-read-write
BucketStorageClass:
Type: String
Label:
en: Storage Type
zh-cn: 存储类型
Description:
en: '<font color=''blue''><b>Optional values: </b></font><br>[Standard:<font
color=''green''>Standard storage type</font>]<br>[IA:<font color=''green''>Low
frequency access storage type</font>]<br>[Archive:<font color=''green''>Archive
storage type</font>]'
zh-cn: '<font color=''blue''><b>可选值: </b></font><br>[Standard:<font color=''green''>标准存储类型</font>]<br>[IA:<font
color=''green''>低频访问存储类型</font>]<br>[Archive:<font color=''green''>归档存储类型</font>]'
Default: Standard
AllowedValues:
- Standard
- IA
- Archive
DeletionForce:
Type: Boolean
Label:
en: Support for Force Deletion
zh-cn: 支持强制删除
Description:
en: Do you want to force the deletion of files in OSS?
zh-cn: 是否强制删除OSS中的文件
Default: false
Resources:
EcsVpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock:
Ref: VpcCidrBlock
VpcName:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
Metadata:
ALIYUN::ROS::Designer:
id: dbe3ba70-d7cc-40c9-8e61-d91fd5585913
EcsSecurityGroup:
Type: ALIYUN::ECS::SecurityGroup
Properties:
VpcId:
Ref: EcsVpc
SecurityGroupIngress:
- IpProtocol: tcp
NicType: internet
PortRange: 5000/5000
Priority: 1
SourceCidrIp: 0.0.0.0/0
SecurityGroupName:
Fn::Join:
- '-'
- - StackId
- Ref: ALIYUN::StackId
Tags:
- Key: best_practice
Value: 090
Metadata:
ALIYUN::ROS::Designer:
id: 6a465382-1162-46f0-9815-4f4eab516383
EcsVSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: EcsVpc
CidrBlock:
Ref: VSwitchCidrBlock
VSwitchName:
Fn::Join:
- '-'
- - VSwitch
- StackId
- Ref: ALIYUN::StackId
Metadata:
ALIYUN::ROS::Designer:
id: 86b352af-fc5e-4ac5-8222-65817ba2d6a2
FPGAServer:
Type: ALIYUN::ECS::InstanceGroup
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: EcsVpc
VSwitchId:
Ref: EcsVSwitch
SecurityGroupId:
Ref: EcsSecurityGroup
ImageId:
Ref: ImageId
InstanceType:
Ref: InstanceType
MaxAmount:
Ref: InstanceGroupMaxAmount
NetworkType: vpc
SystemDiskCategory:
Ref: SystemDiskCategory
SystemDiskSize:
Ref: SystemDiskSize
Tags:
- Key: best_practice
Value: 090
Metadata:
ALIYUN::ROS::Designer:
id: e1efd9ea-fd88-45ea-bb98-89ef7c9349f6
OssBucket:
Type: ALIYUN::OSS::Bucket
Properties:
AccessControl:
Ref: BucketAccessControl
BucketName:
Ref: BucketName
DeletionForce:
Ref: DeletionForce
StorageClass:
Ref: BucketStorageClass
Tags:
Key: best_practice
Value: 090
Metadata:
ALIYUN::ROS::Designer:
id: 733a9245-61b1-41e8-aef7-95b295a1fe8e
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- ZoneId
- VpcCidrBlock
- VSwitchCidrBlock
Label:
default: VPC
- Parameters:
- ImageId
- InstanceType
- InstanceGroupMaxAmount
- SystemDiskCategory
- SystemDiskSize
- Password
Label:
default: ECS
- Parameters:
- BucketName
- BucketAccessControl
- BucketStorageClass
- DeletionForce
Label:
default: OSS
TemplateTags:
- acs:solution:媒体服务:FPGA云服务器加速图片和视频转码
ALIYUN::ROS::Designer:
6a465382-1162-46f0-9815-4f4eab516383:
position:
x: 418
y: 160
size:
height: 60
width: 60
z: 1
733a9245-61b1-41e8-aef7-95b295a1fe8e:
position:
x: 102
y: 162
size:
height: 60
width: 60
z: 0
86b352af-fc5e-4ac5-8222-65817ba2d6a2:
embeds:
- e1efd9ea-fd88-45ea-bb98-89ef7c9349f6
position:
x: 235
y: 120
size:
height: 140
width: 120
z: 1
ae1f017f-7c28-4d90-a904-51a567001d7a:
source:
id: e1efd9ea-fd88-45ea-bb98-89ef7c9349f6
target:
id: 6a465382-1162-46f0-9815-4f4eab516383
z: 1
dbe3ba70-d7cc-40c9-8e61-d91fd5585913:
embeds:
- 6a465382-1162-46f0-9815-4f4eab516383
- 86b352af-fc5e-4ac5-8222-65817ba2d6a2
position:
x: 191
y: 50
size:
height: 288
width: 317.0537109375
z: 0
e1efd9ea-fd88-45ea-bb98-89ef7c9349f6:
position:
x: 274
y: 160
size:
height: 60
width: 60
z: 2