Become a Sentry node operator by Docker
Last updated
Last updated
This tutorial helps full node operators quickly synchronize with the Oraichain mainnet by downloading a storage snapshot prepared by the team. The downloading speed is much faster than synchronizing from the first block, which allows fast set up to join the network in no time!
I assume you have installed Docker on the server; if not, you may refer to the following before getting started.
You can choose one of the two methods below.
Please take a look
!!! This method requires the RAM configuration to be more than 8GB !!!
Copy
In your orai.env
file, it's a good idea to set the LOG_LEVEL
parameter to "info"
if you want to see all the container logs.
With docker, your node can run on any platforms. As a result, it is a must to install and download Docker & docker-compose. Afterward, please type:
Copy
This command starts setting up a container for your Oraichain node. It runs several commands to get a statesync node ready. You can see these steps in the docker-compose file. For more details, the setup.sh file has many Bash scripts that handle different tasks automatically. Also, it makes a special folder called .oraid, which keeps all important settings and data for your node.
Statesync is the quickest way to let your node catch up with the network by starting at a specified trusted height and fetch snapshot data from other peers.
When you execute the aforementioned command, it initiates statesync in your container. This involves retrieving and applying a snapshot. Following this, your node will begin synchronizing new blocks, a process that typically takes around 30 minutes. You can monitor the progress of this operation by viewing the container log using the command provided below:
Copy
After running the script, your node will be ready to run as a full node! Please wait until your node is fully synchronized by typing (from your container):
Copy
If the catching up status is false, your node finished syncing process.
Copy
Please review all the values in the orai.env file once. If you have experience running a validator, adjust the parameters according to your experience. Otherwise, you just need to change the MONIKER value. In your orai.env
file, it's a good idea to set the LOG_LEVEL
parameter to "info"
if you want to see all the container logs.
Copy
Finally, your working directory should be like below
Copy
3 directories, 10 files
Copy
Copy
Check container log
Copy
Check your node status
Copy
If the catching_up status is false, your node finished syncing process. Finally, you can delete snapshot file and backup your config folder. The snapshot file may be outdated; you can reach out to our community for it. Please join the on Telegram to discuss ideas and problems!