You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-4Lines changed: 34 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,9 +52,39 @@ Stores arbitrary data on IPFS via the `store` extrinsic, provided that either th
52
52
53
53
## Prepare for a production
54
54
55
+
### Requirements
56
+
57
+
#### Validator node args
58
+
59
+
The validator node should be started with the following arguments:
60
+
*`--ipfs-server` - enables IPFS support.
61
+
*`--network-backend=litep2p` - enables Bitswap support, which is only available with the litep2p network backend, but this is Substrate’s default.
62
+
63
+
#### Storage
64
+
65
+
There are no special requirements for the production runtime (just as the usual [validator/node](https://docs.polkadot.com/infrastructure/running-a-validator/#running-a-validator)), except those related to IPFS support.
66
+
With the current configuration, the maximum storage requirement is estimated as follows:
divided by a 6-second block time = **201,600 blocks**
75
+
76
+
* Each block can contain up to 8–10 MiB (based on `MaxTransactionSize = 8 MiB` and `BlockLength = 10 MiB`)
77
+
* Total = **1,612,800–2,016,000 MiB ≈ 1,575–1,968 GiB of storage (maximum)**
78
+
79
+
But this is the maximum limit, assuming full utilization of every block for two weeks, which we are unlikely to reach.
80
+
81
+
TODO: @georgepisaltu Can we provide a more realistic estimate based on the testnet data?
82
+
83
+
TODO: @georgepisaltu Is this still valid that we need to keep 2-week data?
84
+
55
85
### Prepare keys for a production chain
56
86
57
-
This chapter provides a one-time example setup. For more details about running a validator and key management, see: [https://docs.polkadot.com/infrastructure/running-a-validator/#running-a-validator.”](https://docs.polkadot.com/infrastructure/running-a-validator/#running-a-validator.”).
87
+
This chapter provides a one-time example setup. For more details about running a validator and key management, see: [https://docs.polkadot.com/infrastructure/running-a-validator/#running-a-validator](https://docs.polkadot.com/infrastructure/running-a-validator/#running-a-validator.”).
58
88
59
89
**Prerequisites:**
60
90
```
@@ -166,11 +196,11 @@ _Note: This is relevant only for the initial launch; after that, we expect Polka
"For `ipfs-server`, we expect only the `config.network.network_backend=litep2p` (`--network-backend=litep2p`) setting, because Bitswap support requires it!"
0 commit comments