Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions docs/nodes/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,26 @@ import { CardList } from '@site/src/components/CardList';
The Cedra network consists of three node types: validator nodes, validator fullnodes (VFNs), and public fullnodes (PFNs). To participate in consensus, you are required to run a validator node and stake the minimum 100 000 amount of CEDRA tokens. VFNs and PFNs are not required to participate in consensus, but they are necessary to distribute blockchain data and enable ecosystem services, e.g., indexing, querying, and RESTful API services (accessible via the Cedra testnet API at https://testnet.cedra.dev/v1). VFNs can only be run by validator operators, while PFNs can be run by anyone. You can learn more about the different types of nodes in the next sections. This section provides detailed, step-by-step instructions on how to deploy and operate Cedra nodes in different environments. It also describes everything you need to stake and participate in consensus and governance through the community-driven model that distinguishes Cedra as a public good infrastructure.

<CardList>
<CardList.Card
title="System Requirements"
description="Hardware and software requirements for all node types"
to="/nodes/requirements"
/>
<CardList.Card
title="Run a Validator Pool"
description="Set up and manage a validator node to participate in consensus and earn rewards"
to="/nodes/validator-setup"
/>
<CardList.Card
title="VFN Requirements"
description="Hardware, network, and software requirements for running a validator fullnode"
to="/nodes/vfn-requirements"
/>
<CardList.Card
title="Run a Delegation Pool"
description="Set up and manage a delegation pool validator where multiple users can combine their stakes"
to="/nodes/delegation-pool-setup"
/>
<CardList.Card
title="Full Node Requirements"
description="Hardware and software requirements for running a public full node"
to="/nodes/requirements"
/>
<CardList.Card
title="Run a Full Node"
description="Run a public full node to help distribute blockchain data"
Expand Down
122 changes: 122 additions & 0 deletions docs/nodes/vfn-requirements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Validator Full Node (VFN) Requirements

To ensure your validator fullnode (VFN) operates smoothly, it must meet the specifications outlined in this guide. A VFN is a fullnode owned and operated by the same entity as a validator node. It serves as a bridge between your validator and the public network, distributing blockchain data while keeping your validator isolated and secure.

:::warning Critical
Failure to meet these requirements will result in your VFN experiencing degradation under load, consensus failures on your validator, reward losses, and general instability.
:::

:::caution Resource Isolation
Your validator and VFN must run on **two separate and independent machines**. Maintaining resource isolation is critical for security and ensures that neither node encounters performance degradation or instability under load.
:::

## Hardware Specifications

Your VFN hardware must be capable of maintaining ~30,000 transactions per second (TPS). You can verify this through the reference specifications below or by running the Cedra performance benchmarking tool.

| Component | Specification |
|-----------|--------------|
| **CPU** | 48 threads, 5th Gen AMD EPYC (Turin) or 6th Gen Intel Xeon (Granite Rapids) |
| **Memory** | 128GB RAM |
| **Storage** | 3.0 TB Enterprise NVMe SSD with at least 60K IOPS and 600MiB/s bandwidth |
| **Network** | 1Gbps bandwidth |

### Cloud Provider Recommendations

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs>
<TabItem value="aws" label="AWS" default>

- **c8a.16xlarge** + io2 EBS volume or multiple gp3 EBS volumes with 60K IOPS

</TabItem>
<TabItem value="gcp" label="GCP">

- **c4d-standard-48** + hyperdisk-balanced with 60K IOPS

</TabItem>
<TabItem value="azure" label="Azure">

- **Standard_F48as_v7** with 60K IOPS

</TabItem>
<TabItem value="latitude" label="Latitude.sh">

- **f4.metal.large** with 60K IOPS

</TabItem>
</Tabs>

:::tip Performance Testing
Run the Cedra performance benchmark to verify your hardware:

```bash
# Clone cedra-core and install dependencies first
TABULATE_INSTALL=lib-only pip install tabulate
./testsuite/performance_benchmark.sh --short
```

The tool will display TPS in the "t/s" column and warn if requirements aren't met.
:::

### Storage Considerations

**Local SSD vs Network Storage Trade-offs:**
- **Local SSD**: Lower latency, better IOPS/cost ratio, but limited backup options
- **Network Storage** (AWS EBS, GCP PD): Better reliability, easier backups, higher availability, but requires CPU overhead for IOPS scaling

:::info Database Growth
The size of the database on your VFN depends on the ledger history and the number of on-chain states. Both factors are influenced by the age of the blockchain, the average transaction rate, and the ledger pruner configuration. Current estimates for testnet and mainnet require several hundred GB of storage.
:::

## Network Configuration

Your VFN participates in two of the three Cedra network layers:

- **VFN network**: A private link between your validator and your VFN. This network is used for fast, trusted data replication from the validator to its paired VFN.
- **Public network**: The public peer-to-peer network where VFNs and Public Fullnodes (PFNs) connect to each other. This allows public node operators to access the blockchain through your VFN.

```mermaid
graph LR
V[Your Validator] ---|Port 6181\nPrivate| VFN[Your VFN]
VFN ---|Port 6182\nPublic| PFN[Public Fullnodes]
VFN ---|Port 6182\nPublic| OVFN[Other VFNs]
```

### Port Requirements

<Tabs>
<TabItem value="open" label="Open Ports" default>

| Port | Network | Access | Purpose |
|------|---------|--------|---------|
| `6181` | VFN Network | **Private** | Only accessible by your validator |
| `6182` | Public Network | **Public** | Allow PFNs and other VFNs to connect |

</TabItem>
<TabItem value="closed" label="Closed Ports">

| Port | Service | Reason |
|------|---------|--------|
| `9101` | Inspection service | Prevent unauthorized metric inspection |
| `9102` | Admin service | Prevent unauthorized admin interaction |
| `80/8080` | REST API | Prevent unauthorized REST API access |

</TabItem>
</Tabs>

:::caution Security Warning
Never publicly expose inspection (9101) or admin (9102) service ports. These are useful for internal debugging but can be exploited if exposed. If you choose to expose the REST API publicly, deploy authentication and rate limiting to prevent abuse.
:::

## Software Requirements

### Time Synchronization

Enable system clock synchronization using a Network Time Protocol (NTP) service. Accurate timekeeping ensures that your VFN stays synchronized with the rest of the network. Nodes with incorrect system time will lag behind and may cause your validator to miss block proposals.

:::note Required
NTP synchronization is mandatory. Failure to maintain consistent system time will cause your VFN to fall out of sync, which can directly impact your validator's performance and rewards.
:::
31 changes: 21 additions & 10 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,16 +306,16 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
label: 'Install Cedra Node',
className: 'sidebar-badge-important'
},
{
type: 'doc',
id: 'nodes/requirements',
label: 'System Requirements'
},
{
type: 'category',
label: 'Run a Validator',
label: 'Validator Nodes',
className: 'sidebar-badge-important',
items: [
{
type: 'doc',
id: 'nodes/vfn-requirements',
label: 'Requirements'
},
{
type: 'doc',
id: 'nodes/validator-setup',
Expand All @@ -329,14 +329,25 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
{
type: 'doc',
id: 'nodes/delegation-pool-setup',
label: 'Delegation Pool Management'
label: 'Delegation Pool Setup'
}
]
},
{
type: 'doc',
id: 'nodes/full-node',
label: 'Run a Full Node'
type: 'category',
label: 'Full Nodes',
items: [
{
type: 'doc',
id: 'nodes/requirements',
label: 'System Requirements'
},
{
type: 'doc',
id: 'nodes/full-node',
label: 'Run a Full Node'
}
]
}
]
},
Expand Down
Loading