本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
pcluster stop
停止计算实例集,同时让头节点保持运行。
pcluster stop [ -h ] [ -cCONFIG_FILE] [ -rREGION]cluster_name
定位参数
cluster_name-
停止提供的集群名称的计算队列。
使用 Amazon ParallelCluster 版本 2.11.7 的示例:
命名的参数
-h, --help-
显示
pcluster stop的帮助文本。 -cCONFIG_FILE, --configCONFIG_FILE-
指定要使用的替代配置文件。
默认值为
~/.parallelcluster/config。 -rREGION, --regionREGION-
指定 Amazon Web Services 区域 要使用的。默认为使用pcluster configure命令 Amazon Web Services 区域 指定的值。
$pcluster stopmyclusterCompute 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 组参数设置为 min/max/desired = 0/0/0,然后终止计算队列。头节点保持运行。要终止所有 EC2 资源并避免 EC2 收费,请考虑删除集群。