Black Friday Sale - Up to 41% OFF

How to Set Up an Ethereum RPC Cluster: Step-by-Step

How to Set Up an Ethereum RPC Cluster: Step-by-Step
Published on Sep 17, 2026 Updated on Sep 17, 2026

An Ethereum RPC cluster puts multiple synchronized Ethereum nodes behind a load balancer so our applications get a private, fault-tolerant JSON-RPC gateway instead of a single point of failure. Ethereum adds a twist that other chains don't have: since The Merge, every backend is actually a pair of clients working together. In this guide, we'll cover what that means for cluster design, and then build a production-ready three-node Ethereum RPC cluster.

Deploy a Ethereum RPC node in minutes

Dedicated bare metal server configurations optimized for RPC workloads.

#What is an Ethereum RPC Cluster?

An Ethereum RPC cluster is a pool of full dedicated RPC nodes behind a load balancer, usually NGINX, that spreads incoming JSON-RPC requests across them based on health and current load. If one backend crashes or falls behind the chain head, traffic shifts to the healthy nodes and our application keeps running.

The Ethereum-specific detail is that each backend runs two pieces of software, not one. The execution client (Geth, Nethermind, Besu, Erigon, or Reth) holds state, runs the EVM, and serves our JSON-RPC traffic. The consensus client (Lighthouse, Prysm, Teku, Nimbus, Lodestar, or Grandine) follows proof-of-stake consensus and tells the execution client which block is the head of the chain. The two talk over the authenticated Engine API on port 8551, secured with a shared JWT secret. Without a working consensus client, the execution client stops following the chain, so every backend in our cluster is really an execution + consensus pair, and that shapes hardware sizing, sync strategy, and health checks throughout.

#Ethereum RPC Cluster Requirements

Client documentation lists minimums of around 4 cores, 16 GB RAM, and a 2 TB SSD per node. Those figures assume a node serving one user. Cluster backends serve concurrent application traffic while running a consensus client on the same box, so we size above the minimums.

#Cluster Hardware Requirements

  • 2-3 Backend RPC Nodes (each running an execution + consensus pair)

  • CPU: 8-16 cores

  • RAM: 32-64 GB (64 GB+ if a node serves archive or heavy tracing traffic)

  • Storage: 4-8 TB NVMe SSD. A pruned execution client plus consensus client plus blob data sits at roughly 1.5 TB today and grows continuously, so this range covers growth and leaves room for an archive dataset

  • Network: 1 Gbit/s symmetric

  • 1-2 Load Balancer Instances

  • CPU: 4-8 cores

  • RAM: 8-16 GB

  • Storage: 100 GB SSD

  • Network: 1 Gbit/s symmetric

Dedicated bare metal is the right call for the backends: both clients hammer disk I/O at the chain tip, and shared virtualized storage introduces latency that makes nodes drift behind the head under load. For this tutorial, we used Cherry Servers' AMD Ryzen 7700X dedicated bare metal configuration as our full-node baseline, 16 threads at up to 5.4 GHz, 64 GB RAM, and 2x 1TB NVMe. For an archive backend or higher-throughput clusters, the AMD EPYC 9375F steps up to 32 cores, 384 GB RAM, and 10 TB of NVMe across separate drives.

