diff --git a/docs/nodes/index.mdx b/docs/nodes/index.mdx index 8d926c3..4939126 100644 --- a/docs/nodes/index.mdx +++ b/docs/nodes/index.mdx @@ -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. - + + + + + - **c8a.16xlarge** + io2 EBS volume or multiple gp3 EBS volumes with 60K IOPS + + + + + - **c4d-standard-48** + hyperdisk-balanced with 60K IOPS + + + + + - **Standard_F48as_v7** with 60K IOPS + + + + + - **f4.metal.large** with 60K IOPS + + + + +:::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 + + + + + | Port | Network | Access | Purpose | + |------|---------|--------|---------| + | `6181` | VFN Network | **Private** | Only accessible by your validator | + | `6182` | Public Network | **Public** | Allow PFNs and other VFNs to connect | + + + + + | 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 | + + + + +:::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. +::: diff --git a/sidebars.ts b/sidebars.ts index 8b7541a..f968ea9 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -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', @@ -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' + } + ] } ] },