There are 3 ways to set up OneLedger Kratos Full Node:
Video Tutorial
* Choose the name from your OneLedger instance
* Choose a machine type with at least 7.5GB of RAM; GCP charges you only based on the number of cores you choose, we recommend using 2 vCPUs
* You can keep all other fields set to the default values
* Click Deploy
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
sudo add-apt-repository "deb [arch=amd64]
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
# Main address for P2P connections p2p_address = "tcp://<your-internal-ip>:26605" # Address to advertise for incoming peers to connect to external_p2p_address = "tcp://<your-external-ip>:26605"
get node id with olfullnode show_node_id --ip you will get id like 3c498d34846159daa9fcf265d8a3f4dcd46641d1@127.0.0.1:26605 configure the sentry and protected node like following sentry: # List of peers to maintain a persistent connection to persistent_peers = ["<protected-node-id>@<protected-node-ip>:26605"] # List of peer IDs to keep private (will not be gossiped to other peers) private_peer_ids = ["<protected-node-id>"] protected node: # List of peers to maintain a persistent connection to persistent_peers = ["<sentry-node-id>@<sentry-node-ip>:26605"] |
olfullnode node --root ./
or
Run the node in background creating systemd service file:
cd /etc/systemd/system vim olfullnode.service (Add below content) [Unit] Description=olfullnode Wants=network-online.target After=network-online.target [Service] Type=simple #User=alertmanager #Group=alertmanager ExecStart=/usr/local/bin/olfullnode node --root /home/user/OLDATA > /home/user/OLDATA/fullnode.log & #Restart=on-failure [Install] WantedBy=multi-user.target |
Enable the service file
systemctl enable olfullnode.service
start the service file and check the status
sudo service olfullnode start
sudo olfullnode status
cd /etc/systemd/system vim olfullnode.service (Add below content) [Unit] Description=olfullnode Wants=network-online.target After=network-online.target [Service] Type=simple #User=alertmanager #Group=alertmanager ExecStart=/usr/local/bin/olfullnode node --root /PATH/TO/FULLNODE > /PATH/TO/FULLNODE/fullnode.log & #Restart=on-failure [Install] WantedBy=multi-user.target |
Enable the service file
sudo systemctl enable olfullnode.service |
start the service file and check the status
sudo service olfullnode start sudo service olfullnode status |