Skip to main content

AWS ParallelCluster


Prerequisites

cluster-config.yaml


pcluster

create-cluster

export PARALLEL_CLUSTER_NAME=<cluster-name>
pcluster create-cluster \
--cluster-name $PARALLEL_CLUSTER_NAME \
--cluster-configuration cluster-config.yaml

config 파일을 사용하여 클러스터를 생성합니다.

pcluster describe-cluster \
--cluster-name $PARALLEL_CLUSTER_NAME \
| jq '.cloudFormationStackStatus'
info

pcluster configure --config cluster-config.yaml 명령어를 통해 대화형으로 클러스터를 생성합니다.

update-cluster

export PARALLEL_CLUSTER_NAME=<cluster-name>
pcluster update-compute-fleet \
--cluster-name $PARALLEL_CLUSTER_NAME \
--status STOP_REQUESTED
pcluster update-cluster \
--cluster-name $PARALLEL_CLUSTER_NAME \
--cluster-config cluster-config.yaml
pcluster describe-cluster \
--cluster-name $PARALLEL_CLUSTER_NAME \
| jq '.cloudFormationStackStatus'
pcluster update-compute-fleet \
--cluster-name $PARALLEL_CLUSTER_NAME \
--status START_REQUESTED

delete-cluster

export PARALLEL_CLUSTER_NAME=<cluster-name>
pcluster delete-cluster \
--cluster-name $PARALLEL_CLUSTER_NAME

Reference