Archival Setup
This guide will walk you through the process of creating a fleet of nodes that serve archival data and how to stitch them together using a gateway
Architecture
To make serving archival data more accessible we split the data into smaller segments. These segments are stored in s3://injective-snapshots/mainnet/subnode
/0073
0 – 73M
v1.12.1
42 TiB
/6068
60M – 68M
v1.12.1
7 TiB
/7380
73M – 80M
v1.12.1
7 TiB
/8088
80M – 88M
v1.13.3
7 TiB
/8896
88M – 96M
v1.13.3
7 TiB
/8898
88M – 98M
v1.13.3
7 TiB
/98106
98M – 106M
v1.13.3
7 TiB
/98107
98M – 107M
v1.14.0
7.5 TiB
/66101
66M – 101M
v1.14.0
27 TiB
/105116
105M – 116M
v1.15.0
7.5 TiB
These segments are stitched together via gateway which is an aggregator proxy that routes queries to the appropriate node based on block range

System Requirements
Each node hosting a slice of archival data should have the following minimum requirements
CPU
AMD EPYC™ 9454P
48 cores / 96 threads
Memory
128 GB DDR5 ECC
DDR5-5200 MHz or higher, ECC for data integrity
Storage
7 – 40 TB NVMe Gen 4
PCIe 4.0 drives, can be single drives or in a RAID-0 array
Setup Steps
On each node hosting an archival segment:
1. Download the archival segments with the history your setup requires using
2. Download or set the appropriate injective binary or image tag based on the table above
3. Generate your config folder
4. Disable pruning in your app.toml file and block p2p and set the log level to error in your config.toml files.
This ensures that the data does not get pruned and the node stays in a halted state. Setting the log level to error lessens disk ops and improves performance.
5. Run your node
Gateway configuration
1. Clone the gateway repository
2. Build gateway
3. Create your config file
4. Run Gateway
Last updated
