pcluster stop - AWS ParallelCluster

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

pcluster stop

停止计算队列,让头节点继续运行。

pcluster stop [ -h ] [ -c CONFIG_FILE ] [ -r REGION ] cluster_name

参数不正确

cluster_name

停止提供的集群名称的计算队列。

使用 2.11.7AWS ParallelCluster 版本的示例:

参数不正确

-h, --help

显示的帮助文本pcluster stop

-c CONFIG_FILE, --config CONFIG_FILE

指定要使用的替代配置文件。

默认值为 ~/.parallelcluster/config

-r REGION, --region REGION

指定AWS 区域要使用的。默认为使用pcluster configure命令AWS 区域指定的。

$ pcluster stop mycluster Compute fleet status is: STOPPED. Submitting status change request. Request submitted successfully. It might take a while for the transition to complete. Please run 'pcluster status' if you need to check compute fleet status

将 Auto Scaling 组参数设置为最小值/最大值/期望值 = 0/0/0,然后终止计算队列。头部仍在运转。要终止所有 EC2 资源和避免 EC2 费用,请考虑删除集群。