苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3

太平洋在线 167 0

三.AWS ParallelCluster

4. Workflow to create Linux cluster on AWS

(4) Modify AWS ParallelCluster configuration file for creating Linux cluster

•Go to console of EC2 instance: amazonlinux

▪Edit cluster configuration file

-Enter: nano -w ~/cluster-config.yaml

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第1张图片-太平洋在线下载

•Please modify the yaml file as the figure below.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第2张图片-太平洋在线下载

•Recall the "output" of the database stack

展开全文

▪Value of DatabaseClientSecurityGroup from the output -> AdditionalSecurityGroups of the yaml file

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第3张图片-太平洋在线下载

•Recall the "output" of the database stack

▪Value of DatabaseHost & DatabasePort -> Uri

-This URI must be formatted as host:port

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第4张图片-太平洋在线下载

•Recall the "output" of the database stack

▪Value of DatabaseAdminUser -> Username

▪Value of DatabaseSecretArn -> PasswordSecretArn

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第5张图片-太平洋在线下载

•After the modification of yaml file, the contents should be:

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第6张图片-太平洋在线下载

(5) Create Linux cluster via AWS ParallelCluster

•Run the command to deploy cluster via AWS CloudFormation

▪Enter: pcluster create-cluster --cluster-name MDXCluster --cluster-configuration cluster-config.yaml

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第7张图片-太平洋在线下载

•Go to AWS console -> CloudFormation -> Check stack named "MDXCluster"

▪Please wait until the status becomes "CREATE_COMPLETE", and then you may stop EC2 instance "amazonlinux" which runs AWS ParallelCluster.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第8张图片-太平洋在线下载

•After the status of stack "MDXCluster" is CREATE_COMPLETE, click "HeadNode" under "Resources"

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第9张图片-太平洋在线下载

•Get the public IP of head node

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第10张图片-太平洋在线下载

(6) Upload Moldex3D Linux package to AWS S3

•Go to AWS console -> S3

▪You may have several buckets. Please find the bucket with name: parallelcluster-XXXX

▪Click to enter the bucket

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第11张图片-太平洋在线下载

•Click "Upload"

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第12张图片-太平洋在线下载

•Click "Add Files" and select Moldex3D Portable Linux package file for CentOS 7

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第13张图片-太平洋在线下载

•Permissions -> Predefined ACLs ->

▪Select Grant public-read access ->

-Check I understand the risk of granting public-read access to the specified objects.

•Click "Upload"

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第14张图片-太平洋在线下载

•After the upload is done, click "Copy URL" to get the URL of Moldex3D Portable Linux package file.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第15张图片-太平洋在线下载

(7) Setup Moldex3D at head node of Linux cluster on AWS

•Open PuTTY -> Enter Public IP of head node

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第16张图片-太平洋在线下载

•Please remember to set the SSH private key: awsparallelcluster.ppk

•Go back to ?�Session??and press ?�Open??/text>

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第17张图片-太平洋在线下载

•Login as -> centos

•Enter passphrase for private key: awsparallelcluster.ppk

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第18张图片-太平洋在线下载

•Download Moldex3D Portable Linux package file from AWS S3

▪Enter: wget [URL for the file]

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第19张图片-太平洋在线下载

•Extract Moldex3D Portable Linux package file

▪Enter: tar zxvf Moldex3DLinux_2023R1_el7_64Bit_Portable.tar.gz

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第20张图片-太平洋在线下载

•Set environment variable :

•Enter: echo "export MDX_2023_BIN=/home/centos/Moldex3D/2023/x64/Bin/" >> /home/centos/.bashrc

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第21张图片-太平洋在线下载

(8) Check the connection between head node of Linux cluster on AWS and LM server on-premises

•Run Moldex3D LM Utility for Linux at HeadNode

▪Enter: ~/Moldex3D/2023/x64/Bin/MDX3DLMUtil -licstatxml -host 192.168.130.52 -port 2556

▪If the site-to-site VPN connection is ok, you will see the output as below.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第22张图片-太平洋在线下载

(9) Submit Moldex3D job to Linux cluster on AWS

•At your computer on-premises, open Moldex3D Computing Manager -> Add new server

▪Scheduler -> SLURM

▪IP/Hostname -> Public IP of HeadNode

▪Port -> 22

▪Account -> centos

▪Logon Type -> Private Key

▪Private Key -> awsparallelcluster.pem

▪Specified by -> Core Per Node

▪Core Per Node -> 4

-Because the instance type used for Compute node is t3a.xlarge (vCPU=4) in this slide.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第23张图片-太平洋在线下载

•You may see that the max task. is 40

▪Because the cluster configuration defines that instance type of compute node is t3a.xlarge (vCPU=4) and Maximum instance count is 10.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第24张图片-太平洋在线下载

•Submit a job with 16 tasks

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第25张图片-太平洋在线下载

•After the job submission, you may see in AWS console that there are 4 compute nodes launched. After the compute nodes are ready, the Moldex3D analysis will start.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第26张图片-太平洋在线下载

•When Moldex3D analysis is done, 4 compute nodes will be terminated after a period of time (about 10 minutes) defined by SLURM.

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第27张图片-太平洋在线下载

(10) Delete the Linux cluster on AWS

•Go to AWS console -> CloudFormation -> Delete Stack by the following sequence

▪MDXCluster -> pcluster-slurm-db -> parallelclsuternetworking-xxxxxxxx

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第28张图片-太平洋在线下载

•Go to AWS console -> S3 -> select the bucket named parallelcluster-xxxxxxx

▪Empty the bucket

▪Delete the bucket

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第29张图片-太平洋在线下载

•Go to AWS console -> VPC -> Select the VPC named ParalleclusterVPC-xxxxx

▪Delete VPN connection

▪Delete Virtual Network gateway

▪Delete Customer gateway

•Delete VPC

苹果版uc10.9.7:Moldex3D AWS-Connect之AWS ParallelCluster-3-第30张图片-太平洋在线下载

标签: ParallelCluster AWS Moldex3D Connect

抱歉,评论功能暂时关闭!