#Cluster Software Requirements

  • Ubuntu 22.04 LTS or newer on every machine
  • SSH access with a sudo user
  • One execution client and one consensus client per backend (we'll use Geth and Lighthouse in the examples; any mainnet-ready pair works)
  • NGINX for load balancing
  • Prometheus and Grafana for monitoring (strongly recommended)

Further reading:

#Ports to Open

Backend Nodes

Port Protocol Purpose
8545 TCP JSON-RPC HTTP (to load balancer only)
8546 TCP JSON-RPC WebSocket (to load balancer only)
8551 TCP Engine API (localhost only, never exposed)
30303 TCP/UDP Execution client P2P (public)
9000 TCP/UDP Consensus client P2P (public)

Load Balancer

Port Protocol Purpose
443 TCP HTTPS (public)
80 TCP HTTP (public, for redirects)

Pro Tip: Port 9000 is the default for Lighthouse, Teku, and Nimbus; Prysm uses 13000 TCP and 12000 UDP instead, so match the firewall to your consensus client. Port 8551 stays bound to localhost — the Engine API is authenticated, but it has no reason to ever leave the machine.

#Node Roles: Full vs. Archive Nodes in a Cluster

Not every backend has to be identical. A full node keeps recent state (roughly the last 128 blocks) and serves the standard read and write traffic that makes up most RPC load. An archive node keeps historical state for every block, which is what debug_traceTransaction, trace_call, and balance queries against old blocks actually need.

Archive used to mean tens of terabytes on Geth's old hash-based storage. Erigon and Reth now hold a mainnet archive in roughly 2-3.5 TB, and Geth's newer path-based archive mode lands in a similar range. That makes a mixed cluster practical: two full nodes handle the everyday traffic, one archive node absorbs the heavy historical and tracing queries, and the load balancer routes by method (Step 3). If your application never touches tracing or historical state, skip the archive node and run three identical full nodes instead.

#How to Set Up an Ethereum RPC Cluster

We'll build a cluster with two Geth full nodes and one archive node behind NGINX.

#Step 1: Provision and Sync the Backend Nodes

Provision each backend and set up the execution + consensus pair. We won't repeat the single-node procedure here, our Ethereum node guide covers installing both clients, generating the shared JWT secret, and wiring them together over port 8551.

Syncing is faster than its reputation. Point the consensus client at a checkpoint sync URL from the community-maintained list at eth-clients.github.io/checkpoint-sync-endpoints and it reaches the chain head in minutes. The execution client then snap syncs, typically within a day on NVMe hardware. An archive backend takes several days since it builds historical state.

Two rules before anything goes behind the load balancer: every backend must be fully synced, and every backend should run the same execution client version. Mixed versions produce subtle response differences that are miserable to debug. Upgrade the pool one node at a time, never all at once.

Set up your Ethereum server in minutes

Reduce costs and improve performance by running your Ethereum nodes on dedicated bare metal. Custom hardware, round-the-clock support, pay in crypto. Ideal for Ethereum validators and RPC providers.

#Step 2: Configure the Backend Nodes for Internal Access

On each backend, bind the RPC listeners to the private network interface rather than localhost or 0.0.0.0. For Geth:

Command Line
geth --http --http.addr 10.0.0.10 --http.port 8545 \
  --http.api "eth,net,web3,txpool" \
  --http.vhosts "rpc.yourdomain.com" \
  --ws --ws.addr 10.0.0.10 --ws.port 8546 \
  --ws.api "eth,net,web3,txpool" \
  --authrpc.addr 127.0.0.1 \
  --authrpc.port 8551 \
  --authrpc.jwtsecret /secrets/jwt.hex

Replace 10.0.0.10 with each node's private IP. The --http.vhosts flag matters in a cluster: Geth validates the Host header, and since our load balancer forwards the public hostname, that hostname must be allowlisted or Geth returns a 403. Set it to the same domain as the NGINX server_name.

The debug namespace is deliberately missing from the API list. Add it on the archive node only (--http.api "eth,net,web3,txpool,debug") — tracing methods are far more compute-intensive than standard reads and shouldn't be reachable on nodes that aren't provisioned for them.

Lock the firewall down so only the load balancer reaches the RPC ports:

Command Line
sudo ufw allow from <load-balancer-ip> to any port 8545 proto tcp
sudo ufw allow from <load-balancer-ip> to any port 8546 proto tcp
sudo ufw allow 30303/tcp
sudo ufw allow 30303/udp
sudo ufw allow 9000/tcp
sudo ufw allow 9000/udp
sudo ufw enable

#Step 3: Configure NGINX for Load Balancing

On the load balancer, install NGINX:

Command Line
sudo apt-get update
sudo apt-get install -y nginx

Two files need editing. First, add the WebSocket upgrade map inside the http block of /etc/nginx/nginx.conf:

/etc/nginx/nginx.conf
map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

Now create the cluster site config:

/etc/nginx/sites-available/eth-rpc
sudo nano /etc/nginx/sites-available/eth-rpc

Paste in the following, adjusting the backend IPs to match your nodes:

/etc/nginx/sites-available/eth-rpc
upstream eth_full_nodes {
    least_conn;
    server 10.0.0.10:8545 max_fails=2 fail_timeout=30s;
    server 10.0.0.11:8545 max_fails=2 fail_timeout=30s;
    keepalive 32;
}

upstream eth_archive_nodes {
    least_conn;
    server 10.0.0.12:8545 max_fails=2 fail_timeout=30s;
    keepalive 16;
}

upstream eth_ws_nodes {
    least_conn;
    server 10.0.0.10:8546 max_fails=2 fail_timeout=30s;
    server 10.0.0.11:8546 max_fails=2 fail_timeout=30s;
}

map $request_body $eth_pool {
    default eth_full_nodes;
    "~*debug_" eth_archive_nodes;
    "~*trace_" eth_archive_nodes;
}

server {
    listen 443 ssl http2;
    server_name rpc.yourdomain.com;

    ssl_certificate     /etc/ssl/certs/rpc.crt;
    ssl_certificate_key /etc/ssl/private/rpc.key;

    client_body_buffer_size 1m;

    location / {
        proxy_pass http://$eth_pool;
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_connect_timeout 5s;
        proxy_read_timeout 60s;
    }

    location /ws {
        proxy_pass http://eth_ws_nodes;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_read_timeout 3600s;
    }
}

The map $request_body block routes any call containing debug_ or trace_ to the archive pool, and everything else to the full nodes. We raise client_body_buffer_size to 1 MB because NGINX only populates $request_body when the body fits in memory, larger payloads would spill to a temp file and silently fall through to the default pool. The routing is best-effort: batched JSON-RPC requests (an array of calls) route as one unit on the first match, so split traffic at the client level if precise routing matters. least_conn beats round-robin here because an eth_call against a busy contract costs far more than an eth_blockNumber, and connection-count balancing absorbs that variance.

Enable the config and reload:

Command Line
sudo ln -s /etc/nginx/sites-available/eth-rpc /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl reload nginx

#Step 4: Test the Cluster

Query the chain head through the cluster endpoint:

Command Line
curl -s https://rpc.yourdomain.com \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
Verification Result{"jsonrpc":"2.0","id":1,"result":"0x161b8c4"}

Cross-check the number against a block explorer, then tail the NGINX access logs under a small wrk or ab load test to confirm requests spread across the full-node pool. Send one debug_traceTransaction call and confirm it lands on the archive backend.

#Managing Data Consistency and Health Checks

NGINX's max_fails only catches connection failures. Ethereum has a quieter failure mode: if a backend's consensus client stalls, the execution client keeps answering from its last known head, and eth_syncing can still report false while the data goes stale. Sync-status checks alone won't catch it.

The fix is a freshness check. Run a small script every 15-30 seconds that calls eth_blockNumber on each backend and compares it against a reference node. With 12-second block times, a backend more than 3-4 blocks behind is drifting, pull it from the upstream pool until it recovers. It's also worth polling each consensus client's standard REST health endpoint (/eth/v1/node/health), which returns HTTP 200 when synced, so a stalled consensus client gets caught before it takes the pair stale.

#Securing and Monitoring the Endpoint

Add TLS with Let's Encrypt:

Command Line
sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d rpc.yourdomain.com

For rate limiting, add this inside the http block of /etc/nginx/nginx.conf:

/etc/nginx/nginx.conf
limit_req_zone $binary_remote_addr zone=eth_limit:10m rate=100r/s;

Then in the location / block of the cluster config:

/etc/nginx/sites-available/eth-rpc
limit_req zone=eth_limit burst=200 nodelay;

For monitoring, run Prometheus scraping both clients on every backend plus the NGINX status endpoint, with Grafana dashboards on top. Track at minimum: head lag per backend, sync status of each consensus client, p95 latency split by pool, error rate per backend, and disk usage growth. Ethereum state grows continuously, and a full disk is the most common way a healthy node dies.

#Conclusion

We now have an Ethereum RPC cluster with two full nodes and an archive backend behind NGINX, method-based routing sending tracing traffic where it belongs, TLS at the edge, and freshness checks that catch stale nodes a plain health check would miss. Keep every backend on matching client versions, watch disk growth, and upgrade one node at a time. Our applications get Ethereum RPC access with the throughput of a commercial provider, on infrastructure we fully control.

Scaling Ethereum RPC with Bare Metal Cloud

"Cherry Servers' bare metal setup met all production requirements. Since going live, it has shown no downtime, stable performance under production load, serving RPC requests without lag." Nick, Senior DevOps Engineer at TechOps Services

How to Set Up an Ethereum RPC Cluster FAQs

How many nodes does an Ethereum RPC cluster need?

Three is the practical minimum: two full nodes for redundancy on everyday traffic, plus one archive node if you need tracing or historical state. If you don't, run three identical full nodes.

Which execution client should we use?

Geth is the most widely deployed and best documented, which is why we used it here. Nethermind, Besu, Erigon, and Reth are all mainnet-ready, and Ethereum's own documentation flags Geth's large share of the execution layer as a risk worth reducing, so minority clients help network health too.

Does every backend need its own consensus client?

Yes. The Engine API is a one-to-one pairing, so each execution client needs a dedicated consensus client on the same machine.

How long does syncing take?

The consensus client reaches the head in minutes with checkpoint sync. A full execution client snap syncs within a day on NVMe. An archive node takes several days.

Do we need an archive node at all?

Only if your application calls `debug_` or `trace_` methods, or queries state at old blocks. Standard reads, transaction submission, and recent event logs are all served by full nodes.

Blockchain Servers – Built for Web3

Deploy secure and high-performance nodes on dedicated infrastructure.

Share this article

Related Articles

Published on Nov 20, 2026 Updated on Nov 24, 2026

How to Run an Arbitrum Node: Hardware Requirements & Setup

This guide shows how to run an Arbitrum node. We set up an Arbitrum One full node with Nitro, while also explaining Arbitrum node hardware requirements and where archive-node differs.

Read More
Published on Nov 8, 2026 Updated on Nov 17, 2026

Full Node vs. Archive Node: What's the Difference?

This guide explains what each one does, who needs which, and what the hardware looks like focusing on Ethereum mainnet.

Read More
Published on Oct 21, 2026 Updated on Oct 26, 2026

Buy a VDS With Crypto: 6 Virtual Dedicated Server Providers to Consider

This article covers six providers that let you buy a Virtual Dedicated Server (VDS) with crypto, helping to understand how crypto payments actually work at checkout.

Read More
No results found for ""
Recent Searches
Navigate
Go
ESC
Exit