

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

# `pcluster stop`
<a name="pcluster.stop"></a>

停止计算实例集，同时让头节点保持运行。

```
pcluster stop [ -h ] [ -c {{CONFIG_FILE}} ] [ -r {{REGION}} ] {{cluster_name}}
```

## 定位参数
<a name="pcluster.stop.posarg"></a>

**{{cluster\_name}}**  
停止提供的集群名称的计算队列。

**使用 AWS ParallelCluster 版本 2.11.7 的示例：**

## 命名的参数
<a name="pcluster.stop.namedarg"></a>

**-h, --help**  
显示 `pcluster stop` 的帮助文本。

**-c {{CONFIG\_FILE}}, --config {{CONFIG\_FILE}}**  
指定要使用的替代配置文件。  
默认值为 `~/.parallelcluster/config`。

**-r {{REGION}}, --region {{REGION}}**  
指定 AWS 区域 要使用的。默认为使用[`pcluster configure`](pcluster.configure.md)命令 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 组参数设置为 min/max/desired = 0/0/0，然后终止计算队列。头节点保持运行。要终止所有 EC2 资源并避免 EC2 收费，请考虑删除集群。