Skip to content

Commit 0d70948

Browse files
committed
update polkadot hub rpc page
1 parent 0ad288c commit 0d70948

File tree

2 files changed

+27
-39
lines changed

2 files changed

+27
-39
lines changed

node-infrastructure/run-a-node/parachain-rpc.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ RPC nodes serving production traffic require robust hardware:
3737
- 1 Gbps connection for high traffic scenarios
3838
- Consider DDoS protection and rate limiting for production deployments
3939
- Open ports:
40-
- 30333 (parachain P2P)
41-
- 30334 (relay chain P2P)
42-
- 9944 (Polkadot SDK WebSocket RPC)
43-
- 9933 (Polkadot SDK HTTP RPC)
40+
- **30333**: Parachain P2P
41+
- **30334**: Relay chain P2P
42+
- **9944**: Polkadot SDK WebSocket RPC
43+
- **9933**: Polkadot SDK HTTP RPC
4444

4545
!!! note
4646
For development or low-traffic scenarios, you can reduce these requirements proportionally. Consider using a reverse proxy ([nginx](https://nginx.org/){target=\_blank}, [Caddy](https://caddyserver.com/){target=\_blank}) for production deployments.

node-infrastructure/run-a-node/polkadot-hub-rpc.md

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,23 @@ Through the Polkadot SDK node RPC (WebSocket port 9944, HTTP port 9933), your no
2121

2222
RPC nodes serving production traffic require robust hardware. The following should be considered the minimum standard to effectively operate an RPC node:
2323

24-
- **CPU**: 8+ cores (16+ cores for high traffic)
25-
- **Memory**: 64 GB RAM minimum (128 GB recommended for high traffic)
24+
- **CPU**: 8+ cores; 16+ cores for high traffic
25+
- **Memory**: 64 GB RAM minimum; 128 GB recommended for high traffic
2626
- **Storage**:
2727
- **Archive node**: ~1.2 TB NVMe SSD total (~392 GB for Asset Hub archive + ~822 GB for relay chain pruned snapshot)
28+
<!-- TODO-ERIN: this means ~1.4 TB? 👇 -->
2829
- **Pruned node**: 200+ GB NVMe SSD (with pruning enabled for both parachain and relay chain)
2930
- Fast disk I/O is critical for query performance
3031
- **Network**:
3132
- Public IP address
32-
- 1 Gbps connection (for high traffic scenarios)
3333
- Stable internet connection with sufficient bandwidth
34-
- Open ports:
35-
- 30333 (parachain P2P)
36-
- 30334 (relay chain P2P)
37-
- 9944 (Polkadot SDK WebSocket RPC)
38-
- 9933 (Polkadot SDK HTTP RPC)
34+
- 1 Gbps connection for high traffic scenarios
3935
- Consider DDoS protection and rate limiting for production deployments
36+
- Open ports:
37+
- **30333**: Parachain P2P
38+
- **30334**: Relay chain P2P
39+
- **9944**: Polkadot SDK WebSocket RPC
40+
- **9933**: Polkadot SDK HTTP RPC
4041

4142
!!! note
4243
For development or low-traffic scenarios, you can reduce these requirements proportionally. Consider using a reverse proxy ([nginx](https://nginx.org/){target=\_blank}, [Caddy](https://caddyserver.com/){target=\_blank}) for production deployments.
@@ -75,25 +76,12 @@ Select the best option for your project, then use the steps in the following tab
7576
mkdir -p my-node-data/chains/polkadot/db
7677
```
7778

78-
2. Choose between Asset Hub archive (complete history; ~392 GB GB) or pruned (recent state; TODO: ERIN) snapshots and set the snapshot URL accordingly:
79-
80-
=== "Archive"
81-
82-
```bash
83-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
84-
export SNAPSHOT_URL_ASSET_HUB="https://snapshots.polkadot.io/polkadot-asset-hub-rocksdb-archive/INSERT_LATEST"
85-
```
86-
87-
=== "Pruned"
88-
89-
```bash
90-
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
91-
export SNAPSHOT_URL_ASSET_HUB="https://snapshots.polkadot.io/polkadot-asset-hub-rocksdb-prune/INSERT_LATEST"
92-
```
93-
94-
3. Use `rclone` to download and save the Asset Hub snapshots:
79+
2. Download and save the archive Asset Hub snapshot:
9580

9681
```bash
82+
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
83+
export SNAPSHOT_URL_ASSET_HUB="https://snapshots.polkadot.io/polkadot-asset-hub-rocksdb-archive/INSERT_LATEST"
84+
9785
rclone copyurl $SNAPSHOT_URL_ASSET_HUB/files.txt files.txt
9886
rclone copy --progress --transfers 20 \
9987
--http-url $SNAPSHOT_URL_ASSET_HUB \
@@ -112,7 +100,7 @@ Select the best option for your project, then use the steps in the following tab
112100
- **`--retries-sleep 10s`**: Waits 10 seconds between retry attempts
113101
- **`--size-only`**: Only transfers if sizes differ (prevents unnecessary re-downloads)
114102

115-
4. Repeat the process with the pruned relay chain snapshot (~822 GB):
103+
3. Repeat the process with the pruned relay chain snapshot:
116104

117105
```bash
118106
# Check https://snapshots.polkadot.io/ for the latest snapshot URL
@@ -403,57 +391,57 @@ Use the following commands to manage your node:
403391

404392
=== "Docker"
405393

406-
- View node logs:
394+
- **View node logs**:
407395

408396
```bash
409397
docker logs -f polkadot-hub-rpc
410398
```
411399

412-
- Stop container:
400+
- **Stop container**:
413401

414402
```bash
415403
docker stop polkadot-hub-rpc
416404
```
417405

418-
- Start container:
406+
- **Start container**:
419407

420408
```bash
421409
docker start polkadot-hub-rpc
422410
```
423411

424-
- Remove container:
412+
- **Remove container**:
425413

426414
```bash
427415
docker rm polkadot-hub-rpc
428416
```
429417

430418
=== "systemd"
431419

432-
- Check status
420+
- **Check status**:
433421

434422
```bash
435423
sudo systemctl status polkadot-hub-rpc
436424
```
437425

438-
- View node logs:
426+
- **View node logs**:
439427

440428
```bash
441429
sudo journalctl -u polkadot-hub-rpc -f
442430
```
443431

444-
- Stop service:
432+
- **Stop service**:
445433

446434
```bash
447435
sudo systemctl stop polkadot-hub-rpc
448436
```
449437

450-
- Enable service:
438+
- **Enable service**:
451439

452440
```bash
453441
sudo systemctl enable polkadot-hub-rpc
454442
```
455443

456-
- Start service:
444+
- **Start service**:
457445

458446
```bash
459447
sudo systemctl start polkadot-hub-rpc

0 commit comments

Comments
 (0)