Paj Digital Labs
All articles
Web3 & Crypto Tech

Running an Ethereum Node: Hardware, Sync Modes and the RPC You Should Not Expose

Every dApp tutorial ends with 'use our hosted RPC.' Here is what it takes to run your own — the NVMe requirement that is not negotiable, snap sync vs. full sync, and why port 8545 should never see the internet.

Paj Digital Labs 3 min read
Hardware security key beside a connected circuit board
Editorial illustration · Web3 & Crypto Tech

At some point every serious Web3 project hits the hosted-RPC ceiling: rate limits during the exact traffic spike you built for, a terms-of-service change, or the quiet realization that your users' every read is flowing through a third party. The answer is your own node. The gap between the tutorial and production is, as usual, the details.

Hardware: the NVMe is not a suggestion

| Component | Minimum | Sensible | | :--- | :--- | :--- | | CPU | 4 cores | 8 cores | | RAM | 16 GB | 32 GB | | Disk | 2 TB NVMe | 4 TB NVMe Gen4 | | Network | 25 Mbps | 100 Mbps, unmetered |

The disk line is where people cheap out and regret it. An Ethereum node is a database under constant random write load. A SATA SSD will sync — slowly — and then fall behind under load. A spinning disk will never catch up at all. The node will sit at 99.9% synced forever, which is the most useless state a node can be in: close enough to tease you, too far to serve.

Budget for growth. The chain state grows tens of gigabytes per month depending on client and pruning. A disk that is 60% full today is an incident next year.

Sync modes, honestly

Snap sync (the default in Geth) downloads recent state and verifies as it goes. It is fast — a day or two on good hardware — and it is what you want for almost everything: serving RPC, watching events, submitting transactions.

Full sync replays every transaction from genesis. It takes weeks and buys you nothing for normal operation. You need it only if you are doing chain forensics or do not trust the snap sync assumptions.

Archive mode keeps every historical state — every account balance at every block. This is a different beast: multiple terabytes, weeks to build, and required only if you need to query "what was this contract's storage at block 12,000,000." Most people who think they need an archive node need a block explorer API and a nap.

bash
geth --mainnet --syncmode snap \
  --datadir /var/lib/geth \
  --http --http.addr 127.0.0.1 --http.port 8545 \
  --http.api eth,net,web3,txpool \
  --authrpc.addr 127.0.0.1 --authrpc.port 8551

Remember: since the Merge, the execution client needs a consensus client (Lighthouse, Prysm, Teku) beside it. Budget the RAM for both.

The RPC port stays closed

This is the section that matters most, because the failure mode is catastrophic and common. The JSON-RPC interface on port 8545 has no authentication. Anyone who can reach it can call any enabled method. If you enable personal or admin and expose the port, your node — and any keys on it — belongs to the internet. Bots scan for open 8545 constantly.

The rules:

1. Bind RPC to 127.0.0.1 or a private interface. Never 0.0.0.0. 2. Enable the minimum API set. eth,net,web3 covers most dApp needs. Never personal on a networked node. 3. If remote services need access, put nginx in front with auth and TLS, or use a WireGuard tunnel. The node's own port stays local.

bash
class="text-code-comment"># Verify from outside. This must fail:
curl -m 5 http://your.node.ip:8545 -d class="text-code-string">'{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

If that returns a block number, stop reading and go close the port.

Operations

A node is not set-and-forget. Client updates are consensus-critical — a missed hardfork upgrade means your node follows a dead chain while confidently serving you wrong data. Subscribe to your clients' release announcements, stage upgrades, and monitor:

  • Head lag: is the node's latest block within a few slots of the network's?
  • Peer count: a node with three peers is a node about to be wrong.
  • Disk headroom: alert at 75%, act at 85%.

When to stay hosted

Run your own node when you need reliability you control, privacy for your users' reads, or throughput a hosted tier will not sell you. Stay hosted when your traffic is small, your team is thin, or your on-chain dependency is read-only and occasional. A node is a pet, not cattle — it needs care, and the honest cost is a few hours a month. For the right workload, that is the cheapest infrastructure you will ever own.

Paj Digital Labs

The engineering journal of Paj Digital Solutions — hosting, server infrastructure and web engineering, written by the people who run the servers.

Related reading