This tutorial introduces deploying a new node on AWS and join the Panacea Mainnet.
Launch an AWS EC2 Instance
Choose an AMI
Choose Ubuntu Server 20.04 LTS 64-bit (x86) with SSD Volume Type.
Choose the instance type
Choose the m5.large instance type (minimum spec).
Configure instance details
Choose an existing VPC or default one if you don't have any
Choose an existing subnet or default one if you don't have any
Auto-assign Public IP
Enable only if you access a full node from the outside of its VPC
Follow default settings
Add a storage
General Purpose SSD (gp3)
Configure a Security Group
P2P with other nodes
The P2P 26656 port must be exposed to other Panacea nodes. If your node will be in the VPC guarded by Sentry nodes, expose 26656 to only Sentry nodes (recommended). If not, expose it to anywhere. For details about Sentry nodes, please see the Tendermint guide.
The RPC 26657 and REST API 1317 ports are for sending transactions/queries to your node. So, expose them to the network where you perform operational actions.
Connect to your EC2 instance and install prerequisites.
trust_period="336h0m0s"# 2/3 of 21 days (unbonding period)
If your node has block history data previously synced, you need to clear the database of your node first.
The unsafe-reset-all command will erase your node database. If you are running a validator node, be sure you backed up the following files, prior to running the unsafe-reset-all command.
And, restore these files after unsafe-reset-all to avoid potential double signing.
panacead tendermint unsafe-reset-all
Run a Full Node
Before Running a Node
Before running full node, it is highly recommended to use state sync.
It is possible to start from scratch but will take a significant amount of time and effort to catch up. To sync full node from scratch, it is important to note that you must start with v2.0.1 and proceed through several upgrades at proper block heights.
Another way is to use a snapshot to recover up to the latest block. We do not currently have an official snapshot download service, so please request a snapshot from the Panacea team or another full node operator.
For bootstrapping full node, state sync would be sufficient.
Start the full node with this command:
Check that everything is running smoothly:
In production, it is recommended to run the process in background by following the guide below.
To run the node in a background process with automatic restarts, you can use a service manager like systemd. This is more reliable way to run a background process in the long term. To set this up, run the following: