Installation

The Initia node standard installation guide

Official Initia installation docs could be found here. By default initia node uses the Goleveldb.

Aternative Data Base Storage (PebbleDB)

Why PebbleDB

According to this article pebbledb has a few pros over classic goleveldb, such as:

  • Lower disk usage

  • faster block synchronization rate

  • Less duration for RPC API requests

For more detailed information we recommend you to visit original repo.

Initia is the "fast" blockchain with 2-3s block time. Which means a high load on the disks and longer synchronization time. Besides that, Initia implements latest cometbft and cometbft-db, which already has a built-in implementation of pebbledb (tendermint-db hasn't). That makes easier to maintain the node.

With all this in mind, usage of pebbledb seems to be a reasonable choice to run the Initia node.

Full installation guide for Pebbledb

Dependencies

cd $HOME
ver="1.22.3"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Build with Pebbledb

Init node

Config

Systemd service setup

Start from state-sync

IMPORTANT NOTES !!!

If the node has started correct with pebbledb then extension of the database should be *.sst you can check it in data folder:

~/.initia/data/blockstore.db/xxxx.sst

Besides we recommend to perform restart of the initiad service once in a two days. It will significantly prune application.db folder:

sudo systemctl restart initiad

You could find the link to the LIST!! of our Initia' full (not the State-Sync) Pebbledb snapshots here.

Snapshot is taken on daily basis at 7.00 UTC !!!

Start the node using full pebbledb snapshot

Best regards and Good luck with your initia node installation!❤️👍

Last updated