In this document we will describe how to deploy Polygon nodes onto VM instance in Google Cloud
Check minimum and recommended hardware requirements in Polygon docs
Use any modern Debian or Ubuntu Linux OS with long term support, f.e. Debian 11, Ubuntu 21.04. We'll focus on Ubuntu 21.04 in this manual
Deploy instance (2 ways)
You may use at least two ways to create an instance in Google Cloud:
- gcloud cli, local or Cloud Shell
- web console
We'll cover the first case in this manual. Let's start from deploy using CLI.
Follow "Before you begin" section to install and configure gcloud command-line tool. Pay attention to default region and zone, choose ones closer to You or Your customers. You may use gcping.com to measure latency to choose the closest location.
Adjust the following command variables using Your favorite editor prior executing, when required
mumbaitestnet network to run
fullnodenode type to run
POLYGON_BOOTSTRAP_MODE- choose bootstrap mode
POLYGON_RPC_PORT- choose JSON RPC bor node port to listen on, default value is what used on VM instance creation and in firewall rules
INSTANCE_NAME- name of a VM instance with Polygon we're going to create
INSTANCE_TYPE- GCP machine type, default value is recommended, You may change it later if required
BOR_EXT_DISK_SIZE- additional disk size in GB to use with Bor, default value with
fullnodeis recommended, You may expand it later if required. You'll need 8192GB+ with
HEIMDALL_EXT_DISK_SIZE- additional disk size in GB to use with Heimdall, default value is recommended
DISK_TYPE- GCP disk type, SSD is highly recommended
Use the following command to create an instance with correct hardware and software requirements. In the example below we deploy Polygon
Instance should be created during a couple of minutes
Login to instance (optional)
It will take a couple of minutes to install all the required software and a couple of hours to download a snapshot, when chosen.
You should see working
heimdalld processes filling up additional drives. You may run following commands to check it.
Connect to instance SSH service using
gcloud SSH wrapper:
You may use following command to watch the installation progress, it's really handy in case of
Control+a d key combination to disconnect from progress review.
You may use following commands to get Bor and Heimdall logs:
Please note blockchain data is saved onto additional drives which is kept by default on VM instance removal. You need to remove additional disks manually if you don't need this data anymore.
At the end You'll get an instance as shown on the diagram below