Community snapshots
Polygon Chain has transitioned to a community-driven model for snapshots. Active community members now contribute to provide snapshots. Some of these members include:*The PBSS + PebbleDB snapshot provided by PublicNode is currently in the beta phase.
Visit All4nodes.io for a comprehensive list of community snapshots.
Downloading and using client snapshots
To begin, ensure that your node environment meets the prerequisites outlined here. The majority of snapshot providers have also outlined the steps that need to be followed to download and use their respective client snapshots. Navigate to All4nodes to view the snapshot source. In case the steps are unavailable or the procedure is unclear, the following tips will come in handy:- You can use the
wgetcommand to download and extract the.tarsnapshot files. For example:
-
Configure your client’s
datadirsetting to match the directory where you downloaded and extracted the snapshot data. This ensures thesystemdservices can correctly register the snapshot data when the client is spun up. - To maintain your client’s default configuration settings, consider using symbolic links (symlinks).
Example
Let’s say you have mounted your block device at~/snapshots and have downloaded and extracted the chain data into the heimdall_extract directory for Heimdall, and into the bor_extract directory for Bor. Use the following commands to register the extracted data for Heimdall and Bor systemd services:
Recommended disk size guidance
Polygon Amoy testnet
Polygon mainnet
Polygon Amoy Erigon archive
Recommended disk type and IOPS guidance
- Disk IOPS will affect the speed of downloading/extracting snapshots, getting in sync, and performing LevelDB compaction.
- To minimize disk latency, direct-attached storage is ideal.
- In AWS, when using gp3 disk types, we recommend provisioning IOPS of 16,000 and throughput of 1,000. This minimizes costs while providing significant performance benefits. io2 EBS volumes with matching IOPS and throughput values offer similar performance.
- For GCP, we recommend using performance (SSD) persistent disks (
pd-ssd) or extreme persistent disks (pd-extreme) with similar IOPS and throughput values as mentioned above.