The Ethereum Mainnet archive node has a size of 3.1TB on September 11th, 2024
Setup production Erigon
This guide covers the installation ofErigon, an implementation of Ethereum (execution layer), on the efficiency frontier, Archive Node by default, and Lighthouse(with historical blobs required for most L2 chains), as a Consensus Layer.
Not advised to allow all or unknown IP address to RPC port
Enable Firewall
sudoufwenable
To check the status of UFW and see the current rules
sudoufwstatusverbose
Install GO
Go version 1.21+ is required
sudowgethttps://go.dev/dl/go1.21.6.linux-amd64.tar.gz&&sudorm-rf/usr/local/go&&sudotar-C/usr/local-xzfgo1.21.6.linux-amd64.tar.gz&&rmgo1.21.6.linux-amd64.tar.gzecho'export PATH=$PATH:/usr/local/go/bin:/root/.local/bin'>>/root/.bashrcsource/root/.bashrc#verify Go installationgoversion
sudosystemctldaemon-reload#refresh systemd configuration when changes madesudosystemctlenableerigon.service#enable erigon service at system startupsudosystemctlstarterigon.service#start erigonsudonano/etc/systemd/system/erigon.service#make changes in erigon.service file
Build Lighthouse
Go to the Releases page and select the latest release:
cd/root/mkdirlighthouse_datamkdirlighthouse&&cdlighthousewgethttps://github.com/sigp/lighthouse/releases/download/v5.3.0/lighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gztar-xzflighthouse-v5.3.0-x86_64-unknown-linux-gnu.tar.gz#Extract the tar.gz archivechmod+x/root/lighthouse/#Grant execute permissions to the files in the directory
Create systemd file for Lighthouse
sudonano/etc/systemd/system/lighthouse.service
Paste the configs and save by entering ctrl+X and Y+ENTER:
sudosystemctldaemon-reload#refresh systemd configuration when changes madesudosystemctlenablelighthouse.service#enable Lighthouse service at system startupsudosystemctlstartlighthouse.service#start Lighthousesudonano/etc/systemd/system/lighthouse.service#make changes in lighthouse.service file
Monitor the logs for errors
journalctl-uerigon.service-f-n100#follow logs of erigon.servicejournalctl-ulighthouse-f-n100#follow logs of lighthouse.service
During the synchonization, you are expected to get following log messages fromerigon: