Deploy an erigon rpc for testnet
Deployment Overview
Erigon RPC can be deployed independently without relying on other testnet RPC components (CDK / Prover / Database). You can choose to deploy it together with JSON-RPC or separately.
Erigon RPC depends on a JSON-RPC and an upstream DataStreamer.
Recommended configuration: CPU: 4 vCores, RAM: 32GB, Disk: 1TB, NVMe SSD. Higher IOPS and throughput performance will yield better results. It is recommended to have 250,000 IOPS and 1000 MiB/s throughput.
Deployment Steps
Prepare configuration files
docker compose file
version: "3.5"
networks:
default:
name: cdk-erigon
services:
cdk-erigon-rpc:
container_name: cdk-erigon-rpc
image: merlinadmin/cdk-erigon:v2.0.3
stop_grace_period: 600s
restart: always
environment:
- CDK_ERIGON_SEQUENCER=0
ports:
- 9123:8123
- 7990:6990
volumes:
- ./erigon_config/config-rpc.yaml:/usr/src/app/config.yaml
- ./erigon_config/dynamic-merlintestnet-allocs.json:/usr/src/app/dynamic-merlintestnet-allocs.json
- ./erigon_config/dynamic-merlintestnet-chainspec.json:/usr/src/app/dynamic-merlintestnet-chainspec.json
- ./erigon_config/dynamic-merlintestnet-conf.json:/usr/src/app/dynamic-merlintestnet-conf.json
- ./erigon_config/dynamic-merlintestnet-block.json:/usr/src/app/dynamic-merlintestnet-block.json
- ./erigon_data/data:/usr/src/app/data/
command: >
--http.vhosts=* --http.corsdomain=* --ws --config=/usr/src/app/config.yaml
logging:
options:
max-size: "1g"
max-file: "3"config-rpc.yaml
Static configurations
Snapshot
Download erigon data snapshot
Launch erigon
Ensure that the erigon-config and erigon-data directories are consistent with the volumes configuration in docker-compose.yml.
Last updated