# 节点要求

遵循本文档中指定的要求，使您无忧部署 AIT-3 验证器和全节点。

### 验证器和全节点 <a href="#validator-and-fullnode" id="validator-and-fullnode"></a>

* 对于 AIT-3，我们要求您运行 Validator。我们建议您也可以选择运行 FullNode。但是，FullNode 不是必需的。
* 如果您还运行 FullNode，那么我们强烈建议您在两台独立的机器上运行 Validator 和 FullNode。确保这些机器配置良好并且彼此隔离。保证 Validator 和 FullNode 之间的资源隔离将有助于确保这些节点的顺利部署。
* 为了获得最佳可用性和稳定性，**我们建议您将节点部署在云上**。我们为在三个云提供商上部署节点提供了 Terraform 支持：GCP、AWS 和 Azure。
* 确保在 AIT 上线之前打开网络端口。
* 确保在被 AIT 接受或拒绝后关闭这些端口。

### 测试模式下 <a href="#validator-node-in-test-mode" id="validator-node-in-test-mode"></a>

您必须在测试模式下运行 Validator 节点才有资格使用 AIT-3。这是 Aptos Labs 用来验证节点操作员是否可以成功启动 Validator 节点并使用 Aptos 网络身份正确配置它的方法。

在测试模式下，您将运行一个具有单个节点的本地网络，它应该像普通的区块链一样运行。

### 硬件要求 <a href="#hardware-requirements" id="hardware-requirements"></a>

为了运行 Aptos **Validator 和 Fullnode**，我们推荐以下硬件资源：

* **CPU**
  * <mark style="color:red;">8核16线程</mark>
  * 2.8GHz 或更快
  * 英特尔至强 Skylake 或更新版本
* **内存**：<mark style="color:red;">32GB RAM</mark>。

各种云上的示例机器类型：

* AWS（亚马逊云）
  * c5.4xlarge
  * c6i.4xlarge
* GCP（谷歌云）
  * c2-standard-16
* Azure（微软云）
  * Standard\_B8ms

### 存储要求 <a href="#storage-requirements" id="storage-requirements"></a>

Aptos Blockhain 存储的数据量取决于区块链的账本历史（长度）和链上状态（例如账户）的数量。这些值取决于几个因素，包括：区块链的年龄、平均交易率和账本修剪器的配置。

我们建议节点<mark style="color:red;">至少有 300GB</mark> 的磁盘空间，以确保有足够的存储空间进行负载测试。您可以选择从较小的尺寸开始并根据需要进行调整。您将负责监控节点的磁盘使用情况并进行适当调整以确保节点正常运行。

### 网络要求 <a href="#networking-requirements" id="networking-requirements"></a>

带宽要求：1 Gbps

#### 端口 <a href="#ports" id="ports"></a>

当您运行验证器节点时，您需要在您的节点上打开网络端口以允许其他节点连接到您。对于全节点，这是可选的。

Aptos 网络共有三种类型。可以配置您的节点，以便这些网络中的每一个都可以使用节点上的不同端口连接到您的节点。

1. 验证者网络：验证者节点连接到该网络。
2. 公共网络：公共全节点连接到该网络。
3. 验证者全节点网络（VFN 网络）：验证者全节点连接到该网络。VFN 网络允许验证者全节点连接到特定的验证者。

您可以使用配置 YAML 文件在节点上配置端口设置。请参阅[此处的示例配置 YAML](https://github.com/aptos-labs/aptos-core/blob/4ce85456853c7b19b0a751fb645abd2971cc4c0c/docker/compose/aptos-node/fullnode.yaml#L10-L9)。在您的节点上使用此配置 YAML，公共网络在端口 6182 上连接到您的节点，在 6181 上连接到 VFN 网络。因为这些端口设置是可配置的，所以我们没有明确说端口 X 用于网络 Y。

#### 端口设置 <a href="#port-settings" id="port-settings"></a>

对于验证器：

* 打开 TCP 端口 6180，以便验证器相互通信。
* 打开 TCP 端口 9101，以获取 Validator 指标以验证运行状况统计信息（仅在注册阶段需要）。

对于全节点：

* 打开 TCP 端口 6182，以便全节点相互通信。
* 打开 TCP 端口 9101，获取 Fullnode 指标以验证运行状况统计信息（仅在注册阶段需要）。
* 打开 TCP 端口 80/8080，用于 REST API 访问。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.aptos.movemove.org/jiao-cheng/ce-shi-wang-testnet/she-qu-jiao-cheng/jie-dian-yao-qiu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
