forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ehpc-industrial-simulation.yml
464 lines (464 loc) · 15.3 KB
/
ehpc-industrial-simulation.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
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
ROSTemplateFormatVersion: '2015-09-01'
Description:
en: This template uses E-HPC and OSS to run simulation software. In this practice,
the simulation software is LAMMPS, and data is uploaded by using OSS.
zh-cn: 本实践适用于使用弹性高性能计算EHPC+对象存储OSS运行仿真软件进行模型仿真的场景中,这里运行的是LAMMPS这款开源的仿真软件,数据通过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.0.0/24
EcsOrderComputeCount:
Type: Number
Label:
en: Compute Count
zh-cn: 计算节点数
Description:
en: 'Ranges from: 1-99.'
zh-cn: 范围从:1-99。
Default: 1
MinValue: 1
MaxValue: 99
EcsOrderComputeInstanceType:
Type: String
Label:
en: Compute Instance Specifications
zh-cn: 计算实例规格
Description:
en: 'Fill in the specifications that can be used under the VSwitch availability
zone;</b></font><br>general specifications:<font color=''red''><b>ecs.g6.large</b></font><br>note:
a few zones do not support general specifications<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.g6.large</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
EcsOrderLoginCount:
Type: Number
Label:
en: Login Count
zh-cn: 登录节点数
Description:
en: 'Ranges from: 1-99.'
zh-cn: 范围从:1-99。
Default: 1
MinValue: 1
MaxValue: 99
EcsOrderLoginInstanceType:
Type: String
Label:
en: Login Instance Specifications
zh-cn: 登录实例规格
Description:
en: 'Fill in the specifications that can be used under the VSwitch availability
zone;</b></font><br>general specifications:<font color=''red''><b>ecs.g6.large</b></font><br>note:
a few zones do not support general specifications<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.g6.large</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
EcsOrderManagerInstanceType:
Type: String
Label:
en: Manager Instance Specifications
zh-cn: 管理实例规格
Description:
en: 'Fill in the specifications that can be used under the VSwitch availability
zone;</b></font><br>general specifications:<font color=''red''><b>ecs.g6.large</b></font><br>note:
a few zones do not support general specifications<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.g6.large</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
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>note:<font color='blue'><b>A 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>注:<font color='blue'><b>需要全网唯一性,已经存在的不能在创建</b></font>
Default: test-ehpc
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
Resources:
AccessGroup:
Type: ALIYUN::NAS::AccessGroup
Properties:
AccessGroupName:
Fn::Join:
- '-'
- - AccessGroup
- Ref: ALIYUN::StackId
AccessGroupType: Vpc
Metadata:
ALIYUN::ROS::Designer:
id: 4664d5a6-b635-4d7f-a1f6-5cefd19fab49
AccessRule:
Type: ALIYUN::NAS::AccessRule
Properties:
AccessGroupName:
Ref: AccessGroup
SourceCidrIp: 0.0.0.0/0
Metadata:
ALIYUN::ROS::Designer:
id: 5db4d31b-0ba9-49bd-80f5-ef6895772727
FileSystem:
Type: ALIYUN::NAS::FileSystem
Properties:
ProtocolType: NFS
StorageType: Capacity
Metadata:
ALIYUN::ROS::Designer:
id: 60d2e3b7-681a-40ef-b741-2ea2afd70b71
Vpc:
Type: ALIYUN::ECS::VPC
Properties:
CidrBlock:
Ref: VpcCidrBlock
VpcName:
Fn::Join:
- '-'
- - Vpc
- Ref: ALIYUN::StackId
Metadata:
ALIYUN::ROS::Designer:
id: 6c534c2d-1146-45bf-94a8-c6dbb358bb16
VSwitch:
Type: ALIYUN::ECS::VSwitch
Properties:
ZoneId:
Ref: ZoneId
VpcId:
Ref: Vpc
CidrBlock:
Ref: VSwitchCidrBlock
VSwitchName:
Fn::Join:
- '-'
- - VSwitch
- StackId
- Ref: ALIYUN::StackId
Metadata:
ALIYUN::ROS::Designer:
id: 3183a42a-0bac-4dc9-a083-7b881290658f
MountTarget:
Type: ALIYUN::NAS::MountTarget
Properties:
VpcId:
Ref: Vpc
VSwitchId:
Ref: VSwitch
AccessGroupName:
Ref: AccessGroup
FileSystemId:
Ref: FileSystem
NetworkType: Vpc
Metadata:
ALIYUN::ROS::Designer:
id: 12a1c176-7d6e-4d2c-90a5-943a2d4ced20
OssBucket:
Type: ALIYUN::OSS::Bucket
Properties:
AccessControl:
Ref: BucketAccessControl
BucketName:
Ref: BucketName
StorageClass:
Ref: BucketStorageClass
Tags:
Key: best_practice
Value: '021'
Metadata:
ALIYUN::ROS::Designer:
id: e40fe957-5a59-43fa-ad90-e3ed011f4aae
Cluster:
Type: ALIYUN::EHPC::Cluster
Properties:
VSwitchId:
Ref: VSwitch
Application:
- Tag: VMD_1.9.3
- Tag: LAMMPS-OPENMPI-31Mar17
EcsOrderComputeCount:
Ref: EcsOrderComputeCount
EcsOrderComputeInstanceType:
Ref: EcsOrderComputeInstanceType
EcsOrderLoginCount:
Ref: EcsOrderLoginCount
EcsOrderLoginInstanceType:
Ref: EcsOrderLoginInstanceType
EcsOrderManagerInstanceType:
Ref: EcsOrderManagerInstanceType
EhpcVersion: 1.0.0
Name:
Fn::Join:
- '-'
- - Cluster
- Ref: ALIYUN::StackId
OsTag: CentOS_7.2_64
Password:
Ref: Password
VolumeId:
Ref: FileSystem
VolumeMountpoint:
Ref: MountTarget
DependsOn:
- AccessRule
- FileSystem
- MountTarget
- OssBucket
Metadata:
ALIYUN::ROS::Designer:
id: 907bd2b9-3e3e-4cc5-9da0-c7b7e233124b
Outputs:
FileSystemId:
Description:
en: ID of the file system created
zh-cn: 创建的文件系统的ID
Value:
Fn::GetAtt:
- FileSystem
- FileSystemId
MountTargetDomain:
Description:
en: Mount point domain name
zh-cn: 挂载点域名
Value:
Fn::GetAtt:
- MountTarget
- MountTargetDomain
Metadata:
ALIYUN::ROS::Interface:
ParameterGroups:
- Parameters:
- ZoneId
- VpcCidrBlock
- VSwitchCidrBlock
Label:
default:
en: VPC
zh-cn: 专有网络
- Parameters:
- EcsOrderComputeCount
- EcsOrderComputeInstanceType
- EcsOrderLoginCount
- EcsOrderLoginInstanceType
- EcsOrderManagerInstanceType
- Password
Label:
default:
en: EHPC
zh-cn: 弹性高性能计算
- Parameters:
- BucketName
- BucketAccessControl
- BucketStorageClass
Label:
default:
en: OSS
zh-cn: 对象存储
TemplateTags:
- acs:solution:高性能计算:EHPC工业仿真
ALIYUN::ROS::Designer:
0084eb4c-bc92-4070-b18b-5dbf404c2871:
source:
id: 907bd2b9-3e3e-4cc5-9da0-c7b7e233124b
target:
id: 12a1c176-7d6e-4d2c-90a5-943a2d4ced20
z: 1
12a1c176-7d6e-4d2c-90a5-943a2d4ced20:
position:
x: 252
y: 128
size:
height: 60
width: 60
z: 2
27ee1146-a391-4879-a267-54b12e3e70a7:
source:
id: 5db4d31b-0ba9-49bd-80f5-ef6895772727
target:
id: 4664d5a6-b635-4d7f-a1f6-5cefd19fab49
z: 1
3183a42a-0bac-4dc9-a083-7b881290658f:
embeds:
- 12a1c176-7d6e-4d2c-90a5-943a2d4ced20
- 907bd2b9-3e3e-4cc5-9da0-c7b7e233124b
position:
x: 213
y: 88
size:
height: 162
width: 224
z: 1
348cd827-4303-47f1-b121-f139a13d71c7:
source:
id: 12a1c176-7d6e-4d2c-90a5-943a2d4ced20
target:
id: 60d2e3b7-681a-40ef-b741-2ea2afd70b71
z: 1
4664d5a6-b635-4d7f-a1f6-5cefd19fab49:
position:
x: 124
y: 128
size:
height: 60
width: 60
z: 0
5db4d31b-0ba9-49bd-80f5-ef6895772727:
position:
x: 124
y: 292
size:
height: 60
width: 60
z: 0
60d2e3b7-681a-40ef-b741-2ea2afd70b71:
position:
x: 298
y: 292
size:
height: 60
width: 60
z: 0
6c534c2d-1146-45bf-94a8-c6dbb358bb16:
embeds:
- 3183a42a-0bac-4dc9-a083-7b881290658f
position:
x: 202
y: 48
size:
height: 227
width: 253
z: 0
907bd2b9-3e3e-4cc5-9da0-c7b7e233124b:
position:
x: 352
y: 128
size:
height: 60
width: 60
z: 2
b6fe7a41-37ab-4084-9fca-dbf1d06c0d62:
source:
id: 907bd2b9-3e3e-4cc5-9da0-c7b7e233124b
target:
id: e40fe957-5a59-43fa-ad90-e3ed011f4aae
z: 1
c2fa761e-efe9-42a1-91bd-076f0831a500:
source:
id: 12a1c176-7d6e-4d2c-90a5-943a2d4ced20
target:
id: 4664d5a6-b635-4d7f-a1f6-5cefd19fab49
z: 1
e29de770-2acc-4c2d-bcec-e5616b7de095:
source:
id: 907bd2b9-3e3e-4cc5-9da0-c7b7e233124b
target:
id: 60d2e3b7-681a-40ef-b741-2ea2afd70b71
z: 1
e40fe957-5a59-43fa-ad90-e3ed011f4aae:
position:
x: 484
y: 128
size:
height: 60
width: 60
z: 0